summaryrefslogtreecommitdiffstats
path: root/main/sdl_mixer
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2010-09-16 00:09:50 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2010-09-21 08:31:33 +0000
commit1515aa5ac729a42e29decdfa2536453a37ab4298 (patch)
tree2954fa2e6326d2c13daa4487e0b97941212426a3 /main/sdl_mixer
parentc257a3c22ae47387f665d82e197928872b8698d6 (diff)
downloadaports-1515aa5ac729a42e29decdfa2536453a37ab4298.tar.bz2
aports-1515aa5ac729a42e29decdfa2536453a37ab4298.tar.xz
main/sdl_mixer: new apkbuild
(cherry picked from commit bb7535168cfa3dbf52f4bdac5174de59c2c3397a)
Diffstat (limited to 'main/sdl_mixer')
-rw-r--r--main/sdl_mixer/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/main/sdl_mixer/APKBUILD b/main/sdl_mixer/APKBUILD
new file mode 100644
index 000000000..bbab864d3
--- /dev/null
+++ b/main/sdl_mixer/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Carlo Landmeter
+# Maintainer:
+pkgname=sdl_mixer
+pkgver=1.2.11
+pkgrel=0
+pkgdesc="A simple multi-channel audio mixer"
+url="http://www.libsdl.org/projects/SDL_mixer/"
+license="GPL"
+depends=
+makedepends="sdl-dev libvorbis-dev"
+install=
+subpackages="$pkgname-dev"
+source="http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-${pkgver}.tar.gz"
+
+_builddir="$srcdir"/SDL_mixer-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ sed -e "/CONFIG_FILE_ETC/s/\/etc\/timidity.cfg/\/etc\/timidity++\/timidity.cfg/" \
+ -e "/DEFAULT_PATH/s/\/etc\/timidity/\/etc\/timidity++/" \
+ -e "/DEFAULT_PATH2/s/\/usr\/local\/lib\/timidity/\/usr\/lib\/timidity/" \
+ -i timidity/config.h
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+md5sums="65ada3d997fe85109191a5fb083f248c SDL_mixer-1.2.11.tar.gz"