contrib/x264/Pkgfile

36 lines
882 B
Plaintext
Raw Normal View History

2007-06-25 07:09:34 +02:00
# Description: Library for encoding H264/AVC video streams (snapshot).
# URL: http://developers.videolan.org/x264.html
2008-03-26 03:45:31 +01:00
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
2007-06-25 07:09:34 +02:00
# Packager: Rouven Schuerch, rs at tegonal dot com
2007-12-04 21:56:06 +01:00
# Depends on: lzma
2007-06-25 07:09:34 +02:00
name=x264
2008-03-07 13:40:09 +01:00
version=r745
2007-06-25 07:09:34 +02:00
release=1
2008-03-26 03:20:06 +01:00
source=(ftp://romster.dyndns.org/linux/source/x264/x264-snapshot-$version.tar.lzma)
2007-06-25 07:09:34 +02:00
build() {
2007-12-04 21:56:06 +01: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 07:09:34 +02:00
cd x264
2008-01-29 05:13:05 +01:00
export CFLAGS="$(echo $CFLAGS |sed -e 's/-O[s0-3] //')"
2007-08-16 02:49:59 +02:00
2008-01-29 05:13:05 +01:00
sed -i \
-e 's/-O4/-O3/' \
-e 's|-I/usr/X11R6/include|-I/usr/X11/include|' configure
2007-08-16 02:49:59 +02:00
2007-06-25 07:09:34 +02:00
./configure \
--prefix=/usr \
2007-08-16 02:49:59 +02:00
--enable-pic \
2007-06-25 07:09:34 +02:00
--enable-pthread \
--enable-shared
make
make DESTDIR=$PKG install
}