package/clamav: add optional dependency to pcre2

Upstream recommends pcre2 over pcre:
1f71c2b21c

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Bernd Kuhls 2019-01-26 11:10:37 +01:00 committed by Peter Korsgaard
parent 0e424610bc
commit e1cfe35066

View File

@ -76,7 +76,10 @@ else
CLAMAV_CONF_OPTS += --without-iconv CLAMAV_CONF_OPTS += --without-iconv
endif endif
ifeq ($(BR2_PACKAGE_PCRE),y) ifeq ($(BR2_PACKAGE_PCRE2),y)
CLAMAV_CONF_OPTS += --with-pcre=$(STAGING_DIR)/usr
CLAMAV_DEPENDENCIES += pcre2
else ifeq ($(BR2_PACKAGE_PCRE),y)
CLAMAV_CONF_OPTS += --with-pcre=$(STAGING_DIR)/usr CLAMAV_CONF_OPTS += --with-pcre=$(STAGING_DIR)/usr
CLAMAV_DEPENDENCIES += pcre CLAMAV_DEPENDENCIES += pcre
else else