Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=nasm
  7. PKG_VERSION:=2.16.01
  8. PKG_SOURCE_URL:=https://www.nasm.us/pub/nasm/releasebuilds/$(PKG_VERSION)/
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  10. PKG_HASH:=c77745f4802375efeee2ec5c0ad6b7f037ea9c87c92b149a9637ff099f162558
  11. PKG_CPE_ID:=cpe:/a:nasm:nasm
  12. HOST_BUILD_PARALLEL:=1
  13. include $(INCLUDE_DIR)/toolchain-build.mk
  14. HOST_CONFIGURE_ARGS+= \
  15. --target=$(REAL_GNU_TARGET_NAME) \
  16. --with-sysroot=$(TOOLCHAIN_DIR) \
  17. --disable-lto \
  18. --disable-werror \
  19. --disable-gdb \
  20. $(SOFT_FLOAT_CONFIG_OPTION) \
  21. define Host/Prepare
  22. $(call Host/Prepare/Default)
  23. ln -snf $(notdir $(HOST_BUILD_DIR)) $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)
  24. $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(HOST_BUILD_DIR)/
  25. endef
  26. define Host/Configure
  27. (cd $(HOST_BUILD_DIR); \
  28. ./autogen.sh \
  29. );
  30. $(call Host/Configure/Default)
  31. endef
  32. define Host/Install
  33. $(MAKE) -C $(HOST_BUILD_DIR) \
  34. $(HOST_MAKE_FLAGS) \
  35. prefix=$(TOOLCHAIN_DIR) \
  36. install
  37. endef
  38. define Host/Clean
  39. rm -rf \
  40. $(HOST_BUILD_DIR) \
  41. $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)
  42. endef
  43. $(eval $(call HostBuild))