From 152e160bf6fcbb8f73c60944107e3a82f91edf50 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Sun, 21 Jul 2019 16:11:08 +0200 Subject: [PATCH] package/netsurf: add optional dependency on webp new feature of version 3.9 Signed-off-by: Francois Perrad Signed-off-by: Peter Korsgaard --- package/netsurf/netsurf.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/package/netsurf/netsurf.mk b/package/netsurf/netsurf.mk index f82f3b5da8..0077adde28 100644 --- a/package/netsurf/netsurf.mk +++ b/package/netsurf/netsurf.mk @@ -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 = \ -- 2.30.2