Patchwork libtinyxml: added recipe for v2.6.2

login
register
mail settings
Submitter Chris Verges
Date June 17, 2011, 2:06 p.m.
Message ID <1308319565-29375-1-git-send-email-kg4ysn@gmail.com>
Download mbox | patch
Permalink /patch/6051/
State New, archived
Headers show

Comments

Chris Verges - June 17, 2011, 2:06 p.m.
tinyxml is a small C++ library for parsing XML data on embedded
systems.  Currently, no recipe exists in OE for tinyxml, so this
patch attempts to rectify that.

Signed-off-by: Chris Verges <kg4ysn@gmail.com>
---
 recipes/libtinyxml/libtinyxml_2.6.2.bb |   37 ++++++++++++++++++++++++++++++++
 1 files changed, 37 insertions(+), 0 deletions(-)
 create mode 100644 recipes/libtinyxml/libtinyxml_2.6.2.bb

Patch

diff --git a/recipes/libtinyxml/libtinyxml_2.6.2.bb b/recipes/libtinyxml/libtinyxml_2.6.2.bb
new file mode 100644
index 0000000..6693e5c
--- /dev/null
+++ b/recipes/libtinyxml/libtinyxml_2.6.2.bb
@@ -0,0 +1,37 @@ 
+DESCRIPTION = "a simple, small, minimal, C++ XML parser"
+HOMEPAGE = "http://www.sourceforge.net/projects/tinyxml"
+LICENSE = "zlib"
+SECTION = "libs"
+
+PR = "r3"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/tinyxml/tinyxml_2_6_2.tar.gz"
+
+S = "${WORKDIR}/tinyxml"
+
+do_compile() {
+	${CXX} ${CXXFLAGS} -I${S} -c -o ${S}/tinyxml.o ${S}/tinyxml.cpp
+	${CXX} ${CXXFLAGS} -I${S} -c -o ${S}/tinyxmlerror.o ${S}/tinyxmlerror.cpp
+	${CXX} ${CXXFLAGS} -I${S} -c -o ${S}/tinyxmlparser.o ${S}/tinyxmlparser.cpp
+	${CXX} ${CXXFLAGS} \
+			-shared \
+			-Wl,-soname,libtinyxml.so.${PV} \
+			-o ${S}/libtinyxml.so.${PV} \
+			${LDFLAGS} \
+			${S}/tinyxml.o \
+			${S}/tinyxmlparser.o \
+			${S}/tinyxmlerror.o
+}
+
+do_install() {
+	install -d ${D}${libdir}
+	install -m 0755 ${S}/libtinyxml.so.${PV} ${D}${libdir}
+	ln -sf libtinyxml.so.${PV} ${D}${libdir}/libtinyxml.so
+
+	install -d ${D}${includedir}
+	install -m 0666 ${S}/tinyxml.h ${D}${includedir}
+}
+
+SRC_URI[md5sum] = "c1b864c96804a10526540c664ade67f0"
+SRC_URI[sha256sum] = "15bdfdcec58a7da30adc87ac2b078e4417dbe5392f3afb719f9ba6d062645593"
+