[Buildroot] [PATCH 2/2] package/tinyxml2: new package

Bernd Kuhls bernd.kuhls at t-online.de
Sun Mar 8 12:01:24 UTC 2015


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

Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
---
 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

diff --git a/package/Config.in b/package/Config.in
index 5b4b639..6800027 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/tinyxml2/Config.in b/package/tinyxml2/Config.in
new file mode 100644
index 0000000..25bc594
--- /dev/null
+++ b/package/tinyxml2/Config.in
@@ -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
diff --git a/package/tinyxml2/tinyxml2.mk b/package/tinyxml2/tinyxml2.mk
new file mode 100644
index 0000000..370049b
--- /dev/null
+++ b/package/tinyxml2/tinyxml2.mk
@@ -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))
-- 
1.7.10.4




More information about the buildroot mailing list