Added the Alure package.

The alure package is an conveniance library for openal that packs certain OpenAL functionality
in a os independent wrapper. It also can use certain audio libraries to extend the type of loadable
audio files. The current package setup depends on all the audio libraries that mxe currently has
and that Alure can handle.

Moved VERBOSE=1 to the end of the make line as per request.

Also moved the cmake_toolchain_file line to the end of the cmake command block.

Moved from a insource to an outsource build of alure with cmake
This commit is contained in:
Dennis Brentjes 2013-05-05 21:24:00 +02:00
parent 0a78a67d8e
commit 858a57e65b
2 changed files with 36 additions and 0 deletions

View File

@ -908,6 +908,11 @@ aptitude -t squeeze-backports install cmake yasm</pre>
<td id="agg-version">2.5</td>
<td id="agg-website"><a href="http://www.antigrain.com/">Anti-Grain Geometry</a></td>
</tr>
<tr>
<td id="alure-package">alure</td>
<td id="alure-version">1.2</td>
<td id="alure-website"><a href="ihttp://kcat.strangesoft.net/alure.html">alure</a></td>
</tr>
<tr>
<td id="apr-util-package">apr-util</td>
<td id="apr-util-version">1.4.1</td>

31
src/alure.mk Normal file
View File

@ -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