Sunday, October 31, 2021

UPDATE: libvips

Here is a diff to enable the HEIF support in libvips to be able to
support the HEIC and AVIF image formats.

Also I noticed all of the --with- options can be removed as they're
enabled anyway.


Index: Makefile
===================================================================
RCS file: /home/cvs/ports/graphics/libvips/Makefile,v
retrieving revision 1.1.1.1
diff -u -p -u -p -r1.1.1.1 Makefile
--- Makefile 15 May 2020 07:58:41 -0000 1.1.1.1
+++ Makefile 1 Nov 2021 01:58:47 -0000
@@ -5,6 +5,7 @@ COMMENT = fast image processing library
VERSION = 8.9.2
DISTNAME = vips-${VERSION}
PKGNAME = lib${DISTNAME}
+REVISION = 0

CATEGORIES = graphics

@@ -18,9 +19,10 @@ MAINTAINER = Stephane Guedon <stephane@2
# LGPLv2+
PERMIT_PACKAGE = Yes

-WANTLIB += ${COMPILER_LIBCXX} c expat ffi gif glib-2.0 gmodule-2.0
-WANTLIB += gobject-2.0 gthread-2.0 iconv intl jpeg lzma m pcre
-WANTLIB += png tiff webp webpdemux webpmux z zstd
+WANTLIB += ${COMPILER_LIBCXX} aom c dav1d de265 expat ffi gif
+WANTLIB += glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0 heif iconv
+WANTLIB += intl jpeg lzma m pcre png tiff webp webpdemux webpmux
+WANTLIB += x265 z zstd

MASTER_SITES = https://github.com/libvips/libvips/releases/download/v${VERSION}/

@@ -31,7 +33,8 @@ LIB_DEPENDS += archivers/xz \
graphics/jpeg \
graphics/libwebp \
graphics/png \
- graphics/tiff
+ graphics/tiff \
+ multimedia/libheif

USE_GMAKE = Yes
COMPILER = base-clang ports-gcc
@@ -40,14 +43,6 @@ CONFIGURE_STYLE = gnu
CONFIGURE_ARGS += --disable-gtk-doc \
--disable-gtk-doc-html \
--disable-introspection \
- --with-analyze \
- --with-giflib \
- --with-png \
- --with-tiff \
- --with-ppm \
- --with-radiance \
- --with-jpeg \
- --with-libwebp \
--without-magick \
--without-matio \
--without-nifti \
@@ -61,7 +56,6 @@ CONFIGURE_ARGS += --disable-gtk-doc \
--without-lcms \
--without-libexif \
--without-gsf \
- --without-heif \
--without-imagequant \
--without-cfitsio \
--without-fftw

No comments:

Post a Comment