package/wget: add optional dependency on pcre/pcre2
authorBaruch Siach <baruch@tkos.co.il>
Fri, 28 Dec 2018 06:04:20 +0000 (08:04 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 30 Dec 2018 16:10:13 +0000 (17:10 +0100)
Default to pcre2 to mimic upstream configure.ac.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/wget/wget.mk

index 8d65364016b22f10ea11e02019dde354ff8e9fdf..5cdecbcc81a8f0c45bf63a7136dad229c937a7f8 100644 (file)
@@ -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))