package: add json-c library
authorPeter Korsgaard <jacmet@sunsite.dk>
Wed, 28 Sep 2011 20:18:29 +0000 (22:18 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 28 Sep 2011 20:18:29 +0000 (22:18 +0200)
json-c is a JSON library written in C.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in
package/json-c/Config.in [new file with mode: 0644]
package/json-c/json-c.mk [new file with mode: 0644]

index 3d040566016d7b42bfa61bc13f56a518d69654b6..a849266bac52b223eb579e2ec103cf53bb3b6412 100644 (file)
@@ -370,6 +370,7 @@ endmenu
 menu "JSON/XML"
 source "package/expat/Config.in"
 source "package/ezxml/Config.in"
+source "package/json-c/Config.in"
 source "package/libroxml/Config.in"
 source "package/libxml-parser-perl/Config.in"
 source "package/libxml2/Config.in"
diff --git a/package/json-c/Config.in b/package/json-c/Config.in
new file mode 100644 (file)
index 0000000..dbdd75b
--- /dev/null
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_JSON_C
+       bool "json-c"
+       help
+         JSON-C - A JSON implementation in C
+
+         JSON-C implements a reference counting object model that
+         allows you to easily construct JSON objects in C, output
+         them as JSON formatted strings and parse JSON formatted
+         strings back into the C representation of JSON objects.
+
+         http://oss.metaparadigm.com/json-c/
diff --git a/package/json-c/json-c.mk b/package/json-c/json-c.mk
new file mode 100644 (file)
index 0000000..295c55e
--- /dev/null
@@ -0,0 +1,11 @@
+################################################################################
+#
+# json-c
+#
+################################################################################
+
+JSON_C_VERSION = 0.9
+JSON_C_SITE = http://oss.metaparadigm.com/json-c/
+JSON_C_INSTALL_STAGING = YES
+
+$(eval $(call AUTOTARGETS,package,json-c))