From e9b45ff67d32fdc27950a51135b6dabada8334e7 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Sun, 24 Jul 2011 17:57:24 +0100 Subject: initial commit of meta-opie Populate the repository with files from OpenEmbedded at revision 45edf621296daf150c72b876d720861235e5762e - no changes, only rearranged the directory structure to match the new oe-core style and added COPYING.MIT and README. Signed-off-by: Paul Eggleton --- .../ubahnnav/gcc45-compilation-fixes.patch | 109 +++++++++++++++++++++ recipes-qtopia/ubahnnav/ubahnnav/qmake.patch | 48 +++++++++ recipes-qtopia/ubahnnav/ubahnnav_0.4.1.bb | 39 ++++++++ 3 files changed, 196 insertions(+) create mode 100644 recipes-qtopia/ubahnnav/ubahnnav/gcc45-compilation-fixes.patch create mode 100644 recipes-qtopia/ubahnnav/ubahnnav/qmake.patch create mode 100644 recipes-qtopia/ubahnnav/ubahnnav_0.4.1.bb (limited to 'recipes-qtopia/ubahnnav') diff --git a/recipes-qtopia/ubahnnav/ubahnnav/gcc45-compilation-fixes.patch b/recipes-qtopia/ubahnnav/ubahnnav/gcc45-compilation-fixes.patch new file mode 100644 index 0000000..73e46b5 --- /dev/null +++ b/recipes-qtopia/ubahnnav/ubahnnav/gcc45-compilation-fixes.patch @@ -0,0 +1,109 @@ +Index: ubahnnav-0.4.1/src/libsubwaymap/baseclasses.cpp +=================================================================== +--- ubahnnav-0.4.1.orig/src/libsubwaymap/baseclasses.cpp ++++ ubahnnav-0.4.1/src/libsubwaymap/baseclasses.cpp +@@ -493,7 +493,7 @@ int String::strnicmp(const char *rval, i + + + +-ostream& operator<<(ostream& os, const String& s) ++std::ostream& operator<<(std::ostream& os, const String& s) + { + return os << s._string; + } +Index: ubahnnav-0.4.1/src/libsubwaymap/baseclasses.h +=================================================================== +--- ubahnnav-0.4.1.orig/src/libsubwaymap/baseclasses.h ++++ ubahnnav-0.4.1/src/libsubwaymap/baseclasses.h +@@ -36,12 +36,14 @@ + #include + #include + +-#include ++#include + + #ifdef MPATROL + #include + #endif + ++using namespace std; ++ + class ObjectList; + class ObjectListIterator; + class ObjectListContainer; +Index: ubahnnav-0.4.1/src/libsubwaymap/debug.h +=================================================================== +--- ubahnnav-0.4.1.orig/src/libsubwaymap/debug.h ++++ ubahnnav-0.4.1/src/libsubwaymap/debug.h +@@ -21,7 +21,7 @@ + #ifndef __DEBUG_H__ + #define __DEBUG_H__ + +- ++using namespace std; + #include "baseclasses.h" + + class Debug : public Object +Index: ubahnnav-0.4.1/src/libsubwaymap/subwaymap/SMXMLWriter.h +=================================================================== +--- ubahnnav-0.4.1.orig/src/libsubwaymap/subwaymap/SMXMLWriter.h ++++ ubahnnav-0.4.1/src/libsubwaymap/subwaymap/SMXMLWriter.h +@@ -23,15 +23,15 @@ + + #include "baseclasses.h" + #include "SMError.h" +-#include +-#include ++#include ++#include + + +-class SMXMLWriter : public ofstream ++class SMXMLWriter : public std::ofstream + { + public: +- SMXMLWriter(const char *filename) : ofstream(filename) { +- *this<< "" << endl <" << std::endl < ++#include + #include "baseclasses.h" + + +Index: ubahnnav-0.4.1/src/ubahnnav/UBahnNavMain.cpp +=================================================================== +--- ubahnnav-0.4.1.orig/src/ubahnnav/UBahnNavMain.cpp ++++ ubahnnav-0.4.1/src/ubahnnav/UBahnNavMain.cpp +@@ -18,7 +18,7 @@ + ######################################################################### + */ + +-#include ++#include + #include + #include + diff --git a/recipes-qtopia/ubahnnav/ubahnnav/qmake.patch b/recipes-qtopia/ubahnnav/ubahnnav/qmake.patch new file mode 100644 index 0000000..86c57b2 --- /dev/null +++ b/recipes-qtopia/ubahnnav/ubahnnav/qmake.patch @@ -0,0 +1,48 @@ + +# +# Patch managed by http://www.holgerschurig.de/patcher.html +# + +--- /dev/null ++++ ubahnnav-0.3.1/src.pro +@@ -0,0 +1,3 @@ ++TEMPLATE = subdirs ++SUBDIRS = src/libsubwaymap src/ubahnnav ++ +--- /dev/null ++++ ubahnnav-0.3.1/src/libsubwaymap/libsubwaymap.pro +@@ -0,0 +1,34 @@ ++###################################################################### ++# Automatically generated by qmake (1.06c) Sat Aug 28 18:47:05 2004 ++###################################################################### ++ ++TEMPLATE = lib ++TARGET = subwaymap ++CONFIG = qt ++INCLUDEPATH += . ++ ++# Input ++HEADERS += baseclasses.h \ ++ debug.h \ ++ Dijkstra.h \ ++ Exceptions.h \ ++ RouteFinder.h \ ++ RouteFinderBase.h \ ++ SMError.h \ ++ SMXMLSubwayMapParser.h \ ++ SMXMLSubwayMapParser_Qt.h \ ++ SMXMLWriter.h \ ++ SubwayGraph.h \ ++ SubwayMap.h \ ++ XMLBase.h ++SOURCES += baseclasses.cpp \ ++ debug.cpp \ ++ Dijkstra.cpp \ ++ RouteFinder.cpp \ ++ RouteFinderBase.cpp \ ++ SMXMLSubwayMapParser.cpp \ ++ SMXMLSubwayMapParser_Qt.cpp \ ++ SMXMLWriter.cpp \ ++ SubwayGraph.cpp \ ++ SubwayMap.cpp \ ++ XMLBase.cpp diff --git a/recipes-qtopia/ubahnnav/ubahnnav_0.4.1.bb b/recipes-qtopia/ubahnnav/ubahnnav_0.4.1.bb new file mode 100644 index 0000000..89d91fb --- /dev/null +++ b/recipes-qtopia/ubahnnav/ubahnnav_0.4.1.bb @@ -0,0 +1,39 @@ +DESCRIPTION = "U-Bahn Navigator helps you navigating through foreign public \ +transport networks. It finds the shortest or direct route from a start to a \ +destination station of the loaded subway map. U-Bahn Navigator is extensible \ +to support each public transport network." +PRIORITY = "optional" +SECTION = "opie/applications" +AUTHOR = "Dimitri Brukakis" +HOMEPAGE = "http://ubahnstation.net" +LICENSE = "GPL" +APPNAME = "ubahnnav" +APPTYPE = "binary" +APPDESKTOP = "${S}/src/ubahnnav" +PR = "r1" + +SRC_URI = "http://ubahnstation.net/source/ubahnnav-${PV}.tar.gz \ + file://qmake.patch \ + file://gcc45-compilation-fixes.patch \ + " +S = "${WORKDIR}/ubahnnav-${PV}" + +inherit opie + +export OE_QMAKE_LINK="${CXX}" +EXTRA_QMAKEVARS_POST += "INCLUDEPATH+=${S}/src/libsubwaymap LIBS+=-L${S} LIBS-=-lqtopia" + +do_configure_prepend() { + find . -name "Makefile"|xargs rm -f +} + +do_install() { + oe_libinstall -so libsubwaymap ${D}${palmtopdir}/lib + install -d ${D}${palmtopdir}/pics + install -d ${D}${palmtopdir}/ubahn/maps + touch ${D}${palmtopdir}/ubahn/maps/.empty + install -m 0644 src/ubahnnav/images/u-logo.png ${D}${palmtopdir}/pics/ubahnnav.png +} + +SRC_URI[md5sum] = "039d1215960b879d5b292e5b713ced8b" +SRC_URI[sha256sum] = "7007261ad816938ee4824720eb08e9bff4ad6f796965ec928f56acfa3c24a1b9" -- cgit 1.2.3-korg