6408
|
1 # This file is part of MXE. |
|
2 # See index.html for further information. |
|
3 |
|
4 PKG := build-nasm |
|
5 $(PKG)_IGNORE := |
|
6 $(PKG)_VERSION := 2.14.02 |
|
7 $(PKG)_CHECKSUM := 7e9cb20d49ca279c72125b2701b3457c9d1609a5 |
|
8 $(PKG)_SUBDIR := nasm-$($(PKG)_VERSION) |
|
9 $(PKG)_FILE := nasm-$($(PKG)_VERSION).tar.xz |
|
10 $(PKG)_URL := https://www.nasm.us/pub/nasm/releasebuilds/$($(PKG)_VERSION)/$($(PKG)_FILE) |
|
11 $(PKG)_DEPS := |
|
12 |
|
13 define $(PKG)_UPDATE |
|
14 $(WGET) -q -O- 'https://www.nasm.us/pub/nasm/releasebuilds/?C=M;O=D' | \ |
|
15 $(SED) -n 's,.*href="\([0-9\.]*[^a-z]\)/".*,\1,p' | \ |
|
16 head -1 |
|
17 endef |
|
18 |
|
19 define $(PKG)_BUILD |
|
20 mkdir '$(1).build' |
|
21 cd '$(1).build' && '$(1)/configure' \ |
|
22 --prefix='$(BUILD_TOOLS_PREFIX)' |
|
23 $(MAKE) -C '$(1).build' -j '$(JOBS)' |
|
24 $(MAKE) -C '$(1).build' -j 1 install DESTDIR='$(3)' |
|
25 endef |