summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2013-07-13 10:21:41 (GMT)
committerTony Theodore <tonyt@logyst.com>2013-07-13 10:21:41 (GMT)
commit634bdb4a4fcd225d9f358f401559c2a4d2858da5 (patch)
tree83836f5f5c5b1787bec7114e11f81f46f2c2472f
parent08d42befe95cd9f608c9bd026802f1096d324792 (diff)
downloadmxe-634bdb4a4fcd225d9f358f401559c2a4d2858da5.zip
mxe-634bdb4a4fcd225d9f358f401559c2a4d2858da5.tar.gz
mxe-634bdb4a4fcd225d9f358f401559c2a4d2858da5.tar.bz2
add package yasm
-rw-r--r--index.html5
-rw-r--r--src/yasm.mk25
2 files changed, 30 insertions, 0 deletions
diff --git a/index.html b/index.html
index 8365ede..01edf52 100644
--- a/index.html
+++ b/index.html
@@ -2354,6 +2354,11 @@ USE_OSGPLUGIN(&lt;plugin2&gt;)
<td id="xz-website"><a href="http://tukaani.org/xz/">XZ</a></td>
</tr>
<tr>
+ <td id="yasm-package">yasm</td>
+ <td id="yasm-version">1.2.0</td>
+ <td id="yasm-website"><a href="http://yasm.tortall.net//">Yasm</a></td>
+ </tr>
+ <tr>
<td id="zlib-package">zlib</td>
<td id="zlib-version">1.2.8</td>
<td id="zlib-website"><a href="http://zlib.net/">zlib</a></td>
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