package/libvips: add webp optional dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 4 Apr 2021 14:30:48 +0000 (16:30 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 4 Apr 2021 14:44:38 +0000 (16:44 +0200)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libvips/libvips.mk

index 990d3f386f62d68dd5881e0d35a25205b4b5d3e4..7023b11119abdda29aa6f0d9a28ea29cce14a03a 100644 (file)
@@ -26,7 +26,6 @@ LIBVIPS_CONF_OPTS = \
        --without-OpenEXR \
        --without-openslide \
        --without-cfitsio \
-       --without-libwebp \
        --without-pangoft2 \
        --without-x
 LIBVIPS_INSTALL_STAGING = YES
@@ -132,6 +131,13 @@ else
 LIBVIPS_CONF_OPTS += --without-libexif
 endif
 
+ifeq ($(BR2_PACKAGE_WEBP_DEMUX)$(BR2_PACKAGE_WEBP_MUX),yy)
+LIBVIPS_CONF_OPTS += --with-libwebp
+LIBVIPS_DEPENDENCIES += webp
+else
+LIBVIPS_CONF_OPTS += --without-libwebp
+endif
+
 ifeq ($(BR2_PACKAGE_ZLIB),y)
 LIBVIPS_CONF_OPTS += --with-zlib
 LIBVIPS_DEPENDENCIES += zlib