# SliTaz package receipt.

PACKAGE="x264"
VERSION="20111111-2245"
CATEGORY="multimedia"
MAINTAINER="jozee@slitaz.org"
SHORT_DESC="free library for encoding H264/AVC video streams"
WEB_SITE="http://www.videolan.org/developers/x264.html"
DEPENDS="glibc-base"
BUILD_DEPENDS="yasm"
SOURCE="$PACKAGE-snapshot"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WGET_URL="ftp://ftp.videolan.org/pub/videolan/x264/snapshots/$TARBALL"

# Rules to configure and make the package.

compile_rules() {
    cd $src 
    ./configure --enable-shared &&
    make &&
    make DESTDIR=$PWD/_pkg \
         bindir=/usr/bin \
         libdir=/usr/lib \
         includedir=/usr/include install 
}
	
# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/lib
	cp -a $_pkg/usr/bin $fs/usr
	cp -a $_pkg/usr/lib/*so* $fs/usr/lib/	
}