summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2016-06-15 15:17:46 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-06-18 15:11:55 +0200
commit179c382c065d26f210a022c1671ba1a3081cf0e5 (patch)
tree8a4c6c6621adcad643a07bcad74102c010f4a3a8
parentd046ee8d0ec8405924bcbd9ed237154315da42b1 (diff)
libfastjson: new package
Libfastjson is a fork of json-c, and a dependency of newer versions of rsyslog. Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/Config.in1
-rw-r--r--package/libfastjson/Config.in16
-rw-r--r--package/libfastjson/libfastjson.hash2
-rw-r--r--package/libfastjson/libfastjson.mk15
4 files changed, 34 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 3d93951fe..02528996c 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1060,6 +1060,7 @@ menu "JSON/XML"
source "package/json-c/Config.in"
source "package/json-glib/Config.in"
source "package/jsoncpp/Config.in"
+ source "package/libfastjson/Config.in"
source "package/libjson/Config.in"
source "package/libroxml/Config.in"
source "package/libucl/Config.in"
diff --git a/package/libfastjson/Config.in b/package/libfastjson/Config.in
new file mode 100644
index 000000000..5a9411332
--- /dev/null
+++ b/package/libfastjson/Config.in
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_LIBFASTJSON
+ bool "libfastjson"
+ # uses __sync_val_compare_and_swap_4
+ depends on BR2_TOOLCHAIN_HAS_SYNC_4
+ help
+ Libfastjson - A fast json library for C
+
+ Libfastjson is a fork from json-c. The aim of this project
+ is not to provide a slightly modified clone of json-c.
+ Its aim is to provide:
+
+ - a small library with essential json handling functions
+ - sufficiently good json support (not 100% standards compliant)
+ - be very fast in processing
+
+ https://github.com/rsyslog/libfastjson/
diff --git a/package/libfastjson/libfastjson.hash b/package/libfastjson/libfastjson.hash
new file mode 100644
index 000000000..8531dac3a
--- /dev/null
+++ b/package/libfastjson/libfastjson.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 fcdca0c4702362de3db3f02c8da05f985b54a9eccd618af41730409b75d10a8f libfastjson-v0.99.2.tar.gz
diff --git a/package/libfastjson/libfastjson.mk b/package/libfastjson/libfastjson.mk
new file mode 100644
index 000000000..ec5390c5f
--- /dev/null
+++ b/package/libfastjson/libfastjson.mk
@@ -0,0 +1,15 @@
+################################################################################
+#
+# libfastjson
+#
+################################################################################
+
+LIBFASTJSON_VERSION = v0.99.2
+LIBFASTJSON_SITE = $(call github,rsyslog,libfastjson,$(LIBFASTJSON_VERSION))
+LIBFASTJSON_INSTALL_STAGING = YES
+# From git
+LIBFASTJSON_AUTORECONF = YES
+LIBFASTJSON_LICENSE = MIT
+LIBFASTJSON_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))