aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2019-03-31 17:12:06 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-04-04 23:24:03 +0200
commit802bdcb25c57dd7f0a87ad7524b5f5f51d8a44ff (patch)
tree64d3a7cc3a01812f18cf2f63e7bd863135af7f1c
parent4854a1cf4c7101b18207cab497cd62deb19e6ff2 (diff)
downloadbuildroot-802bdcb25c57dd7f0a87ad7524b5f5f51d8a44ff.tar.gz
buildroot-802bdcb25c57dd7f0a87ad7524b5f5f51d8a44ff.tar.bz2
package/jq: add oniguruma optional dependency
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/jq/jq.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/package/jq/jq.mk b/package/jq/jq.mk
index aebe8c86e4..bf96f0cecb 100644
--- a/package/jq/jq.mk
+++ b/package/jq/jq.mk
@@ -17,8 +17,15 @@ JQ_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=c99 -D_GNU_SOURCE"
HOST_JQ_CONF_ENV += CFLAGS="$(HOST_CFLAGS) -std=c99 -D_GNU_SOURCE"
# jq explicitly enables maintainer mode, which we don't need/want
-JQ_CONF_OPTS += --disable-maintainer-mode --without-oniguruma
+JQ_CONF_OPTS += --disable-maintainer-mode
HOST_JQ_CONF_OPTS += --disable-maintainer-mode --without-oniguruma
+ifeq ($(BR2_PACKAGE_ONIGURUMA),y)
+JQ_DEPENDENCIES += oniguruma
+JQ_CONF_OPTS += --with-oniguruma
+else
+JQ_CONF_OPTS += --without-oniguruma
+endif
+
$(eval $(autotools-package))
$(eval $(host-autotools-package))