summaryrefslogtreecommitdiff
path: root/repo/libde265/libde265.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-06 21:25:48 +0000
committerdavidovski <david@davidovski.xyz>2022-06-06 21:25:48 +0000
commitccc722b7ed330198d82a3cf28ead76d6d107a70a (patch)
tree7611b3cc4f3ca681524fa28b174a0253eb802e0e /repo/libde265/libde265.xibuild
parent9ee32689f0b57b9e1de6d22c84ce8e3700b6122b (diff)
added java
Diffstat (limited to 'repo/libde265/libde265.xibuild')
-rw-r--r--repo/libde265/libde265.xibuild38
1 files changed, 38 insertions, 0 deletions
diff --git a/repo/libde265/libde265.xibuild b/repo/libde265/libde265.xibuild
new file mode 100644
index 0000000..2806505
--- /dev/null
+++ b/repo/libde265/libde265.xibuild
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+NAME="libde265"
+DESC="Open h.265 video codec implementation"
+
+MAKEDEPS=" autoconf automake libtool"
+
+PKG_VER=1.0.8
+SOURCE="https://github.com/strukturag/libde265/releases/download/v$PKG_VER/libde265-$PKG_VER.tar.gz"
+
+ADDITIONAL="
+disable_tools.patch
+export-only-decoder-api.patch
+"
+
+prepare() {
+ apply_patches
+ autoreconf -fvi
+}
+
+build() {
+ # This is en/decoder, so performance matters more than size.
+ export CPPFLAGS="$CPPFLAGS -O2"
+ export CXXFLAGS="$CXXFLAGS -O2"
+
+ ./configure \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --disable-sherlock265
+ make
+}
+
+package() {
+ make DESTDIR="$PKG_DEST" install
+
+ # The upstream do the same in their Ubuntu/PPA packages.
+ mv "$PKG_DEST"/usr/bin/dec265 "$PKG_DEST"/usr/bin/libde265-dec265
+}