summaryrefslogtreecommitdiffstats
path: root/package/jq
diff options
context:
space:
mode:
Diffstat (limited to 'package/jq')
-rw-r--r--package/jq/Config.in8
-rw-r--r--package/jq/jq.mk17
2 files changed, 25 insertions, 0 deletions
diff --git a/package/jq/Config.in b/package/jq/Config.in
new file mode 100644
index 0000000000..9329b2fb35
--- /dev/null
+++ b/package/jq/Config.in
@@ -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/
diff --git a/package/jq/jq.mk b/package/jq/jq.mk
new file mode 100644
index 0000000000..8d4f24f0d6
--- /dev/null
+++ b/package/jq/jq.mk
@@ -0,0 +1,17 @@
+################################################################################
+#
+# jq
+#
+################################################################################
+
+JQ_VERSION = jq-1.3
+JQ_SITE = http://github.com/stedolan/jq/tarball/$(JQ_VERSION)
+JQ_AUTORECONF = YES
+JQ_DEPENDENCIES = host-flex host-bison
+JQ_LICENSE = MIT (code), CC-BY-3.0 (documentation)
+JQ_LICENSE_FILES = COPYING
+
+# uses c99 specific features
+JQ_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=c99"
+
+$(eval $(autotools-package))
OpenPOWER on IntegriCloud