aboutsummaryrefslogtreecommitdiffstats
path: root/main/sdl2_mixer
diff options
context:
space:
mode:
Diffstat (limited to 'main/sdl2_mixer')
-rw-r--r--main/sdl2_mixer/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/main/sdl2_mixer/APKBUILD b/main/sdl2_mixer/APKBUILD
new file mode 100644
index 0000000000..fcd9ca016c
--- /dev/null
+++ b/main/sdl2_mixer/APKBUILD
@@ -0,0 +1,48 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=sdl2_mixer
+pkgver=2.0.1
+pkgrel=1
+pkgdesc="A simple multi-channel audio mixer"
+url="http://www.libsdl.org/projects/SDL_mixer/"
+arch="all"
+license="GPL"
+depends=
+makedepends="sdl2-dev libvorbis-dev libmikmod-dev
+ libmodplug-dev flac-dev linux-headers"
+subpackages="$pkgname-dev"
+source="http://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-${pkgver}.tar.gz"
+
+_builddir="$srcdir"/SDL2_mixer-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ update_config_sub || return 1
+ 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 \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --enable-music-mod \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="c6c4f556d4415871f526248f5c9a627d SDL2_mixer-2.0.1.tar.gz"
+sha256sums="5a24f62a610249d744cbd8d28ee399d8905db7222bf3bdbc8a8b4a76e597695f SDL2_mixer-2.0.1.tar.gz"
+sha512sums="bdf2b4fc302f9c3b41d40bfdd5132081439e6021e915f191e478235b7b6565e7b4c43e1172d2055066ad505e2bc70876123c58f5a67218b207c829ee66a84b9d SDL2_mixer-2.0.1.tar.gz"