2014-10-22 20:58:48 +11:00
|
|
|
# Description: Open Source H265/HEVC video encoder.
|
|
|
|
# URL: https://bitbucket.org/multicoreware/x265/wiki/Home
|
2014-11-10 23:28:07 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
|
|
# Packager: Danny Rawlins, crux at romster dot me
|
2014-10-22 20:58:48 +11:00
|
|
|
# Depends on: yasm cmake
|
|
|
|
|
|
|
|
name=x265
|
2017-08-16 21:56:39 +10:00
|
|
|
version=2.5
|
2014-10-22 20:58:48 +11:00
|
|
|
release=1
|
2016-08-08 18:51:35 +10:00
|
|
|
source=(https://bitbucket.org/multicoreware/$name/downloads/${name}_$version.tar.gz)
|
2014-10-22 20:58:48 +11:00
|
|
|
|
|
|
|
build() {
|
2016-08-08 18:51:35 +10:00
|
|
|
cd ${name}_$version
|
2014-10-22 20:58:48 +11:00
|
|
|
|
2016-08-08 18:51:35 +10:00
|
|
|
install -d build-{12,10,8}
|
|
|
|
cd build-12
|
|
|
|
|
|
|
|
cmake ../source \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2017-08-16 21:56:39 +10:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
2016-08-08 18:51:35 +10:00
|
|
|
-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'
|
2014-10-22 20:58:48 +11:00
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
}
|