@@ -63,11 +63,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 = \
new feature of version 3.9 Signed-off-by: Francois Perrad <francois.perrad@gadz.org> --- package/netsurf/netsurf.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+)