sdl2_mixer: we have cmake 3.0 now.

This commit is contained in:
Jeff Huang 2015-10-07 11:48:15 +00:00
parent 0c3e26bead
commit 732921dff9

View File

@ -1,11 +1,6 @@
#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=sdl2_mixer
pkgver=2.0.0
pkgrel=3
pkgrel=4
pkgdesc="A simple multi-channel audio mixer (Version 2)"
arch=('x86_64')
url="http://www.libsdl.org"
@ -19,8 +14,16 @@ source=("http://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-${pkgver}.t
sha256sums=('a8ce0e161793791adeff258ca6214267fdd41b3c073d2581cd5265c8646f725b'
'3910aa85e55ac64c8eb6da69fdd7ed3fab704119339e991f956f1cea19c11973')
prepare() {
cd "${srcdir}/SDL2_mixer-${pkgver}/"
sed -i "s|/etc/timidity|/etc/timidity++|g" timidity/config.h
sed -i "s|/etc/timidity++.cfg|/etc/timidity++/timidity.cfg|g" timidity/config.h
}
build() {
cd "${srcdir}/SDL2_mixer-${pkgver}/"
export CFLAGS+=" ${CFLAGS} -I/usr/include/libmodplug"
./configure --disable-static --prefix=/usr
make
}
@ -31,6 +34,6 @@ package() {
install -Dm644 COPYING.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# we can remove the following when provided directly by cmake
install -Dm644 $srcdir/FindSDL2_mixer.cmake ${pkgdir}/usr/share/cmake-2.8/Modules/FindSDL2_mixer.cmake
install -Dm644 $srcdir/FindSDL2_mixer.cmake ${pkgdir}/usr/share/cmake-3.0/Modules/FindSDL2_mixer.cmake
}