diff options
author | Tony Theodore <tonyt@logyst.com> | 2013-05-06 14:15:18 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2013-05-06 14:15:18 (GMT) |
commit | 6917ef5cd6ae8aca4ad8de5f8f388b7fb9b4fa65 (patch) | |
tree | 42fd730da6e063d088cef93be0e5a19dec2c1c44 /src/alure.mk | |
parent | 858fb7207b84a971ed9988462971d38c7eba9985 (diff) | |
parent | 858a57e65bac1e5751f1e622ef1ccf01b772d9a8 (diff) | |
download | mxe-6917ef5cd6ae8aca4ad8de5f8f388b7fb9b4fa65.zip mxe-6917ef5cd6ae8aca4ad8de5f8f388b7fb9b4fa65.tar.gz mxe-6917ef5cd6ae8aca4ad8de5f8f388b7fb9b4fa65.tar.bz2 |
Merge pull request #186 from Roflincopter/master
Adding the Alure package
Diffstat (limited to 'src/alure.mk')
-rw-r--r-- | src/alure.mk | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/alure.mk b/src/alure.mk new file mode 100644 index 0000000..ff9a370 --- /dev/null +++ b/src/alure.mk @@ -0,0 +1,31 @@ +# This file is part of MXE. +# See index.html for further information + +PKG := alure +$(PKG)_IGNORE := +$(PKG)_CHECKSUM := f033f0820c449ebff7b4b0254a7b1f26c0ba485b +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 +$(PKG)_URL := http://kcat.strangesoft.net/alure-releases/$($(PKG)_FILE) +$(PKG)_DEPS := gcc openal flac ogg libsndfile vorbis + +define $(PKG)_UPDATE + $(WGET) -q -O- http://repo.or.cz/w/alure.git/tags | \ + grep alure- | \ + $(SED) -n 's,.*alure-\([0-9\.]*\)<.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)/build' && cmake \ + -DBUILD_STATIC=ON \ + -DBUILD_SHARED=OFF \ + -DBUILD_EXAMPLES=OFF \ + -DCMAKE_C_FLAGS="-DAL_LIBTYPE_STATIC -DALURE_STATIC_LIBRARY" \ + -DCMAKE_CXX_FLAGS="-DAL_LIBTYPE_STATIC -DALURE_STATIC_LIBRARY" \ + -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + .. + $(MAKE) -C '$(1)/build' -j $(JOBS) VERBOSE=1 + $(MAKE) -C '$(1)/build' -j $(JOBS) install +endef + |