# SliTaz package receipt.

PACKAGE="libvpx"
VERSION="0.9.7-p1"
CATEGORY="multimedia"
SHORT_DESC="The VP8 Codec SDK"
MAINTAINER="slaxemulator@gmail.com"
WEB_SITE="http://www.webmproject.org/"
TARBALL="$PACKAGE-v$VERSION.tar.bz2"
WGET_URL="http://webm.googlecode.com/files/$TARBALL"

DEPENDS="glibc-base"
BUILD_DEPENDS="yasm coreutils-file-format"

# Rules to configure and make the package.
compile_rules()
{
	./configure --enable-vp8 \
		--enable-runtime-cpu-detect \
		--enable-shared \
		--enable-postproc \
		--enable-pic \
		--disable-install-docs \
		--disable-install-srcs && 
	make && make DIST_DIR=$DESTDIR/usr install
}

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