diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2019-06-17 13:15:12 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-06-17 13:15:12 +0000 |
commit | ab8cb73992d03ba1b3a91be55b1d859dc355b6bd (patch) | |
tree | abc82bbeed3a0797e791bba788694b6d86d750ac /main/libheif | |
parent | 97eebdc34c933fc99db17f4204b0204bc58b1b52 (diff) | |
download | aports-ab8cb73992d03ba1b3a91be55b1d859dc355b6bd.tar.bz2 aports-ab8cb73992d03ba1b3a91be55b1d859dc355b6bd.tar.xz |
main/libheif: move from testing
ref #9555
Diffstat (limited to 'main/libheif')
-rw-r--r-- | main/libheif/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/main/libheif/APKBUILD b/main/libheif/APKBUILD new file mode 100644 index 0000000000..ace13e9f55 --- /dev/null +++ b/main/libheif/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=libheif +pkgver=1.3.2 +pkgrel=2 +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" +source="https://github.com/strukturag/libheif/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz" +builddir="$srcdir/$pkgname-$pkgver" + +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 + make +} + +package() { + make DESTDIR="$pkgdir" install +} + +tools() { + pkgdesc="$pkgdesc (tools)" + + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ +} + +sha512sums="bcc8b4b2522ef6fe68f5a9ffd5312c2c8f6bc3718394eef1860e199c30fb735bb214f665ed6480b5f5fe5d578b3ed77a4301af93775ae2349ba5038b3f3ef63a libheif-1.3.2.tar.gz" |