All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Bender <codehero@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] benejson: new package
Date: Fri, 16 Jan 2015 08:03:01 -0500	[thread overview]
Message-ID: <1421413381-25236-1-git-send-email-codehero@gmail.com> (raw)

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

             reply	other threads:[~2015-01-16 13:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-16 13:03 David Bender [this message]
2015-01-17 19:37 ` [Buildroot] [PATCH 1/1] benejson: new package 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1421413381-25236-1-git-send-email-codehero@gmail.com \
    --to=codehero@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.