package/netsurf: add optional dependency on webp

new feature of version 3.9

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Francois Perrad 2019-07-21 16:11:08 +02:00 committed by Peter Korsgaard
parent d069301d63
commit 152e160bf6

View 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 = \