package/sslh: add optional pcre dependency

pcre dependency has been added in version 1.18 and
ab3324be47

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine 2019-04-05 23:16:35 +02:00 committed by Thomas Petazzoni
parent cfa018d9f3
commit 69f87de71d

View File

@ -11,12 +11,22 @@ SSLH_LICENSE_FILES = COPYING
SSLH_DEPENDENCIES = libconfig
SSLH_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS)
ifeq ($(BR2_PACKAGE_PCRE),y)
SSLH_DEPENDENCIES += pcre
SSLH_MAKE_OPTS += USELIBPCRE=1
else
SSLH_MAKE_OPTS += USELIBPCRE=
endif
define SSLH_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D)
$(TARGET_MAKE_ENV) $(MAKE1) $(SSLH_MAKE_OPTS) -C $(@D)
endef
define SSLH_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
$(TARGET_MAKE_ENV) $(MAKE) $(SSLH_MAKE_OPTS) -C $(@D) \
DESTDIR=$(TARGET_DIR) install
endef
define SSLH_INSTALL_INIT_SYSV