You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/nasm.mk

28 lines
958 B

# This file is part of MXE. See LICENSE.md for licensing information.
PKG := nasm
$(PKG)_WEBSITE := https://www.nasm.us/
$(PKG)_DESCR := NASM - The Netwide Assembler
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.14.02
$(PKG)_CHECKSUM := e24ade3e928f7253aa8c14aa44726d1edf3f98643f87c9d72ec1df44b26be8f5
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
$(PKG)_URL := https://www.nasm.us/pub/$(PKG)/releasebuilds/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_TARGETS := $(BUILD)
$(PKG)_DEPS :=
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://www.nasm.us/pub/nasm/releasebuilds/?C=M;O=D' | \
$(SED) -n 's,.*href="\([0-9\.]*[^a-z]\)/".*,\1,p' | \
head -1
endef
define $(PKG)_BUILD_$(BUILD)
# build nasm compiler
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
$(MXE_CONFIGURE_OPTS)
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
endef