1 ################################################################################
5 ################################################################################
8 JQ_SITE = https://github.com/stedolan/jq/releases/download/jq-$(JQ_VERSION)
9 JQ_LICENSE = MIT (code), CC-BY-3.0 (documentation)
10 JQ_LICENSE_FILES = COPYING
12 # uses c99 specific features
13 # _GNU_SOURCE added to fix gcc6+ host compilation
14 # (https://github.com/stedolan/jq/issues/1598)
15 JQ_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=c99 -D_GNU_SOURCE"
16 HOST_JQ_CONF_ENV += CFLAGS="$(HOST_CFLAGS) -std=c99 -D_GNU_SOURCE"
18 # jq explicitly enables maintainer mode, which we don't need/want
19 JQ_CONF_OPTS += --disable-maintainer-mode
20 HOST_JQ_CONF_OPTS += --disable-maintainer-mode
22 $(eval $(autotools-package))
23 $(eval $(host-autotools-package))