nasm: new package
authorOskari Rauta <oskari.rauta@gmail.com>
Thu, 12 Jan 2023 17:50:12 +0000 (19:50 +0200)
committerOskari Rauta <oskari.rauta@gmail.com>
Sun, 22 Jan 2023 16:03:07 +0000 (18:03 +0200)
Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
devel/nasm/Makefile [new file with mode: 0644]

diff --git a/devel/nasm/Makefile b/devel/nasm/Makefile
new file mode 100644 (file)
index 0000000..ef2e802
--- /dev/null
@@ -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))