aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-03-27 05:52:12 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-03-29 15:55:31 +0000
commitd7359032ed04e588c68b113fad77c9ce85a93f0d (patch)
tree6fee90065268c56283ffb7f4ac70c0548d8e8d6c /community
parent8949d6eeb68a694957e581292b2fc4c3df531f57 (diff)
downloadaports-d7359032ed04e588c68b113fad77c9ce85a93f0d.tar.gz
aports-d7359032ed04e588c68b113fad77c9ce85a93f0d.tar.bz2
aports-d7359032ed04e588c68b113fad77c9ce85a93f0d.tar.xz
community/libheif: move from main
Diffstat (limited to 'community')
-rw-r--r--community/libheif/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/community/libheif/APKBUILD b/community/libheif/APKBUILD
new file mode 100644
index 0000000000..043aed4ac6
--- /dev/null
+++ b/community/libheif/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=libheif
+pkgver=1.6.2
+pkgrel=1
+pkgdesc="ISO/IEC 23008-12:2017 HEIF file format decoder and encoder"
+url="https://www.libde265.org"
+arch="all"
+license="LGPL-3.0-or-later"
+depends_dev="x265-dev libde265-dev"
+makedepends="$depends_dev libjpeg-turbo-dev libpng-dev"
+options="!check" # no tests provided
+subpackages="$pkgname-dev $pkgname-tools $pkgname-doc"
+source="https://github.com/strukturag/libheif/releases/download/v$pkgver/libheif-$pkgver.tar.gz"
+
+# secfixes:
+# 1.5.0-r0:
+# - CVE-2019-11471
+
+build() {
+ # This is en/decoder, so performance matters more than size.
+ export CPPFLAGS="${CFLAGS/-Os/-O2}"
+ export CXXFLAGS="${CFLAGS/-Os/-O2}"
+
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --disable-static
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+tools() {
+ pkgdesc="$pkgdesc (tools)"
+
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+}
+
+sha512sums="41848c05d88f82827ebdd0662a1870ce8b7899f6a86ef5aa483b301176602da8e69d2c5a49b4d911bc0cac51bdab81a06fd43efae2722092cc09c02119c95f07 libheif-1.6.2.tar.gz"