From ccc722b7ed330198d82a3cf28ead76d6d107a70a Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 6 Jun 2022 21:25:48 +0000 Subject: added java --- repo/libde265/libde265.xibuild | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 repo/libde265/libde265.xibuild (limited to 'repo/libde265/libde265.xibuild') 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 +} -- cgit v1.2.1