aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libde265/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2019-02-16 17:56:49 +0100
committerJakub Jirutka <jakub@jirutka.cz>2019-02-16 17:58:26 +0100
commit4822427c9ad333fb5b4432ffaf202b027ae239ad (patch)
tree537655504114fc03caa18df2396dee9ec33cbaac /testing/libde265/APKBUILD
parentcbbc982b376fc41a1ff9c63c32eaee23cdd0ba46 (diff)
downloadaports-4822427c9ad333fb5b4432ffaf202b027ae239ad.tar.bz2
aports-4822427c9ad333fb5b4432ffaf202b027ae239ad.tar.xz
testing/libde265: new aport
Diffstat (limited to 'testing/libde265/APKBUILD')
-rw-r--r--testing/libde265/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/testing/libde265/APKBUILD b/testing/libde265/APKBUILD
new file mode 100644
index 0000000000..d5f037a7ae
--- /dev/null
+++ b/testing/libde265/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=libde265
+pkgver=1.0.3
+pkgrel=0
+pkgdesc="Open h.265 video codec implementation"
+url="https://github.com/strukturag/libde265"
+arch="all"
+license="LGPL-3.0-or-later"
+makedepends="autoconf automake libtool"
+options="!check" # no tests provided
+subpackages="$pkgname-dev"
+source="https://github.com/strukturag/libde265/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz
+ export-only-decoder-api.patch
+ disable-tools.patch
+ use-new-ffmpeg-enum-names.patch
+ "
+builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ default_prepare
+ autoreconf -fvi
+}
+
+build() {
+ # This is en/decoder, so performance matters more than size.
+ export CPPFLAGS="${CPPFLAGS/-Os/-O2}"
+ export CXXFLAGS="${CXXFLAGS/-Os/-O2}"
+
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --disable-sherlock265
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="aff040638492d9d2391df20980e336eb5e42a3a602be0c310c24ba079125f2eb70fc11cbe98f98504408d829e3f158538e07ea701ab146bc53ceb5e52c8a3ea7 libde265-1.0.3.tar.gz
+b937024655020eaea60cc02110018a4b8a63c7fca5a3c14cf042952e6acc83cf39d8d5a23d16536738a374538e2a20c8130d62e0e82a2dbd86ccea9a01433d11 export-only-decoder-api.patch
+ec3d78eb5e0df13900fdc87711372de8dbf12371feeb885dd54e824b4e6370c8b19528ad1fe07aca410ab281665a64e1357d4ab88fc78fb68d2a9ebd18761bca disable-tools.patch
+6007f51114dcfaefed402ac88599add00f5a25d9e670f20e658d166843b4df3525e9f59556c50358fad85878d5bc2062616a1dede597f4664f46fe1f3baaef7d use-new-ffmpeg-enum-names.patch"