package/netsurf: add optional dependency on webp
diff mbox series

Message ID 20190721141108.13807-1-francois.perrad@gadz.org
State Accepted
Commit 152e160bf6fcbb8f73c60944107e3a82f91edf50
Headers show
Series
  • package/netsurf: add optional dependency on webp
Related show

Commit Message

Francois Perrad July 21, 2019, 2:11 p.m. UTC
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(+)

Comments

Peter Korsgaard Aug. 1, 2019, 2:54 p.m. UTC | #1
>>>>> "Francois" == Francois Perrad <fperrad@gmail.com> writes:

 > new feature of version 3.9
 > Signed-off-by: Francois Perrad <francois.perrad@gadz.org>

Committed, thanks.

Patch
diff mbox series

diff --git a/package/netsurf/netsurf.mk b/package/netsurf/netsurf.mk
index 30e8dc8b4..d21d522e7 100644
--- a/package/netsurf/netsurf.mk
+++ b/package/netsurf/netsurf.mk
@@ -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 = \