aboutsummaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorOskari Rauta <oskari.rauta@gmail.com>2023-01-12 19:50:12 +0200
committerOskari Rauta <oskari.rauta@gmail.com>2023-01-22 18:03:07 +0200
commit137174dd6a6e1976b06d93a079b8ba038c03b24d (patch)
tree2ecd1d0f535f03bcaa532a78f745794ca7593b0b /devel
parent4969de2bdf2a0f740a92f6c2fe1f719357b8a81f (diff)
nasm: new package
Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
Diffstat (limited to 'devel')
-rw-r--r--devel/nasm/Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/devel/nasm/Makefile b/devel/nasm/Makefile
new file mode 100644
index 000000000..ef2e8024a
--- /dev/null
+++ b/devel/nasm/Makefile
@@ -0,0 +1,41 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=nasm
+PKG_VERSION:=2.16.01
+PKG_RELEASE:=1
+
+PKG_SOURCE_URL:=https://www.nasm.us/pub/nasm/releasebuilds/$(PKG_VERSION)/
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
+PKG_HASH:=c77745f4802375efeee2ec5c0ad6b7f037ea9c87c92b149a9637ff099f162558
+
+PKG_MAINTAINER:=Oskari Rauta <oskari.rauta@gmail.com>
+PKG_LICENSE:=BSD-2-Clause
+PKG_LICENSE_FILES:=LICENSE
+
+PKG_BUILD_PARALLEL:=1
+PKG_INSTALL:=1
+PKG_FIXUP:=autoreconf
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/nasm
+ SECTION:=devel
+ CATEGORY:=Development
+ TITLE:=nasm assembler
+ DEPENDS:=@TARGET_x86
+endef
+
+define Package/nasm/description
+ NASM, the Netwide Assembler: an assembler targetting the
+ Intel x86 series of processors, with portable source.
+endef
+
+CONFIGURE_ARGS += --disable-lto --disable-werror --disable-gdb
+
+define Package/nasm/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ndisasm $(1)/usr/bin/
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nasm $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,nasm))