2011-04-18 10:52:18 +08:00
|
|
|
#
|
|
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
2012-05-20 03:11:04 +08:00
|
|
|
# maintainer abveritas@chakra-project.org
|
2011-04-18 10:52:18 +08:00
|
|
|
|
2010-03-14 23:48:48 +08:00
|
|
|
pkgname=sdl_mixer
|
2012-02-13 08:02:59 +08:00
|
|
|
pkgver=1.2.12
|
2012-12-07 11:58:12 +08:00
|
|
|
pkgrel=6
|
2010-03-14 23:48:48 +08:00
|
|
|
pkgdesc="A simple multi-channel audio mixer"
|
2012-12-07 11:58:12 +08:00
|
|
|
arch=('x86_64')
|
2010-03-14 23:48:48 +08:00
|
|
|
url="http://www.libsdl.org/projects/SDL_mixer/"
|
2012-02-13 08:02:59 +08:00
|
|
|
license=('custom')
|
|
|
|
depends=('sdl>=1.2.12' 'libvorbis' 'libmikmod' 'smpeg')
|
|
|
|
makedepends=('fluidsynth')
|
|
|
|
optdepends=('fluidsynth: MIDI software synth, replaces built-in timidity')
|
2010-03-14 23:48:48 +08:00
|
|
|
options=('!libtool')
|
2012-12-07 11:58:12 +08:00
|
|
|
source=("http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-$pkgver.tar.gz")
|
2012-02-13 08:02:59 +08:00
|
|
|
md5sums=('e03ff73d77a55e3572ad0217131dc4a1')
|
2010-03-14 23:48:48 +08:00
|
|
|
|
|
|
|
build() {
|
2012-02-13 08:02:59 +08:00
|
|
|
cd "$srcdir/SDL_mixer-$pkgver"
|
2010-03-14 23:48:48 +08:00
|
|
|
|
2012-02-13 08:02:59 +08:00
|
|
|
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|" \
|
2010-03-14 23:48:48 +08:00
|
|
|
-i timidity/config.h
|
|
|
|
|
2012-02-13 08:02:59 +08:00
|
|
|
./configure --prefix=/usr --disable-static
|
|
|
|
make
|
2011-11-09 10:27:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2012-02-13 08:02:59 +08:00
|
|
|
cd "$srcdir/SDL_mixer-$pkgver"
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
|
|
|
|
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
2010-03-14 23:48:48 +08:00
|
|
|
}
|