package/wget: add optional dependency on pcre/pcre2

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>
This commit is contained in:
Baruch Siach 2018-12-28 08:04:20 +02:00 committed by Thomas Petazzoni
parent 5201daf40f
commit 8fe075d9d9

View 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))