Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] benejson: new package
@ 2015-01-16 13:03 David Bender
  2015-01-17 19:37 ` Baruch Siach
  0 siblings, 1 reply; 7+ messages in thread
From: David Bender @ 2015-01-16 13:03 UTC (permalink / raw)
  To: buildroot

From: David Bender <codehero@yahoo.com>

Added C/C++ JSON parsing package benejson.

Signed-off-by: Dave Bender <bender@benegon.com>
---
 package/Config.in            |    1 +
 package/benejson/Config.in   |    6 ++++++
 package/benejson/benejson.mk |   37 +++++++++++++++++++++++++++++++++++++
 3 files changed, 44 insertions(+), 0 deletions(-)
 create mode 100644 package/benejson/Config.in
 create mode 100644 package/benejson/benejson.mk

diff --git a/package/Config.in b/package/Config.in
index 266de13..5a09608 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -761,6 +761,7 @@ menu "Javascript"
 endmenu
 
 menu "JSON/XML"
+	source "package/benejson/Config.in"
 	source "package/cjson/Config.in"
 	source "package/expat/Config.in"
 	source "package/ezxml/Config.in"
diff --git a/package/benejson/Config.in b/package/benejson/Config.in
new file mode 100644
index 0000000..6d8d2a3
--- /dev/null
+++ b/package/benejson/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_BENEJSON
+	bool "benejson"
+	help
+	  "streaming JSON parsing library with C and C++ APIs"
+
+		https://codehero.github.io/benejson/
diff --git a/package/benejson/benejson.mk b/package/benejson/benejson.mk
new file mode 100644
index 0000000..851b95e
--- /dev/null
+++ b/package/benejson/benejson.mk
@@ -0,0 +1,37 @@
+################################################################################
+#
+# benejson
+#
+################################################################################
+
+BENEJSON_VERSION = 0.9.7
+BENEJSON_SITE =  $(call github,codehero,benejson,$(BENEJSON_VERSION))
+BENEJSON_LICENSE = BSD-3c
+BENEJSON_LICENSE_FILES = COPYING
+BENEJSON_INSTALL_STAGING = YES
+
+BENEJSON_DEPENDENCIES = host-scons
+
+BENEJSON_SCONS_ENV = $(TARGET_CONFIGURE_OPTS) CROSS=$(TARGET_CROSS)
+
+define BENEJSON_BUILD_CMDS
+	(cd $(@D); \
+		$(BENEJSON_SCONS_ENV) \
+		$(SCONS) \
+		$(BENEJSON_SCONS_OPTS))
+endef
+
+define BENEJSON_INSTALL_STAGING_CMDS
+	(cd $(@D); \
+		cp -ra include/benejson $(STAGING_DIR)/usr/include; \
+		cp lib/libbenejson.{so,a} $(STAGING_DIR)/usr/lib \
+		)
+endef
+
+define BENEJSON_INSTALL_TARGET_CMDS
+	(cd $(@D); \
+		cp lib/libbenejson.{so,a} $(TARGET_DIR)/usr/lib \
+		)
+endef
+
+$(eval $(generic-package))
-- 
1.7.8.6

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-01-25 18:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-16 13:03 [Buildroot] [PATCH 1/1] benejson: new package David Bender
2015-01-17 19:37 ` Baruch Siach
2015-01-22 19:10   ` [Buildroot] [PATCH 1/3] " David Bender
2015-01-22 19:10     ` [Buildroot] [PATCH 2/3] fix license file David Bender
2015-01-22 19:10     ` [Buildroot] [PATCH 3/3] Set correct license David Bender
2015-01-25 14:52     ` [Buildroot] [PATCH 1/3] benejson: new package Yann E. MORIN
2015-01-25 18:17     ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox