Mercurial > mxe-octave
changeset 3507:e9db4d0c50e5
Add yasm package
* index.hml: add yasm, build-yasm.
* src/build-yasm.mk: new file.
* src/yasm.mk: New file.
* dist-files.mk: added build-yasm.mk, yasm.mk.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Thu, 06 Feb 2014 21:21:15 -0500 |
parents | 0d7d2ee30e1a |
children | a6b2b4f9532e |
files | dist-files.mk index.html src/build-yasm.mk src/yasm.mk |
diffstat | 4 files changed, 61 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dist-files.mk Thu Feb 06 18:37:37 2014 +0000 +++ b/dist-files.mk Thu Feb 06 21:21:15 2014 -0500 @@ -34,6 +34,7 @@ build-scons.mk \ build-texinfo.mk \ build-xz.mk \ + build-yasm.mk \ bzip2.mk \ cairo-2-static-init.patch \ cairo.mk \ @@ -586,6 +587,7 @@ xvidcore-1-fixes.patch \ xvidcore.mk \ xz.mk \ + yasm.mk \ zenity.mk \ zeromq-1.patch \ zeromq.mk \
--- a/index.html Thu Feb 06 18:37:37 2014 +0000 +++ b/index.html Thu Feb 06 21:21:15 2014 -0500 @@ -1035,6 +1035,10 @@ <td class="website"><a href="http://tukaani.org/xz/">XZ</a></td> </tr> <tr> + <td class="package">build-yasm</td> + <td class="website"><a href="http://yasm.tortall.net/">Yasm</a></td> + </tr> + <tr> <td class="package">bzip2</td> <td class="website"><a href="http://www.bzip.org/">bzip2</a></td> </tr> @@ -2195,6 +2199,10 @@ <td class="website"><a href="http://tukaani.org/xz/">XZ</a></td> </tr> <tr> + <td class="package">yasm</td> + <td class="website"><a href="http://yasm.tortall.net/">Yasm</a></td> + </tr> + <tr> <td class="package">zenity</td> <td class="website"><a href="https://wiki.gnome.org/Zenity">Zenity</a></td> </tr>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/build-yasm.mk Thu Feb 06 21:21:15 2014 -0500 @@ -0,0 +1,25 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := build-yasm +$(PKG)_IGNORE = $(yasm_IGNORE) +$(PKG)_VERSION := $(yasm_VERSION) +$(PKG)_CHECKSUM = $(yasm_CHECKSUM) +$(PKG)_SUBDIR = $(yasm_SUBDIR) +$(PKG)_FILE = $(yasm_FILE) +$(PKG)_URL = $(yasm_URL) +$(PKG)_DEPS := + +define $(PKG)_UPDATE + echo $(yasm_VERSION) +endef + +define $(PKG)_BUILD + mkdir '$(1).build' + cd '$(1).build' && '$(1)/configure' \ + --prefix='$(BUILD_TOOLS_PREFIX)' \ + --disable-nls \ + --disable-python + $(MAKE) -C '$(1).build' -j '$(JOBS)' + $(MAKE) -C '$(1).build' -j 1 install DESTDIR='$(3)' +endef
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/yasm.mk Thu Feb 06 21:21:15 2014 -0500 @@ -0,0 +1,26 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := yasm +$(PKG)_VERSION := 1.2.0 +$(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 := + +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_AND_BUILD_CONFIGURE_OPTIONS) \ + --prefix='$(HOST_PREFIX)' \ + --disable-nls + $(MAKE) -C '$(1)' -j '$(JOBS)' + $(MAKE) -C '$(1)' -j 1 install +endef