# SliTaz package receipt.

PACKAGE="swfdec"
VERSION="0.9.2"
CATEGORY="multimedia"
SHORT_DESC="Macromedia Flash decoding library"
MAINTAINER="devl547@gmail.com"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://swfdec.freedesktop.org/"
WGET_URL="http://swfdec.freedesktop.org/download/swfdec/0.9/$TARBALL"
BUILD_DEPENDS="glib-dev liboil-dev pango-dev gtk+-dev libsoup-dev \
cairo-dev alsa-lib-dev gstreamer-dev gst-plugins-base-dev"
DEPENDS="glib liboil pango gtk+ libsoup cairo alsa-lib gstreamer gst-plugins-base"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure --prefix=/usr --infodir=/usr/share/info \
	--mandir=/usr/share/man $CONFIGURE_ARGS \
	--enable-gtk --with-audio="alsa" &&
	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
}