# SliTaz package receipt.

PACKAGE="libtheora"
VERSION="1.1.1"
CATEGORY="multimedia"
SHORT_DESC="Thera video codec and tools."
MAINTAINER="pankso@slitaz.org"
DEPENDS="libogg libvorbis"
BUILD_DEPENDS="libogg-dev libvorbis-dev"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://www.theora.org/"
WGET_URL="http://downloads.xiph.org/releases/theora/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		$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/libtheora.so* $fs/usr/lib
}