diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-09-28 19:10:41 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-09-28 19:12:00 +0000 |
commit | 6405e20e9f924e6d82ffb1a7b9054fe781bf1f81 (patch) | |
tree | f6a6e42f7c294c6315662be4f9358254fd67080c /user/sdl_mixer/APKBUILD | |
parent | dd696e6ecb19040686902d608141c1c3c58e96cc (diff) | |
download | packages-6405e20e9f924e6d82ffb1a7b9054fe781bf1f81.tar.gz packages-6405e20e9f924e6d82ffb1a7b9054fe781bf1f81.tar.bz2 packages-6405e20e9f924e6d82ffb1a7b9054fe781bf1f81.tar.xz packages-6405e20e9f924e6d82ffb1a7b9054fe781bf1f81.zip |
user/sdl_mixer: new package
Diffstat (limited to 'user/sdl_mixer/APKBUILD')
-rw-r--r-- | user/sdl_mixer/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/user/sdl_mixer/APKBUILD b/user/sdl_mixer/APKBUILD new file mode 100644 index 000000000..2cdb8238e --- /dev/null +++ b/user/sdl_mixer/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Carlo Landmeter +# Maintainer: +pkgname=sdl_mixer +pkgver=1.2.12 +pkgrel=2 +pkgdesc="A simple multi-channel audio mixer" +url="https://www.libsdl.org/projects/SDL_mixer/release-1.2.html" +arch="all" +options="!check" # No test suite. +license="Zlib" +depends="" +makedepends="flac-dev fluidsynth-dev libvorbis-dev linux-headers sdl-dev" +subpackages="$pkgname-dev" +source="https://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-${pkgver}.tar.gz" +builddir="$srcdir"/SDL_mixer-$pkgver + +prepare() { + cd "$builddir" + 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() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --enable-music-mod + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +sha512sums="230f6c5a73f4bea364f8aa3d75f76694305571dea45f357def742b2b50849b2d896af71e08689981207edc99a9836088bee2d0bd98d92c7f4ca52b12b3d8cf96 SDL_mixer-1.2.12.tar.gz" |