summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorxantares2015-06-08 23:32:25 +0200
committerxantares2015-06-08 23:32:25 +0200
commit909a8881b523a7e6497948eb607bd2a17ef40166 (patch)
treecf3243c4041e82fde92ed21bb227dc4d59333a1c /PKGBUILD
downloadaur-psp-sdl_mixer.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..db5b62c3095
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+
+pkgname=psp-sdl_mixer
+pkgver=1.2.12
+pkgrel=1
+pkgdesc="A simple multi-channel audio mixer (psp)"
+arch=('any')
+url="http://www.libsdl.org/projects/SDL_mixer/"
+license=('custom')
+depends=('psp-sdk' 'psp-sdl' 'psp-libmikmod')
+makedepends=('psp-gcc' 'psp-pkg-config')
+options=('staticlibs' '!buildflags' '!strip')
+source=("http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.12.tar.gz"
+ "SDL_mixer-${pkgver}-PSP.patch")
+md5sums=('e03ff73d77a55e3572ad0217131dc4a1'
+ '5bbfdf408e8440ad0e52bb79efcffe7e')
+
+prepare() {
+ cd SDL_mixer-$pkgver
+ rm -f README.PSP
+ patch -Np1 -i ../SDL_mixer-${pkgver}-PSP.patch
+}
+
+build() {
+ cd SDL_mixer-$pkgver
+ sh autogen.sh
+ export LDFLAGS="-L$(psp-config --pspsdk-path)/lib -L$(psp-config --psp-prefix)/lib -lc -lpspuser"
+ export LIBS="-lc -lpspuser"
+ mkdir -p build-psp && pushd build-psp
+ ../configure --prefix=/usr/psp --host=psp \
+ --with-sdl-prefix=$(psp-config --psp-prefix) --enable-music-mod --disable-music-mp3
+ make
+}
+
+package() {
+ cd SDL_mixer-$pkgver/build-psp
+ make DESTDIR="$pkgdir" install
+}