package/graphicsmagick: add support for webp image format
authorGrzegorz Blach <grzegorz@blach.pl>
Thu, 10 Sep 2020 15:50:54 +0000 (17:50 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 11 Sep 2020 07:47:00 +0000 (09:47 +0200)
Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/graphicsmagick/graphicsmagick.mk

index 436df709e7fd8771bb2da36215ec13c00da59f07..da7af5b53e398cec5a7ea760e46f984856c25e24 100644 (file)
@@ -27,7 +27,6 @@ GRAPHICSMAGICK_CONF_OPTS = \
        --without-jbig \
        --without-perl \
        --without-trio \
-       --without-webp \
        --without-wmf \
        --without-x \
        --with-gs-font-dir=/usr/share/fonts/gs
@@ -85,6 +84,13 @@ else
 GRAPHICSMAGICK_CONF_OPTS += --without-tiff
 endif
 
+ifeq ($(BR2_PACKAGE_WEBP_MUX),y)
+GRAPHICSMAGICK_CONF_OPTS += --with-webp
+GRAPHICSMAGICK_DEPENDENCIES += webp
+else
+GRAPHICSMAGICK_CONF_OPTS += --without-webp
+endif
+
 ifeq ($(BR2_PACKAGE_XZ),y)
 GRAPHICSMAGICK_CONF_OPTS += --with-lzma
 GRAPHICSMAGICK_DEPENDENCIES += xz