package/netsurf: add optional dependency on webp
authorFrancois Perrad <fperrad@gmail.com>
Sun, 21 Jul 2019 14:11:08 +0000 (16:11 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 1 Aug 2019 14:54:04 +0000 (16:54 +0200)
new feature of version 3.9

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/netsurf/netsurf.mk

index f82f3b5da894d14f8a144d483633df386ffb3258..0077adde28e5a07751013ea227ce557cd1c9ca65 100644 (file)
@@ -64,11 +64,23 @@ define NETSURF_CURL_CONFIGURE_CMDS
 endef
 endif
 
+ifeq ($(BR2_PACKAGE_WEBP),y)
+NETSURF_DEPENDENCIES += webp
+define NETSURF_WEBP_CONFIGURE_CMDS
+       echo "override NETSURF_USE_WEBP := YES"         >> $(@D)/netsurf/Makefile.config
+endef
+else
+define NETSURF_WEBP_CONFIGURE_CMDS
+       echo "override NETSURF_USE_WEBP := NO"          >> $(@D)/netsurf/Makefile.config
+endef
+endif
+
 define NETSURF_CONFIGURE_CMDS
        $(NETSURF_ICONV_CONFIGURE_CMDS)
        $(NETSURF_SVG_CONFIGURE_CMDS)
        $(NETSURF_FONTLIB_CONFIGURE_CMDS)
        $(NETSURF_CURL_CONFIGURE_CMDS)
+       $(NETSURF_WEBP_CONFIGURE_CMDS)
 endef
 
 NETSURF_MAKE_ENV = \