summaryrefslogtreecommitdiff
path: root/repo/libheif
diff options
context:
space:
mode:
Diffstat (limited to 'repo/libheif')
-rw-r--r--repo/libheif/libheif.xibuild29
1 files changed, 29 insertions, 0 deletions
diff --git a/repo/libheif/libheif.xibuild b/repo/libheif/libheif.xibuild
new file mode 100644
index 0000000..a8dbdbc
--- /dev/null
+++ b/repo/libheif/libheif.xibuild
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+NAME="libheif"
+DESC="ISO/IEC 23008-12:2017 HEIF file format decoder and encoder"
+
+MAKEDEPS="aom x265 libde265 libjpeg-turbo libpng"
+
+PKG_VER=1.12.0
+SOURCE="https://github.com/strukturag/libheif/releases/download/v$PKG_VER/libheif-$PKG_VER.tar.gz"
+
+build() {
+ # This is en/decoder, so performance matters more than size.
+ export CPPFLAGS="$CFLAGS -O2"
+ export CXXFLAGS="$CFLAGS -O2"
+
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --disable-static \
+ --disable-go
+ make
+}
+
+package() {
+ make DESTDIR="$PKG_DEST" install
+}
+