#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com)

pkgname=x264
pkgver=20100325
pkgrel=1gv
arch=i486
source=("ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-$pkgver-2245.tar.bz2")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers" "ratecontrol.txt" "regression_test.txt" "threads.txt" "vui.txt")
url=http://www.videolan.org/developers/x264.html

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"x264 is a free library for encoding H264/AVC video streams"
"The x264 package includes the library to encode H264/AVC video streams"
"as well as a command line tool for encoding videos and a gtk gui."
)


build() {
	cd $startdir/src/$pkgname-snapshot-$pkgver-2245
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --enable-shared --enable-pthread --enable-visualize --enable-pic
	make || return 1
	make install DESTDIR=$startdir/pkg

	rm $startdir/pkg/usr/lib${LIBDIRSUFFIX}/libx264.a
} 
