[Lunar-commits] <moonbase-other> tinyxml: add this as a rather messy module to -other

v4hn me at v4hn.de
Wed Apr 24 02:51:40 CEST 2013


commit f3c36a644a77c57378d48cc2cf2f9eca1d7decd5
Author: v4hn <me at v4hn.de>
Date: Tue, 23 Apr 2013 16:59:42 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/f3c36a644a77c57378d48cc2cf2f9eca1d7decd5

tinyxml: add this as a rather messy module to -other
---
  libs/tinyxml/BUILD   | +38/-0    
  libs/tinyxml/DEPENDS | +1/-0     
  libs/tinyxml/DETAILS | +15/-0    
  3 files changed, 54 insertions(+)

--- /dev/null
+++ b/libs/tinyxml/BUILD
@@ -0,0 +1,38 @@
+# officially this is no standalone project
+# debian started packaging it as .so/.a
+# and now projects rely on it being available...
+
+# require STL interface (as used in debian)
+sedit "29 i #ifndef TIXML_USE_STL\n #define TIXML_USE_STL\n#endif\n" tinyxml.h &&
+CFLAGS+=" -fPIC -DTIXML_USE_STL=1" &&
+
+sedit "s/CFLAGS *:=/CFLAGS := \${CFLAGS} \${RELEASE_CFLAGS}/"     Makefile &&
+sedit "s/LDFLAGS *:=/LDFLAGS := \${LDFLAGS} \${RELEASE_LDFLAGS}/" Makefile &&
+
+make &&
+
+OBJ_FILES="tinystr.o tinyxmlerror.o tinyxml.o tinyxmlparser.o" &&
+
+ar rc libtinyxml.a ${OBJ_FILES} &&
+g++ -shared -Wl,-soname,libtinyxml.so.${VERSION} -o libtinyxml.so.${VERSION} ${LDFLAGS} ${OBJ_FILES} &&
+
+cat > tinyxml.pc && <<EOF
+prefix=/usr
+exec_prefix=\${prefix}
+libdir=\${exec_prefix}/lib
+includedir=\${prefix}/include
+
+Name: TinyXml
+Description: simple, small, C++ XML parser
+Version: $VERSION
+Libs: -L\${libdir} -ltinyxml
+Cflags: -I\${includedir}
+EOF
+
+prepare_install &&
+
+install -Dm0644 tinyxml.h tinystr.h /usr/include/ &&
+
+libtool install install -Dm0755 libtinyxml.a libtinyxml.so.${VERSION} /usr/lib/ &&
+libtool finish /usr/lib/ &&
+install -Dm0644 tinyxml.pc /usr/lib/pkgconfig/
--- /dev/null
+++ b/libs/tinyxml/DEPENDS
@@ -0,0 +1 @@
+depends cmake
--- /dev/null
+++ b/libs/tinyxml/DETAILS
@@ -0,0 +1,15 @@
+          MODULE=tinyxml
+         VERSION=2.6.2
+          SOURCE=${MODULE}_${VERSION//\./_}.tar.gz
+SOURCE_DIRECTORY=${BUILD_DIRECTORY}/$MODULE
+      SOURCE_URL=$SFORGE_URL/tinyxml/$VERSION
+      SOURCE_VFY=sha1:cba3f50dd657cb1434674a03b21394df9913d764
+        WEB_SITE=http://grinninglizard.com/tinyxml
+         ENTERED=20130417
+         UPDATED=20130417
+           SHORT="C++ XML parser"
+
+cat << EOF
+TinyXML is a simple, small, C++ XML parser that can
+be easily integrated into other programs.
+EOF




More information about the Lunar-commits mailing list