1################################################################################ 2# 3# jq 4# 5################################################################################ 6 7JQ_VERSION = a17dd3248a666d01be75f6b16be37e80e20b0954 8JQ_SITE = $(call github,stedolan,jq,$(JQ_VERSION)) 9JQ_LICENSE = MIT (code), ICU (decNumber), CC-BY-3.0 (documentation) 10JQ_LICENSE_FILES = COPYING 11JQ_CPE_ID_VENDOR = jq_project 12JQ_INSTALL_STAGING = YES 13 14# currently using git version directly 15JQ_AUTORECONF = YES 16 17# uses c99 specific features 18# _GNU_SOURCE added to fix gcc6+ host compilation 19# (https://github.com/stedolan/jq/issues/1598) 20JQ_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=c99 -D_GNU_SOURCE" 21HOST_JQ_CONF_ENV += CFLAGS="$(HOST_CFLAGS) -std=c99 -D_GNU_SOURCE" 22 23# jq explicitly enables maintainer mode, which we don't need/want 24JQ_CONF_OPTS += --disable-maintainer-mode 25HOST_JQ_CONF_OPTS += --disable-maintainer-mode --without-oniguruma 26 27ifeq ($(BR2_PACKAGE_ONIGURUMA),y) 28JQ_DEPENDENCIES += oniguruma 29JQ_CONF_OPTS += --with-oniguruma 30else 31JQ_CONF_OPTS += --without-oniguruma 32endif 33 34$(eval $(autotools-package)) 35$(eval $(host-autotools-package)) 36