# SliTaz package receipt.

PACKAGE="libsdl-mixer"
SOURCE="SDL_mixer"
VERSION="1.2.11"
CATEGORY="development"
SHORT_DESC="A multichannel sample and music mixer."
MAINTAINER="chadi.elahmad@gmail.com"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="http://www.libsdl.org/projects/SDL_mixer/"
WGET_URL="http://www.libsdl.org/projects/SDL_mixer/release/$TARBALL"
DEPENDS="libsdl libmad libvorbis libogg"
BUILD_DEPENDS="libsdl libsdl-dev libmad-dev libvorbis-dev libogg-dev "

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-music-mp3-mad \
		$CONFIGURE_ARGS &&
	make &&
	make DESTDIR=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/lib
	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
}