# SliTaz package receipt.

PACKAGE="libsmpeg"
VERSION="390"
CATEGORY="development"
SHORT_DESC="Mpeg decoding library"
MAINTAINER="claudinei@slitaz.org"
WEB_SITE="http://icculus.org/smpeg"
DEPENDS="libsdl gcc-lib-base"
BUILD_DEPENDS="libsdl libsdl-dev gtk+-dev autoconf automake m4 subversion tar"
WGET_URL="subversion|svn://svn.icculus.org/smpeg/trunk"
BRANCH="$VERSION"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	chmod +x install-sh
	./autogen.sh
	./configure --prefix=/usr --disable-gtk-player $CONFIGURE_ARGS &&
	make LDFLAGS+=-lstdc++ &&
	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

}