# HG changeset patch # User John Donoghue # Date 1391739675 18000 # Node ID e9db4d0c50e5412f3856851a8272993baab39680 # Parent 0d7d2ee30e1a70e7e8c4adb4ccf23b345775fb1b 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. diff -r 0d7d2ee30e1a -r e9db4d0c50e5 dist-files.mk --- 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 \ diff -r 0d7d2ee30e1a -r e9db4d0c50e5 index.html --- 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 @@ XZ + build-yasm + Yasm + + bzip2 bzip2 @@ -2195,6 +2199,10 @@ XZ + yasm + Yasm + + zenity Zenity diff -r 0d7d2ee30e1a -r e9db4d0c50e5 src/build-yasm.mk --- /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 diff -r 0d7d2ee30e1a -r e9db4d0c50e5 src/yasm.mk --- /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