diff options
author | Tony Theodore <tonyt@logyst.com> | 2013-07-13 10:21:41 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2013-07-13 10:21:41 (GMT) |
commit | 634bdb4a4fcd225d9f358f401559c2a4d2858da5 (patch) | |
tree | 83836f5f5c5b1787bec7114e11f81f46f2c2472f /src/yasm.mk | |
parent | 08d42befe95cd9f608c9bd026802f1096d324792 (diff) | |
download | mxe-634bdb4a4fcd225d9f358f401559c2a4d2858da5.zip mxe-634bdb4a4fcd225d9f358f401559c2a4d2858da5.tar.gz mxe-634bdb4a4fcd225d9f358f401559c2a4d2858da5.tar.bz2 |
add package yasm
Diffstat (limited to 'src/yasm.mk')
-rw-r--r-- | src/yasm.mk | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/yasm.mk b/src/yasm.mk new file mode 100644 index 0000000..8006f6f --- /dev/null +++ b/src/yasm.mk @@ -0,0 +1,25 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := yasm +$(PKG)_CHECKSUM := 773d28f27f83c44ac35079add0d3167ca6c1def8 +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := http://www.tortall.net/projects/$(PKG)/releases/$($(PKG)_FILE) +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + $(WGET) -q -O- 'https://github.com/yasm/yasm/tags' | \ + $(SED) -n 's,.*href="/yasm/yasm/archive/v\([0-9][^"]*\)\.tar.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + # yasm is always static + cd '$(1)' && '$(1)/configure' \ + --host='$(TARGET)' \ + --build="`config.guess`" \ + --prefix='$(PREFIX)/$(TARGET)' \ + --disable-nls + $(MAKE) -C '$(1)' -j '$(JOBS)' install +endef |