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

pkgname=x264
pkgver=20101229
pkgrel=1gv
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 (a free library for encoding H264/AVC video streams)"
"The x264 package includes the library to encode H264/AVC video"
"streams. It is released under the terms of the GNU General Public"
"License."
)


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

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