diff options
author | Danny Rawlins <monster.romster@gmail.com> | 2016-08-08 18:51:35 +1000 |
---|---|---|
committer | Danny Rawlins <monster.romster@gmail.com> | 2016-08-08 20:46:12 +1000 |
commit | a3f6311a04d30fbb649ca09c3f41fcf25dd15d5b (patch) | |
tree | 446ababea1531de19faeec4a8f4abf0e2934d8bb /x265 | |
parent | d35fbc237372b279eda54538ebdf8693ed65126b (diff) | |
download | contrib-a3f6311a04d30fbb649ca09c3f41fcf25dd15d5b.tar.gz contrib-a3f6311a04d30fbb649ca09c3f41fcf25dd15d5b.tar.xz |
x265: 1.9 -> 2.0
Diffstat (limited to 'x265')
-rw-r--r-- | x265/.footprint | 4 | ||||
-rw-r--r-- | x265/.md5sum | 2 | ||||
-rw-r--r-- | x265/Pkgfile | 48 |
3 files changed, 42 insertions, 12 deletions
diff --git a/x265/.footprint b/x265/.footprint index a55e5266f..2b60aea22 100644 --- a/x265/.footprint +++ b/x265/.footprint @@ -6,7 +6,7 @@ drwxr-xr-x root/root usr/include/ -rw-r--r-- root/root usr/include/x265_config.h drwxr-xr-x root/root usr/lib/ -rw-r--r-- root/root usr/lib/libx265.a -lrwxrwxrwx root/root usr/lib/libx265.so -> libx265.so.79 --rwxr-xr-x root/root usr/lib/libx265.so.79 +lrwxrwxrwx root/root usr/lib/libx265.so -> libx265.so.87 +-rwxr-xr-x root/root usr/lib/libx265.so.87 drwxr-xr-x root/root usr/lib/pkgconfig/ -rw-r--r-- root/root usr/lib/pkgconfig/x265.pc diff --git a/x265/.md5sum b/x265/.md5sum index be33c02d0..027366e0b 100644 --- a/x265/.md5sum +++ b/x265/.md5sum @@ -1 +1 @@ -821ba18977ebaaf48cc334b78125168c 1.9.tar.bz2 +a4f16c0f054f002d6d8c9c6f7fb03026 x265_2.0.tar.gz diff --git a/x265/Pkgfile b/x265/Pkgfile index 408ab26b7..fd7bad003 100644 --- a/x265/Pkgfile +++ b/x265/Pkgfile @@ -5,20 +5,50 @@ # Depends on: yasm cmake name=x265 -version=1.9 +version=2.0 release=1 -source=(https://bitbucket.org/multicoreware/x265/get/$version.tar.bz2) +source=(https://bitbucket.org/multicoreware/$name/downloads/${name}_$version.tar.gz) build() { - cd multicoreware-$name-*/build/linux + cd ${name}_$version - # setting CC and CXX breaks compilation - if [ -n "$(pkginfo -i | grep '^ccache ')" ]; then - unset CC CXX - export PATH="/usr/lib/ccache/:$PATH" - fi + install -d build-{12,10,8} + cd build-12 + + cmake ../source \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DHIGH_BIT_DEPTH='TRUE' \ + -DMAIN12='TRUE' \ + -DEXPORT_C_API='FALSE' \ + -DENABLE_CLI='FALSE' \ + -DENABLE_SHARED='FALSE' + + make + + cd ../build-10 + + cmake ../source \ + -DCMAKE_INSTALL_PREFIX='/usr' \ + -DHIGH_BIT_DEPTH='TRUE' \ + -DEXPORT_C_API='FALSE' \ + -DENABLE_CLI='FALSE' \ + -DENABLE_SHARED='FALSE' + + make + + cd ../build-8 + + ln -s ../build-12/libx265.a libx265_main12.a + ln -s ../build-10/libx265.a libx265_main10.a + + cmake ../source \ + -DCMAKE_INSTALL_PREFIX='/usr' \ + -DENABLE_SHARED='TRUE' \ + -DEXTRA_LIB='x265_main10.a;x265_main12.a' \ + -DEXTRA_LINK_FLAGS='-L.' \ + -DLINKED_10BIT='TRUE' \ + -DLINKED_12BIT='TRUE' - cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr ../../source make make DESTDIR=$PKG install } |