package/tvheadend: add optional support for pcre2

pcre2 takes precedence of pcre:
https://github.com/tvheadend/tvheadend/blob/master/configure#L473

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Bernd Kuhls 2021-12-15 23:39:05 +01:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent 7b55cb018d
commit 60d416fb6c

View File

@ -121,11 +121,14 @@ TVHEADEND_DEPENDENCIES += liburiparser
TVHEADEND_CFLAGS += $(if $(BR2_USE_WCHAR),,-DURI_NO_UNICODE)
endif
ifeq ($(BR2_PACKAGE_PCRE),y)
ifeq ($(BR2_PACKAGE_PCRE2),y)
TVHEADEND_DEPENDENCIES += pcre2
TVHEADEND_CONF_OPTS += --disable-pcre --enable-pcre2
else ifeq ($(BR2_PACKAGE_PCRE),y)
TVHEADEND_DEPENDENCIES += pcre
TVHEADEND_CONF_OPTS += --enable-pcre
TVHEADEND_CONF_OPTS += --enable-pcre --disable-pcre2
else
TVHEADEND_CONF_OPTS += --disable-pcre
TVHEADEND_CONF_OPTS += --disable-pcre --disable-pcre2
endif
ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),)