blob: f58c53af385ee993ecbefd301c47f2daa10b194f (
plain)
1 # Description: Library for encoding H264/AVC video streams (snapshot).
2 # URL: http://www.videolan.org/developers/x264.html
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Packager: Rouven Schuerch, rs at tegonal dot com
5 # Depends on: yasm
6
7 name=x264
8 version=148.20160808
9 release=2
10 source=(http://crux.ster.zone/downloads/$name/$name-$version-a5e06b9.tar.xz)
11
12 build() {
13 cp -al $name $name-10
14
15 cd $name-10
16
17 ./configure \
18 --prefix=/usr \
19 --libdir=/usr/lib/libx264-10bit \
20 --includedir=/usr/lib/libx264-10bit/include \
21 --enable-pic \
22 --enable-shared \
23 --bit-depth='10' \
24 --disable-cli \
25 --disable-interlaced \
26 --extra-cflags="$CFLAGS"
27
28 make
29 make DESTDIR=$PKG install-lib-shared
30
31 cd $SRC/$name
32
33 ./configure \
34 --prefix=/usr \
35 --enable-pic \
36 --enable-shared \
37 --bit-depth='8' \
38 --disable-cli \
39 --extra-cflags="$CFLAGS"
40
41 make
42 make DESTDIR=$PKG install
43
44 chmod a-x $PKG/usr/lib/*.so $PKG/usr/lib/libx264-10bit/*.so
45 }
|