2012-05-27 22:55:05 +08:00
|
|
|
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
|
|
|
|
|
|
|
_pkgbasename=sdl_mixer
|
|
|
|
pkgname=lib32-$_pkgbasename
|
2012-07-30 02:29:23 +08:00
|
|
|
pkgver=1.2.12
|
|
|
|
pkgrel=1
|
2012-05-27 22:55:05 +08:00
|
|
|
pkgdesc="A simple multi-channel audio mixer (32-bit)"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="http://www.libsdl.org/projects/SDL_mixer/"
|
|
|
|
license=('LGPL' 'GPL')
|
2012-10-31 22:53:16 +08:00
|
|
|
depends=("$_pkgbasename=$pkgver" 'lib32-sdl>=1.2.12' 'lib32-libvorbis' 'lib32-libmikmod' 'lib32-smpeg')
|
2012-05-27 22:55:05 +08:00
|
|
|
makedepends=('gcc-multilib')
|
|
|
|
options=('!libtool')
|
|
|
|
source=("http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-${pkgver}.tar.gz")
|
2012-07-30 02:29:23 +08:00
|
|
|
md5sums=('e03ff73d77a55e3572ad0217131dc4a1')
|
2012-05-27 22:55:05 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
export CC='gcc -m32'
|
|
|
|
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
|
|
|
|
|
|
|
|
cd "${srcdir}/SDL_mixer-${pkgver}"
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2012-07-30 02:29:23 +08:00
|
|
|
--libdir=/usr/lib32 \
|
|
|
|
--disable-static
|
2012-05-27 22:55:05 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd ${srcdir}/SDL_mixer-${pkgver}
|
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
rm -rf "$pkgdir/usr/include"
|
|
|
|
cd "$pkgdir/usr/lib32/" || return 1
|
|
|
|
ln -sf libSDL_mixer-1.2.so.10.1 libSDL_mixer-1.2.so.0
|
|
|
|
}
|