aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2019-04-05 23:16:35 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-04-11 15:01:47 +0200
commit69f87de71dc9c4fc838145fdfc65dd3052a422e4 (patch)
treec1e37b99b7c8fc49a589f1159f91bc618500962a
parentcfa018d9f300b07c9c01a5b1aeca49ee177dd0dc (diff)
downloadbuildroot-69f87de71dc9c4fc838145fdfc65dd3052a422e4.tar.gz
buildroot-69f87de71dc9c4fc838145fdfc65dd3052a422e4.tar.bz2
package/sslh: add optional pcre dependency
pcre dependency has been added in version 1.18 and https://github.com/yrutschle/sslh/commit/ab3324be477b2663196e0cc73d96aa38d59da65a Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/sslh/sslh.mk14
1 files changed, 12 insertions, 2 deletions
diff --git a/package/sslh/sslh.mk b/package/sslh/sslh.mk
index 3a9223b23a..5c868dfe2f 100644
--- a/package/sslh/sslh.mk
+++ b/package/sslh/sslh.mk
@@ -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