CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
sdl_mixer: initial import (verified compilation).
[attic/ports/opt-cross.git] / sdl_mixer / Pkgfile
1 # Description: A sample multi-channel audio mixer library.
2 # URL: http://www.libsdl.org/projects/SDL_mixer/
3 # Packager: Simone Rota, sip at crux dot nu
4 # Maintainer: Victor Martinez, pitillo at ono dot com
5 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
6 # Depends on: libvorbis smpeg
7
8 name=sdl_mixer
9 version=1.2.8
10 release=1
11 source=(http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-$version.tar.gz)
12
13 build() {
14 cd SDL_mixer-$version
15 sed -i -e 's|/usr/local/lib/timidity|/usr/share/timidity|g' timidity/config.h
16 ./configure --build=$CHOST \
17 --host=$CTARGET \
18 --prefix=/usr \
19 --with-sdl-prefix=$CLFS/usr \
20 --disable-sdltest
21
22 find -type f -name 'Makefile' \
23 -exec sed -i -e "s|/usr/include/SDL|$CLFS/usr/include/SDL|g" \
24 -e "s|/usr/lib|$CLFS/usr/lib|g" {} \;
25
26 make
27 make DESTDIR=$PKG install
28 }