From 6a81db89eb036216c87b3036251adbeea2013b0e Mon Sep 17 00:00:00 2001 From: Stefan Froberg Date: Fri, 10 Aug 2012 22:30:11 +0300 Subject: 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: Stefan Froberg Signed-off-by: Thomas Petazzoni --- package/yasm/Config.in | 9 +++++++++ package/yasm/yasm.mk | 20 ++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 package/yasm/Config.in create mode 100644 package/yasm/yasm.mk (limited to 'package/yasm') diff --git a/package/yasm/Config.in b/package/yasm/Config.in new file mode 100644 index 000000000..bb1d41722 --- /dev/null +++ b/package/yasm/Config.in @@ -0,0 +1,9 @@ +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. + diff --git a/package/yasm/yasm.mk b/package/yasm/yasm.mk new file mode 100644 index 000000000..ac75d2b6a --- /dev/null +++ b/package/yasm/yasm.mk @@ -0,0 +1,20 @@ +############################################################# +# +# 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)) -- cgit v1.2.3