1
0
forked from ports/contrib

libavif: reworked dependencies and made most things optional

This commit is contained in:
Tim Biermann 2024-12-24 12:47:31 +01:00
parent 9f3f7a5a73
commit a8f61f59c8
Signed by untrusted user: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 18 additions and 18 deletions

View File

@ -12,15 +12,8 @@ drwxr-xr-x root/root usr/lib/cmake/libavif/
-rw-r--r-- root/root usr/lib/cmake/libavif/libavif-config-release.cmake
-rw-r--r-- root/root usr/lib/cmake/libavif/libavif-config-version.cmake
-rw-r--r-- root/root usr/lib/cmake/libavif/libavif-config.cmake
drwxr-xr-x root/root usr/lib/gdk-pixbuf-2.0/
drwxr-xr-x root/root usr/lib/gdk-pixbuf-2.0/2.10.0/
drwxr-xr-x root/root usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/
-rwxr-xr-x root/root usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-avif.so
lrwxrwxrwx root/root usr/lib/libavif.so -> libavif.so.16
lrwxrwxrwx root/root usr/lib/libavif.so.16 -> libavif.so.16.1.1
-rwxr-xr-x root/root usr/lib/libavif.so.16.1.1
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/libavif.pc
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/thumbnailers/
-rw-r--r-- root/root usr/share/thumbnailers/avif.thumbnailer

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF32PHP6L54FzQTWzXnE/JtBWUKQUjRyuJAPepmN0V5Rr9R4ymO/7vtwrlzYTKTuNCEja9dovym4Ewy+xrRXJYZA8=
SHA256 (Pkgfile) = 1b5ca9db168258dc0161198b632e2115153b1b866d684d5cf296ae5abb13e88c
SHA256 (.footprint) = 86fcc37318beb2e8051df04b0e9fbffccdfa908decd3501a103f9c8767aa7d73
RWSagIOpLGJF35xk1/Af/pgN86pot/Sx7oo+na8iuM8V+8FpzjqnswUetiOxmIBzWfFaatB3trQnIMckuJrMecFkUCGSm2HqFAg=
SHA256 (Pkgfile) = 0ba838317552164ebf65e7cd1754a12b80e2b2a851728db992c56a10b42c6089
SHA256 (.footprint) = 1a38219878d6c588f88f8c83bb1fdca291a9f233571c4c812309af5258150330
SHA256 (libavif-1.1.1.tar.gz) = 914662e16245e062ed73f90112fbb4548241300843a7772d8d441bb6859de45b

View File

@ -1,26 +1,33 @@
# Description: Library for encoding and decoding .avif files
# URL: https://github.com/AOMediaCodec/libavif
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: aom dav1d gdk-pixbuf libyuv rav1e svt-av1
# Depends on: libpng libyuv
# Optional: aom dav1d gdk-pixbuf libjpeg-turbo libwebp pandoc-bin rav1e svt-av1
name=libavif
version=1.1.1
release=1
release=2
source=(https://github.com/AOMediaCodec/libavif/archive/v$version/$name-$version.tar.gz)
build() {
cmake -S $name-$version -B build -G Ninja \
prt-get isinst aom && PKGMK_LIBAVIF+=' -D AVIF_CODEC_AOM=SYSTEM'
prt-get isinst dav1d && PKGMK_LIBAVIF+=' -D AVIF_CODEC_DAV1D=SYSTEM'
prt-get isinst gdk-pixbuf && PKGMK_LIBAVIF+=' -D AVIF_BUILD_GDK_PIXBUF=ON'
prt-get isinst libjpeg-turbo && PKGMK_LIBAVIF+=' -D AVIF_JPEG=SYSTEM'
prt-get isinst libwebp && PKGMK_LIBAVIF+=' -D AVIF_LIBSHARPYUV=SYSTEM'
prt-get isinst pandoc-bin && PKGMK_LIBAVIF+=' -D AVIF_BUILD_MAN_PAGES=ON'
prt-get isinst rav1e && PKGMK_LIBAVIF+=' -D AVIF_CODEC_RAV1E=SYSTEM'
prt-get isinst svt-av1 && PKGMK_LIBAVIF+=' -D AVIF_CODEC_SVT=SYSTEM'
cmake -S $name-$version -B build -G Ninja $PKGMK_LIBAVIF \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-D AVIF_BUILD_APPS=ON \
-D AVIF_CODEC_AOM=ON \
-D AVIF_CODEC_DAV1D=ON \
-D AVIF_CODEC_RAV1E=ON \
-D AVIF_CODEC_SVT=ON \
-D AVIF_BUILD_GDK_PIXBUF=ON \
-D AVIF_LIBYUV=SYSTEM \
-Wno-dev
cmake --build build