summaryrefslogtreecommitdiff
path: root/repo/media/x265
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-04 23:52:30 +0100
committerdavidovski <david@davidovski.xyz>2022-05-04 23:52:30 +0100
commit739c65c54cb0e957df5e9b76f93fb02554e5cac3 (patch)
tree09ddfa0a342f3ea9de136cb50abdd79821bf1b53 /repo/media/x265
parent4c585ad54388285500fd18a6aaa516894e0f2c16 (diff)
moved everything to new file formatting
Diffstat (limited to 'repo/media/x265')
-rw-r--r--repo/media/x265/x265.xibuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/repo/media/x265/x265.xibuild b/repo/media/x265/x265.xibuild
new file mode 100644
index 0000000..69bd3e2
--- /dev/null
+++ b/repo/media/x265/x265.xibuild
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+NAME="x265"
+DESC="Open Source H265/HEVC video encoder"
+
+MAKEDEPS="cmake "
+DEPS="musl "
+
+PKG_VER=3.5
+SOURCE="https://bitbucket.org/multicoreware/x265_git/downloads/x265_$PKG_VER.tar.gz"
+
+build () {
+ # CMAKE_BUILD_TYPE - Don't change to None! This is a video encoder,
+ # performance is the most important.
+ cmake -B build-12 -S source -G Ninja \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DHIGH_BIT_DEPTH=TRUE \
+ -DMAIN12=TRUE \
+ -DEXPORT_C_API=FALSE \
+ -DENABLE_CLI=FALSE \
+ -DENABLE_SHARED=FALSE
+ cmake --build build-12
+
+ cmake -B build-10 -S source -G Ninja \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DHIGH_BIT_DEPTH=TRUE \
+ -DEXPORT_C_API=FALSE \
+ -DENABLE_CLI=FALSE \
+ -DENABLE_SHARED=FALSE
+ cmake --build build-10
+
+ cmake -B build -S source -G Ninja \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DEXTRA_LIB='x265_main10.a;x265_main12.a' \
+ -DEXTRA_LINK_FLAGS='-L.' \
+ -DLINKED_10BIT=TRUE \
+ -DLINKED_12BIT=TRUE
+ ln -s ../build-10/libx265.a build/libx265_main10.a
+ ln -s ../build-12/libx265.a build/libx265_main12.a
+ cmake --build build
+
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
+