summaryrefslogtreecommitdiff
path: root/package/tinyxml
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-08-12 10:30:50 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-08-12 10:30:50 +0200
commit8f16335443a322578274737c8d80ce557e4d2656 (patch)
tree947d42d781b409f72c9f0fa957d8796352f9b386 /package/tinyxml
parent5212b6029108093bb3ac6d8386fd999fd00f2701 (diff)
add xmbc package for raspberry-pi target
Diffstat (limited to 'package/tinyxml')
-rw-r--r--package/tinyxml/Makefile32
-rw-r--r--package/tinyxml/patches/patch-Makefile61
-rw-r--r--package/tinyxml/patches/patch-Makefile.orig60
3 files changed, 153 insertions, 0 deletions
diff --git a/package/tinyxml/Makefile b/package/tinyxml/Makefile
new file mode 100644
index 000000000..3875bf225
--- /dev/null
+++ b/package/tinyxml/Makefile
@@ -0,0 +1,32 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= tinyxml
+PKG_VERSION:= 2.6.2
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 2a0aaf609c9e670ec9748cd01ed52dae
+PKG_DESCR:= a simple, small, minimal, C++ XML parser
+PKG_SECTION:= libs
+PKG_URL:= http://sourceforge.net/projects/tinyxml/
+PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=tinyxml/}
+
+DISTFILES:= ${PKG_NAME}_2_6_2.zip
+WRKDIST= ${WRKDIR}/tinyxml
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,TINYXML,tinyxml,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CONFIG_STYLE:= manual
+INSTALL_STYLE:= manual
+
+tinyxml-install:
+ $(INSTALL_DIR) $(IDIR_TINYXML)/usr/lib
+ $(CP) $(WRKBUILD)/libtinyxml*.so* \
+ $(IDIR_TINYXML)/usr/lib
+ $(INSTALL_DATA) $(WRKBUILD)/tiny{str,xml}.h \
+ $(STAGING_DIR)/usr/include
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/tinyxml/patches/patch-Makefile b/package/tinyxml/patches/patch-Makefile
new file mode 100644
index 000000000..bfe7abb95
--- /dev/null
+++ b/package/tinyxml/patches/patch-Makefile
@@ -0,0 +1,61 @@
+--- tinyxml.orig/Makefile 2013-07-30 15:47:47.000000000 +0200
++++ tinyxml/Makefile 2013-07-30 15:47:46.000000000 +0200
+@@ -15,13 +15,13 @@ PROFILE := NO
+
+ # TINYXML_USE_STL can be used to turn on STL support. NO, then STL
+ # will not be used. YES will include the STL files.
+-TINYXML_USE_STL := NO
++TINYXML_USE_STL := YES
+
+ #****************************************************************************
+
+-CC := gcc
+-CXX := g++
+-LD := g++
++CC ?= gcc
++CXX ?= g++
++LD := $(CXX)
+ AR := ar rc
+ RANLIB := ranlib
+
+@@ -41,9 +41,9 @@ ifeq (YES, ${DEBUG})
+ CXXFLAGS := ${DEBUG_CXXFLAGS}
+ LDFLAGS := ${DEBUG_LDFLAGS}
+ else
+- CFLAGS := ${RELEASE_CFLAGS}
+- CXXFLAGS := ${RELEASE_CXXFLAGS}
+- LDFLAGS := ${RELEASE_LDFLAGS}
++ CFLAGS ?= ${RELEASE_CFLAGS}
++ CXXFLAGS ?= ${RELEASE_CXXFLAGS}
++ LDFLAGS ?= ${RELEASE_LDFLAGS}
+ endif
+
+ ifeq (YES, ${PROFILE})
+@@ -81,7 +81,7 @@ CXXFLAGS := ${CXXFLAGS} ${DEFS}
+ # Targets of the build
+ #****************************************************************************
+
+-OUTPUT := xmltest
++OUTPUT := libtinyxml.so.2.6.2
+
+ all: ${OUTPUT}
+
+@@ -90,7 +90,7 @@ all: ${OUTPUT}
+ # Source files
+ #****************************************************************************
+
+-SRCS := tinyxml.cpp tinyxmlparser.cpp xmltest.cpp tinyxmlerror.cpp tinystr.cpp
++SRCS := tinyxml.cpp tinyxmlparser.cpp tinyxmlerror.cpp tinystr.cpp
+
+ # Add on the sources for libraries
+ SRCS := ${SRCS}
+@@ -102,7 +102,8 @@ OBJS := $(addsuffix .o,$(basename ${SRCS
+ #****************************************************************************
+
+ ${OUTPUT}: ${OBJS}
+- ${LD} -o $@ ${LDFLAGS} ${OBJS} ${LIBS} ${EXTRA_LIBS}
++ ${CXX} -shared -Wl,-soname,libtinyxml.so.2.6.2 -o $@ ${OBJS} ${LDFLAGS} ${LIBS} ${EXTRA_LIBS}
++ ln -sf libtinyxml.so.2.6.2 libtinyxml.so
+
+ #****************************************************************************
+ # common rules
diff --git a/package/tinyxml/patches/patch-Makefile.orig b/package/tinyxml/patches/patch-Makefile.orig
new file mode 100644
index 000000000..78372e7e5
--- /dev/null
+++ b/package/tinyxml/patches/patch-Makefile.orig
@@ -0,0 +1,60 @@
+--- tinyxml.orig/Makefile 2013-07-30 15:47:27.000000000 +0200
++++ tinyxml/Makefile 2013-07-30 15:47:25.000000000 +0200
+@@ -15,13 +15,13 @@ PROFILE := NO
+
+ # TINYXML_USE_STL can be used to turn on STL support. NO, then STL
+ # will not be used. YES will include the STL files.
+-TINYXML_USE_STL := NO
++TINYXML_USE_STL := YES
+
+ #****************************************************************************
+
+-CC := gcc
+-CXX := g++
+-LD := g++
++CC ?= gcc
++CXX ?= g++
++LD := $(CXX)
+ AR := ar rc
+ RANLIB := ranlib
+
+@@ -41,9 +41,9 @@ ifeq (YES, ${DEBUG})
+ CXXFLAGS := ${DEBUG_CXXFLAGS}
+ LDFLAGS := ${DEBUG_LDFLAGS}
+ else
+- CFLAGS := ${RELEASE_CFLAGS}
+- CXXFLAGS := ${RELEASE_CXXFLAGS}
+- LDFLAGS := ${RELEASE_LDFLAGS}
++ CFLAGS ?= ${RELEASE_CFLAGS}
++ CXXFLAGS ?= ${RELEASE_CXXFLAGS}
++ LDFLAGS ?= ${RELEASE_LDFLAGS}
+ endif
+
+ ifeq (YES, ${PROFILE})
+@@ -81,7 +81,7 @@ CXXFLAGS := ${CXXFLAGS} ${DEFS}
+ # Targets of the build
+ #****************************************************************************
+
+-OUTPUT := xmltest
++OUTPUT := libtinyxml.so.2.6.2
+
+ all: ${OUTPUT}
+
+@@ -90,7 +90,7 @@ all: ${OUTPUT}
+ # Source files
+ #****************************************************************************
+
+-SRCS := tinyxml.cpp tinyxmlparser.cpp xmltest.cpp tinyxmlerror.cpp tinystr.cpp
++SRCS := tinyxml.cpp tinyxmlparser.cpp tinyxmlerror.cpp tinystr.cpp
+
+ # Add on the sources for libraries
+ SRCS := ${SRCS}
+@@ -103,6 +103,8 @@ OBJS := $(addsuffix .o,$(basename ${SRCS
+
+ ${OUTPUT}: ${OBJS}
+ ${LD} -o $@ ${LDFLAGS} ${OBJS} ${LIBS} ${EXTRA_LIBS}
++ ${CXX} -shared -Wl,-soname,libtinyxml.so.2.6.2 -o $@ ${OBJS} ${LDFLAGS} ${LIBS} ${EXTRA_LIBS}
++ ln -sf libtinyxml.so.2.6.2 libtinyxml.so
+
+ #****************************************************************************
+ # common rules