summaryrefslogtreecommitdiffstats
path: root/src/sdl_mixer.mk
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2008-11-09 00:57:00 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2008-11-09 00:57:00 (GMT)
commit2e9c4b84f9d1cfd059d580018a87ec5f694d9ab5 (patch)
treeef1428c88d94ae52bba6f7ee73002b07e1f87caa /src/sdl_mixer.mk
parent0d90e444ed1ee8a765d2b3e96741a327652285ca (diff)
downloadmxe-2e9c4b84f9d1cfd059d580018a87ec5f694d9ab5.zip
mxe-2e9c4b84f9d1cfd059d580018a87ec5f694d9ab5.tar.gz
mxe-2e9c4b84f9d1cfd059d580018a87ec5f694d9ab5.tar.bz2
translated package: sdl_mixer
Diffstat (limited to 'src/sdl_mixer.mk')
-rw-r--r--src/sdl_mixer.mk32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/sdl_mixer.mk b/src/sdl_mixer.mk
new file mode 100644
index 0000000..0e22f43
--- /dev/null
+++ b/src/sdl_mixer.mk
@@ -0,0 +1,32 @@
+# SDL_mixer
+# http://libsdl.org/projects/SDL_mixer/
+
+PKG := sdl_mixer
+$(PKG)_VERSION := 1.2.8
+$(PKG)_SUBDIR := SDL_mixer-$($(PKG)_VERSION)
+$(PKG)_FILE := SDL_mixer-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := http://libsdl.org/projects/SDL_mixer/release/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc sdl libmikmod ogg smpeg
+
+define $(PKG)_UPDATE
+ wget -q -O- 'http://libsdl.org/projects/SDL_mixer/' | \
+ $(SED) -n 's,.*SDL_mixer-\([0-9][^>]*\)\.tar.*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ $(SED) 's,for path in /usr/local; do,for path in; do,' -i '$(1)/configure'
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --disable-shared \
+ --prefix='$(PREFIX)/$(TARGET)' \
+ --with-sdl-prefix='$(PREFIX)/$(TARGET)' \
+ --disable-sdltest \
+ --enable-music-libmikmod \
+ --enable-music-ogg \
+ --disable-music-ogg-shared \
+ --with-smpeg-prefix='$(PREFIX)/$(TARGET)' \
+ --disable-smpegtest \
+ --disable-music-mp3-shared
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
+endef