mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
8
package/jq/Config.in
Normal file
8
package/jq/Config.in
Normal file
@@ -0,0 +1,8 @@
|
||||
config BR2_PACKAGE_JQ
|
||||
bool "jq"
|
||||
help
|
||||
jq is like sed for JSON data - you can use it to slice and
|
||||
filter and map and transform structured data with the same
|
||||
ease that sed, awk, grep and friends let you play with text.
|
||||
|
||||
http://stedolan.github.io/jq/
|
||||
11
package/jq/Config.in.host
Normal file
11
package/jq/Config.in.host
Normal file
@@ -0,0 +1,11 @@
|
||||
config BR2_PACKAGE_HOST_JQ
|
||||
bool "host jq"
|
||||
help
|
||||
jq is like sed for JSON data - you can use it to slice and
|
||||
filter and map and transform structured data with the same
|
||||
ease that sed, awk, grep and friends let you play with text.
|
||||
|
||||
As a host tool, jq can be useful to create/edit/merge/check
|
||||
JSON files from a post-build script.
|
||||
|
||||
http://stedolan.github.io/jq/
|
||||
3
package/jq/jq.hash
Normal file
3
package/jq/jq.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 5de8c8e29aaa3fb9cc6b47bb27299f271354ebb72514e3accadc7d38b5bbaa72 jq-1.6.tar.gz
|
||||
sha256 111136aebcbfa68b6b0084e582b30e981da76adcff84eab6f9be32a1f38c5bf1 COPYING
|
||||
31
package/jq/jq.mk
Normal file
31
package/jq/jq.mk
Normal file
@@ -0,0 +1,31 @@
|
||||
################################################################################
|
||||
#
|
||||
# jq
|
||||
#
|
||||
################################################################################
|
||||
|
||||
JQ_VERSION = 1.6
|
||||
JQ_SITE = https://github.com/stedolan/jq/releases/download/jq-$(JQ_VERSION)
|
||||
JQ_LICENSE = MIT (code), CC-BY-3.0 (documentation)
|
||||
JQ_LICENSE_FILES = COPYING
|
||||
JQ_INSTALL_STAGING = YES
|
||||
|
||||
# uses c99 specific features
|
||||
# _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"
|
||||
|
||||
# jq explicitly enables maintainer mode, which we don't need/want
|
||||
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))
|
||||
Reference in New Issue
Block a user