contrib/libheif/Pkgfile

22 lines
624 B
Plaintext
Raw Normal View History

# Description: library for fast image processing
# URL: https://github.com/strukturag/libheif/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: libde265
2023-05-31 13:12:10 +02:00
# Optional: x265 dav1d aom rav1e svt-av1
name=libheif
2023-12-23 14:02:09 +01:00
version=1.17.6
release=1
source=(https://github.com/strukturag/$name/releases/download/v$version/$name-$version.tar.gz)
build() {
2023-11-22 08:47:49 +01:00
cmake -B build -S $name-$version -G Ninja \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS="$CFLAGS"
2023-11-22 08:47:49 +01:00
ninja -C build -j ${JOBS:-1}
DESTDIR=$PKG ninja -C build install
}