2013-09-26 03:09:55 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# jq
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-03-20 20:10:01 +01:00
|
|
|
JQ_VERSION = 1.6
|
2015-10-16 01:46:50 +02:00
|
|
|
JQ_SITE = https://github.com/stedolan/jq/releases/download/jq-$(JQ_VERSION)
|
2013-09-26 03:09:55 +02:00
|
|
|
JQ_LICENSE = MIT (code), CC-BY-3.0 (documentation)
|
|
|
|
JQ_LICENSE_FILES = COPYING
|
2017-08-11 18:00:48 +02:00
|
|
|
JQ_INSTALL_STAGING = YES
|
2013-09-26 03:09:55 +02:00
|
|
|
|
|
|
|
# uses c99 specific features
|
2018-02-19 16:57:34 +01:00
|
|
|
# _GNU_SOURCE added to fix gcc6+ host compilation
|
|
|
|
# (https://github.com/stedolan/jq/issues/1598)
|
|
|
|
JQ_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=c99 -D_GNU_SOURCE"
|
|
|
|
HOST_JQ_CONF_ENV += CFLAGS="$(HOST_CFLAGS) -std=c99 -D_GNU_SOURCE"
|
2013-09-26 03:09:55 +02:00
|
|
|
|
2015-10-19 12:42:08 +02:00
|
|
|
# jq explicitly enables maintainer mode, which we don't need/want
|
2019-03-31 17:12:06 +02:00
|
|
|
JQ_CONF_OPTS += --disable-maintainer-mode
|
2019-03-20 20:10:01 +01:00
|
|
|
HOST_JQ_CONF_OPTS += --disable-maintainer-mode --without-oniguruma
|
2015-10-19 12:42:08 +02:00
|
|
|
|
2019-03-31 17:12:06 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ONIGURUMA),y)
|
|
|
|
JQ_DEPENDENCIES += oniguruma
|
|
|
|
JQ_CONF_OPTS += --with-oniguruma
|
|
|
|
else
|
|
|
|
JQ_CONF_OPTS += --without-oniguruma
|
|
|
|
endif
|
|
|
|
|
2013-09-26 03:09:55 +02:00
|
|
|
$(eval $(autotools-package))
|
2015-10-19 12:42:09 +02:00
|
|
|
$(eval $(host-autotools-package))
|