2007-06-25 15:09:34 +10:00
|
|
|
# Description: Library for encoding H264/AVC video streams (snapshot).
|
2008-04-01 16:25:33 +10:00
|
|
|
# URL: http://www.videolan.org/developers/x264.html
|
2008-03-26 13:45:31 +11:00
|
|
|
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
|
2007-06-25 15:09:34 +10:00
|
|
|
# Packager: Rouven Schuerch, rs at tegonal dot com
|
2008-04-11 19:58:50 +10:00
|
|
|
# Depends on:
|
2008-03-30 19:33:10 +10:00
|
|
|
# Optional: yasm
|
2007-06-25 15:09:34 +10:00
|
|
|
|
|
|
|
name=x264
|
2008-04-11 10:21:36 +10:00
|
|
|
version=0.59.816-761630d
|
2007-06-25 15:09:34 +10:00
|
|
|
release=1
|
2008-04-12 03:49:50 +10:00
|
|
|
source=(http://www.dcaf-security.org/distfiles/x264-snapshot-$version.tar.bz2)
|
2007-06-25 15:09:34 +10:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd x264
|
2008-01-29 15:13:05 +11:00
|
|
|
export CFLAGS="$(echo $CFLAGS |sed -e 's/-O[s0-3] //')"
|
2007-08-16 10:49:59 +10:00
|
|
|
|
2008-01-29 15:13:05 +11:00
|
|
|
sed -i \
|
|
|
|
-e 's/-O4/-O3/' \
|
|
|
|
-e 's|-I/usr/X11R6/include|-I/usr/X11/include|' configure
|
2007-08-16 10:49:59 +10:00
|
|
|
|
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 \
|
2008-04-01 13:45:44 +10:00
|
|
|
--enable-shared
|
2007-06-25 15:09:34 +10:00
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2008-04-01 13:45:44 +10:00
|
|
|
chmod a-x $PKG/usr/lib/*.so
|
2007-06-25 15:09:34 +10:00
|
|
|
}
|
|
|
|
|