Skip to contentSkip to conversation

package/jsoncpp: new package

PATCH New Bernd Kuhls 2 participants 4 messages Mar 8, 2015 – Mar 17, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/jsoncpp: new package

Needed for upcoming Kodi pctv/filmon PVR packages:

https://github.com/kodi-pvr/pvr.pctv/blob/master/CMakeLists.txt#L11
https://github.com/kodi-pvr/pvr.filmon/blob/master/CMakeLists.txt#L11

---
 package/Config.in          |    1 +
 package/jsoncpp/Config.in  |   13 +++++++++++++
 package/jsoncpp/jsoncpp.mk |   16 ++++++++++++++++
 3 files changed, 30 insertions(+)
 create mode 100644 package/jsoncpp/Config.in
 create mode 100644 package/jsoncpp/jsoncpp.mk
package/Config.in +1 -0
index 734b85d..5b4b639 100644
@@ -805,6 +805,7 @@ menu "JSON/XML"
 	source "package/jansson/Config.in"
 	source "package/json-c/Config.in"
 	source "package/json-glib/Config.in"
+	source "package/jsoncpp/Config.in"
 	source "package/libjson/Config.in"
 	source "package/libroxml/Config.in"
 	source "package/libxml2/Config.in"
package/jsoncpp/Config.in new file +13 -0
new file mode 100644
index 0000000..19a901e
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_JSONCPP
+	depends on BR2_INSTALL_LIBSTDCPP
+	bool "jsoncpp"
+	help
+	  JsonCpp is a C++ library that allows manipulating JSON values,
+	  including serialization and deserialization to and from strings.
+	  It can also preserve existing comment in unserialization/serialization
+	  steps, making it a convenient format to store user input files.
+
+	  https://github.com/open-source-parsers/jsoncpp
+
+comment "jsoncpp needs a toolchain w/ C++"
+	depends on !BR2_INSTALL_LIBSTDCPP
package/jsoncpp/jsoncpp.mk new file +16 -0
new file mode 100644
index 0000000..e0646f5
@@ -0,0 +1,16 @@
+################################################################################
+#
+# jsoncpp
+#
+################################################################################
+
+JSONCPP_VERSION = 1.5.4
+JSONCPP_SITE = $(call github,open-source-parsers,jsoncpp,$(JSONCPP_VERSION))
+JSONCPP_LICENSE = MIT
+JSONCPP_LICENSE_FILES = LICENSE
+JSONCPP_INSTALL_STAGING = YES
+
+JSONCPP_CONF_OPTS += \
+	-DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF
+
+$(eval $(cmake-package))
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 2/2 package/tinyxml2: new package

Required for upcoming kodi-pvr-dvblink package:
https://github.com/kodi-pvr/pvr.dvblink/blob/master/CMakeLists.txt#L11

---
 package/Config.in            |    1 +
 package/tinyxml2/Config.in   |   11 +++++++++++
 package/tinyxml2/tinyxml2.mk |   13 +++++++++++++
 3 files changed, 25 insertions(+)
 create mode 100644 package/tinyxml2/Config.in
 create mode 100644 package/tinyxml2/tinyxml2.mk
package/Config.in +1 -0
index 5b4b639..6800027 100644
@@ -816,6 +816,7 @@ menu "JSON/XML"
 	source "package/mxml/Config.in"
 	source "package/rapidjson/Config.in"
 	source "package/tinyxml/Config.in"
+	source "package/tinyxml2/Config.in"
 	source "package/xerces/Config.in"
 	source "package/yajl/Config.in"
 	source "package/yaml-cpp/Config.in"
package/tinyxml2/Config.in new file +11 -0
new file mode 100644
index 0000000..25bc594
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_TINYXML2
+	bool "tinyxml2"
+	depends on BR2_INSTALL_LIBSTDCPP
+	help
+	  TinyXML-2 is a simple, small, efficient, C++ XML parser that can be
+	  easily integrating into other programs.
+
+	  http://www.grinninglizard.com/tinyxml2/index.html
+
+comment "tinyxml2 needs a toolchain w/ C++"
+	depends on !BR2_INSTALL_LIBSTDCPP
package/tinyxml2/tinyxml2.mk new file +13 -0
new file mode 100644
index 0000000..370049b
@@ -0,0 +1,13 @@
+################################################################################
+#
+# tinyxml2
+#
+################################################################################
+
+TINYXML2_VERSION = 2.2.0
+TINYXML2_SITE = $(call github,leethomason,tinyxml2,$(TINYXML2_VERSION))
+TINYXML2_LICENSE = zlib
+TINYXML2_LICENSE_FILES = readme.md
+TINYXML2_INSTALL_STAGING = YES
+
+$(eval $(cmake-package))
Signature · 1 line
1.7.10.4
#2 lore raw

PATCH 1/2 package/jsoncpp: new package

In reply to Bernd Kuhls

Dear Bernd Kuhls,

Quoted 6 lines · Bernd Kuhls

Needed for upcoming Kodi pctv/filmon PVR packages:

https://github.com/kodi-pvr/pvr.pctv/blob/master/CMakeLists.txt#L11
https://github.com/kodi-pvr/pvr.filmon/blob/master/CMakeLists.txt#L11

Applied with a few changes:

[Thomas:
- bump to 1.6.0
- change the license to "Public Domain or MIT"
- wrap Config.in help text]

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw

PATCH 1/2 package/jsoncpp: new package

In reply to Bernd Kuhls

Dear Bernd Kuhls,

Quoted 6 lines · Bernd Kuhls

Needed for upcoming Kodi pctv/filmon PVR packages:

https://github.com/kodi-pvr/pvr.pctv/blob/master/CMakeLists.txt#L11
https://github.com/kodi-pvr/pvr.filmon/blob/master/CMakeLists.txt#L11

This package is causing a few autobuilder failures:
http://autobuild.buildroot.org/?reason=jsoncpp-1.6.0. Could you have a look?

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com