From: Fabrice Fontaine Date: Sun, 31 Mar 2019 15:12:06 +0000 (+0200) Subject: package/jq: add oniguruma optional dependency X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=802bdcb25c57dd7f0a87ad7524b5f5f51d8a44ff;p=buildroot.git package/jq: add oniguruma optional dependency Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- 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))