From: Baruch Siach Date: Fri, 28 Dec 2018 06:04:20 +0000 (+0200) Subject: package/wget: add optional dependency on pcre/pcre2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8fe075d9d9ba9b76e10ce092fdd60ca8cbb4656a;p=buildroot.git package/wget: add optional dependency on pcre/pcre2 Default to pcre2 to mimic upstream configure.ac. Signed-off-by: Baruch Siach Signed-off-by: Thomas Petazzoni --- diff --git a/package/wget/wget.mk b/package/wget/wget.mk index 8d65364016..5cdecbcc81 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))