[Buildroot] [PATCH 2/2] package/wget: add optional dependency on pcre/pcre2

Baruch Siach baruch at tkos.co.il
Fri Dec 28 06:04:20 UTC 2018


Default to pcre2 to mimic upstream configure.ac.

Signed-off-by: Baruch Siach <baruch at tkos.co.il>
---
 package/wget/wget.mk | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/package/wget/wget.mk b/package/wget/wget.mk
index 8d65364016b2..5cdecbcc81a8 100644
--- a/package/wget/wget.mk
+++ b/package/wget/wget.mk
@@ -39,4 +39,14 @@ else
 WGET_CONF_OPTS += --without-zlib
 endif
 
+ifeq ($(BR2_PACKAGE_PCRE2),y)
+WGET_CONF_OPTS += --disable-pcre --enable-pcre2
+WGET_DEPENDENCIES += pcre2
+else ifeq ($(BR2_PACKAGE_PCRE),y)
+WGET_CONF_OPTS += --enable-pcre --disable-pcre2
+WGET_DEPENDENCIES += pcre
+else
+WGET_CONF_OPTS += --disable-pcre --disable-pcre2
+endif
+
 $(eval $(autotools-package))
-- 
2.19.2



More information about the buildroot mailing list