[oe-commits] A. Varnin : libtinyxml2: new package

git at git.openembedded.org git at git.openembedded.org
Thu Oct 30 08:03:58 UTC 2014


Module: meta-openembedded.git
Branch: master
Commit: b47da92f2e11338e8544074bb3bc55713a779993
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=b47da92f2e11338e8544074bb3bc55713a779993

Author: A. Varnin <fenixk19 at mail.ru>
Date:   Tue Oct 21 20:39:27 2014 +0400

libtinyxml2: new package

TinyXML-2 is a rewrite of TinyXML-1. It provides some advantages over the original. They are covered on the homepage. (http://www.grinninglizard.com/tinyxml2/)

Signed-off-by: A. Varnin <fenixk19 at mail.ru>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 .../recipes-support/libtinyxml2/libtinyxml2_git.bb | 38 ++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/meta-oe/recipes-support/libtinyxml2/libtinyxml2_git.bb b/meta-oe/recipes-support/libtinyxml2/libtinyxml2_git.bb
new file mode 100644
index 0000000..1d3cffd
--- /dev/null
+++ b/meta-oe/recipes-support/libtinyxml2/libtinyxml2_git.bb
@@ -0,0 +1,38 @@
+SUMMARY = "TinyXML-2 is a simple, small, efficient, C++ XML parser that can be easily integrating into other programs."
+HOMEPAGE = "http://www.grinninglizard.com/tinyxml2/"
+LICENSE = "Zlib"
+LIC_FILES_CHKSUM = "file://readme.md;md5=0033b2f8a25283414b21354670bb1334"
+SECTION = "libs"
+
+SRCREV = "d211bb13512cf4edb408e2c4badbcf4100ce0fd0"
+
+PV = "2.2.0+git${SRCPV}"
+
+SRC_URI = "git://github.com/leethomason/tinyxml2.git"
+
+S = "${WORKDIR}/git"
+
+EXTRA_CXXFLAGS = "-I. -fPIC"
+
+do_compile() {
+    ${CXX} ${CXXFLAGS} ${EXTRA_CXXFLAGS} -c -o tinyxml2.o tinyxml2.cpp
+    ${CXX} ${CXXFLAGS} \
+            -shared \
+            -Wl,-soname,libtinyxml2.so.${PV} \
+            -o libtinyxml2.so.${PV} \
+            ${LDFLAGS} \
+            tinyxml2.o \
+
+}
+
+do_install() {
+    install -d ${D}${libdir}
+    install -m 0755 ${S}/libtinyxml2.so.${PV} ${D}${libdir}
+    ln -sf libtinyxml2.so.${PV} ${D}${libdir}/libtinyxml2.so
+
+    install -d ${D}${includedir}
+    install -m 0644 ${S}/tinyxml2.h ${D}${includedir}
+}
+
+BBCLASSEXTEND += "native"
+



More information about the Openembedded-commits mailing list