summaryrefslogtreecommitdiff
path: root/x264
diff options
context:
space:
mode:
authorDanny Rawlins <monster.romster@gmail.com>2016-08-14 13:34:03 +1000
committerDanny Rawlins <monster.romster@gmail.com>2016-08-14 13:34:03 +1000
commit866cd32198aa3341888eeb750be7243b1ea9eec5 (patch)
tree358719e88002c6af271d4acff8e6858c4455a742 /x264
parent116b49fc70e55af7bc6e74424a9922d443fa6913 (diff)
downloadcontrib-866cd32198aa3341888eeb750be7243b1ea9eec5.tar.gz
contrib-866cd32198aa3341888eeb750be7243b1ea9eec5.tar.xz
x264: add dual 8bit and 10bit support
Diffstat (limited to 'x264')
-rw-r--r--x264/.footprint8
-rw-r--r--x264/Pkgfile27
2 files changed, 31 insertions, 4 deletions
diff --git a/x264/.footprint b/x264/.footprint
index b43a8f049..88359e980 100644
--- a/x264/.footprint
+++ b/x264/.footprint
@@ -3,6 +3,14 @@ drwxr-xr-x root/root usr/include/
-rw-r--r-- root/root usr/include/x264.h
-rw-r--r-- root/root usr/include/x264_config.h
drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/lib/libx264-10bit/
+drwxr-xr-x root/root usr/lib/libx264-10bit/include/
+-rw-r--r-- root/root usr/lib/libx264-10bit/include/x264.h
+-rw-r--r-- root/root usr/lib/libx264-10bit/include/x264_config.h
+lrwxrwxrwx root/root usr/lib/libx264-10bit/libx264.so -> libx264.so.148
+-rw-r--r-- root/root usr/lib/libx264-10bit/libx264.so.148
+drwxr-xr-x root/root usr/lib/libx264-10bit/pkgconfig/
+-rw-r--r-- root/root usr/lib/libx264-10bit/pkgconfig/x264.pc
lrwxrwxrwx root/root usr/lib/libx264.so -> libx264.so.148
-rw-r--r-- root/root usr/lib/libx264.so.148
drwxr-xr-x root/root usr/lib/pkgconfig/
diff --git a/x264/Pkgfile b/x264/Pkgfile
index 7af472319..f58c53af3 100644
--- a/x264/Pkgfile
+++ b/x264/Pkgfile
@@ -6,21 +6,40 @@
name=x264
version=148.20160808
-release=1
+release=2
source=(http://crux.ster.zone/downloads/$name/$name-$version-a5e06b9.tar.xz)
build() {
- cd $name
+ cp -al $name $name-10
+
+ cd $name-10
./configure \
--prefix=/usr \
+ --libdir=/usr/lib/libx264-10bit \
+ --includedir=/usr/lib/libx264-10bit/include \
--enable-pic \
--enable-shared \
--bit-depth='10' \
- --disable-cli
+ --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"
make
make DESTDIR=$PKG install
- chmod a-x $PKG/usr/lib/*.so
+ chmod a-x $PKG/usr/lib/*.so $PKG/usr/lib/libx264-10bit/*.so
}

Generated by cgit