diff --git a/package/graphicsmagick/graphicsmagick.mk b/package/graphicsmagick/graphicsmagick.mk index 436df709e7..da7af5b53e 100644 --- a/package/graphicsmagick/graphicsmagick.mk +++ b/package/graphicsmagick/graphicsmagick.mk @@ -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