From 399db1eeb5033f1ececa45a50dd901e04de9eea6 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Sat, 8 Jul 2023 22:04:44 +0200 Subject: [PATCH] package/imagemagick: add optional support for libheif Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- package/imagemagick/imagemagick.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package/imagemagick/imagemagick.mk b/package/imagemagick/imagemagick.mk index 8a2ec460d5..91dd208b0d 100644 --- a/package/imagemagick/imagemagick.mk +++ b/package/imagemagick/imagemagick.mk @@ -32,7 +32,6 @@ IMAGEMAGICK_CONF_OPTS = \ --without-fpx \ --without-gslib \ --without-gvc \ - --without-heic \ --without-jbig \ --without-jxl \ --without-lqr \ @@ -84,6 +83,13 @@ else IMAGEMAGICK_CONF_OPTS += --without-lcms endif +ifeq ($(BR2_PACKAGE_LIBHEIF),y) +IMAGEMAGICK_CONF_OPTS += --with-heic +IMAGEMAGICK_DEPENDENCIES += libheif +else +IMAGEMAGICK_CONF_OPTS += --without-heic +endif + ifeq ($(BR2_PACKAGE_LIBPNG),y) IMAGEMAGICK_CONF_OPTS += --with-png IMAGEMAGICK_DEPENDENCIES += libpng