Commit 6a81db89 authored by Stefan Froberg's avatar Stefan Froberg Committed by Thomas Petazzoni
Browse files

yasm: New package



[thomas.petazzoni@free-electrons.com:

 drop the --disable-static from configuration options, the default
 behavior should work without problem.

 make sure the pre configure hook is also executed for the host
 variant of the package.

 add the project upstream URL in the package help text
]

Signed-off-by: default avatarStefan Froberg <stefan.froberg@petroprogram.com>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 04be7f0f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -91,6 +91,7 @@ source "package/sstrip/Config.in"
if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
source "package/tar/Config.in"
endif
source "package/yasm/Config.in"
endmenu

menu "Games"

package/yasm/Config.in

0 → 100644
+9 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_YASM
	bool "yasm"
	depends on BR2_i386 || BR2_x86_64
	help
	  Yasm is a complete rewrite of the NASM-2.10.01 assembler.
	  It supports the x86 and AMD64 instruction sets, accepts NASM
	  and GAS assembler syntaxes and outputs binary, ELF32 and ELF64
	  object formats.

package/yasm/yasm.mk

0 → 100644
+20 −0
Original line number Diff line number Diff line
#############################################################
#
# yasm
#
#############################################################
YASM_VERSION = 1.2.0
YASM_SOURCE = yasm-$(YASM_VERSION).tar.gz
YASM_SITE = http://www.tortall.net/projects/yasm/releases/
YASM_CONF_OPT = --disable-static

define YASM_PRE_CONFIGURE_FIXUP
# This sed prevents it compiling 2 programs (vsyasm and ytasm) 
# that are only of use on Microsoft Windows. 
	sed -i 's#) ytasm.*#)#' $(@D)/Makefile.in
endef

YASM_PRE_CONFIGURE_HOOKS += YASM_PRE_CONFIGURE_FIXUP

$(eval $(autotools-package))
$(eval $(host-autotools-package))