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
|
2014-11-10 23:28:07 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2007-06-25 15:09:34 +10:00
|
|
|
# Packager: Rouven Schuerch, rs at tegonal dot com
|
2008-12-20 22:04:16 +11:00
|
|
|
# Depends on: yasm
|
2007-06-25 15:09:34 +10:00
|
|
|
|
|
|
|
name=x264
|
2016-08-08 20:02:50 +10:00
|
|
|
version=148.20160808
|
2016-08-14 13:34:03 +10:00
|
|
|
release=2
|
2016-08-08 20:02:50 +10:00
|
|
|
source=(http://crux.ster.zone/downloads/$name/$name-$version-a5e06b9.tar.xz)
|
2007-06-25 15:09:34 +10:00
|
|
|
|
|
|
|
build() {
|
2016-08-14 13:34:03 +10:00
|
|
|
cp -al $name $name-10
|
|
|
|
|
|
|
|
cd $name-10
|
2007-08-16 10:49:59 +10:00
|
|
|
|
2007-06-25 15:09:34 +10:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2016-08-14 13:34:03 +10:00
|
|
|
--libdir=/usr/lib/libx264-10bit \
|
|
|
|
--includedir=/usr/lib/libx264-10bit/include \
|
2007-08-16 10:49:59 +10:00
|
|
|
--enable-pic \
|
2016-08-08 20:02:50 +10:00
|
|
|
--enable-shared \
|
|
|
|
--bit-depth='10' \
|
2016-08-14 13:34:03 +10:00
|
|
|
--disable-cli \
|
|
|
|
--disable-interlaced \
|
|
|
|
--extra-cflags="$CFLAGS"
|
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install-lib-shared
|
|
|
|
|
|
|
|
cd $SRC/$name
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--enable-pic \
|
|
|
|
--enable-shared \
|
|
|
|
--bit-depth='8' \
|
|
|
|
--disable-cli \
|
|
|
|
--extra-cflags="$CFLAGS"
|
2007-06-25 15:09:34 +10:00
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2016-08-08 20:02:50 +10:00
|
|
|
|
2016-08-14 13:34:03 +10:00
|
|
|
chmod a-x $PKG/usr/lib/*.so $PKG/usr/lib/libx264-10bit/*.so
|
2007-06-25 15:09:34 +10:00
|
|
|
}
|