From 634bdb4a4fcd225d9f358f401559c2a4d2858da5 Mon Sep 17 00:00:00 2001 From: Tony Theodore Date: Sat, 13 Jul 2013 20:21:41 +1000 Subject: add package yasm --- index.html | 5 +++++ src/yasm.mk | 25 +++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 src/yasm.mk diff --git a/index.html b/index.html index 8365ede..01edf52 100644 --- a/index.html +++ b/index.html @@ -2354,6 +2354,11 @@ USE_OSGPLUGIN(<plugin2>) XZ + yasm + 1.2.0 + Yasm + + zlib 1.2.8 zlib 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 -- cgit v0.12