aboutsummaryrefslogtreecommitdiffstats
path: root/community/sdl_mixer/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/sdl_mixer/APKBUILD')
-rw-r--r--community/sdl_mixer/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/community/sdl_mixer/APKBUILD b/community/sdl_mixer/APKBUILD
new file mode 100644
index 0000000000..2935d5e12a
--- /dev/null
+++ b/community/sdl_mixer/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Carlo Landmeter
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=sdl_mixer
+pkgver=1.2.12
+pkgrel=1
+pkgdesc="A simple multi-channel audio mixer"
+url="http://www.libsdl.org/projects/SDL_mixer/"
+arch="all"
+license="BSD-3-Clause"
+makedepends="sdl-dev libvorbis-dev libmikmod-dev flac-dev linux-headers"
+subpackages="$pkgname-dev"
+source="https://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-$pkgver.tar.gz"
+builddir="$srcdir"/SDL_mixer-$pkgver
+
+prepare() {
+ default_prepare
+ update_config_sub
+ 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() {
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --enable-music-mod
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="230f6c5a73f4bea364f8aa3d75f76694305571dea45f357def742b2b50849b2d896af71e08689981207edc99a9836088bee2d0bd98d92c7f4ca52b12b3d8cf96 SDL_mixer-1.2.12.tar.gz"