2007-06-25 15:09:34 +10:00
|
|
|
# Description: Library for encoding H264/AVC video streams (snapshot).
|
|
|
|
# URL: http://developers.videolan.org/x264.html
|
|
|
|
# Maintainer: Danny Rawlins, romster at shortcircuit dot net dot au
|
|
|
|
# Packager: Rouven Schuerch, rs at tegonal dot com
|
2007-12-05 07:56:06 +11:00
|
|
|
# Depends on: lzma
|
2007-06-25 15:09:34 +10:00
|
|
|
|
|
|
|
name=x264
|
2008-01-07 12:43:47 +11:00
|
|
|
version=r717
|
2007-06-25 15:09:34 +10:00
|
|
|
release=1
|
2007-12-05 07:56:06 +11:00
|
|
|
source=(http://romster.shortcircuit.net.au/crux/source/x264-snapshot-$version.tar.lzma)
|
2007-06-25 15:09:34 +10:00
|
|
|
|
|
|
|
build() {
|
2007-12-05 07:56:06 +11:00
|
|
|
# temp fix untill/if pkgutils supports lzma
|
|
|
|
if [ -e $SRC/$name-snapshot-$version.tar.lzma ]; then
|
|
|
|
tar --use-compress-program=lzma -xf $name-snapshot-$version.tar.lzma
|
|
|
|
rm $name-snapshot-$version.tar.lzma
|
|
|
|
fi
|
|
|
|
|
2007-06-25 15:09:34 +10:00
|
|
|
cd x264
|
2007-08-16 10:49:59 +10:00
|
|
|
|
|
|
|
sed -i -e '/^ CFLAGS="/s/-O4 -ffast-math $CFLAGS/${CFLAGS\/-O?\/-O3} -ffast-math/' configure
|
|
|
|
|
2007-06-25 15:09:34 +10:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2007-08-16 10:49:59 +10:00
|
|
|
--enable-pic \
|
2007-06-25 15:09:34 +10:00
|
|
|
--enable-pthread \
|
|
|
|
--enable-shared
|
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
}
|
|
|
|
|