aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-qtopia/ubahnnav
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2011-07-24 17:57:24 +0100
committerPaul Eggleton <paul.eggleton@linux.intel.com>2011-07-30 02:35:12 +0100
commite9b45ff67d32fdc27950a51135b6dabada8334e7 (patch)
treede99cd760c8292ee1dd334e23e1e5cc43e90dfbd /recipes-qtopia/ubahnnav
downloadmeta-opie-e9b45ff67d32fdc27950a51135b6dabada8334e7.tar.gz
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 <paul.eggleton@linux.intel.com>
Diffstat (limited to 'recipes-qtopia/ubahnnav')
-rw-r--r--recipes-qtopia/ubahnnav/ubahnnav/gcc45-compilation-fixes.patch109
-rw-r--r--recipes-qtopia/ubahnnav/ubahnnav/qmake.patch48
-rw-r--r--recipes-qtopia/ubahnnav/ubahnnav_0.4.1.bb39
3 files changed, 196 insertions, 0 deletions
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 <time.h>
+ #include <stdio.h>
+
+-#include <iostream.h>
++#include <iostream>
+
+ #ifdef MPATROL
+ #include <mp/mpatrol.h>
+ #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 <iostream.h>
+-#include <fstream.h>
++#include <iostream>
++#include <fstream>
+
+
+-class SMXMLWriter : public ofstream
++class SMXMLWriter : public std::ofstream
+ {
+ public:
+- SMXMLWriter(const char *filename) : ofstream(filename) {
+- *this<< "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>" << endl <<endl;
++ SMXMLWriter(const char *filename) : std::ofstream(filename) {
++ *this<< "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>" << std::endl <<std::endl;
+ }
+ protected:
+
+Index: ubahnnav-0.4.1/src/libsubwaymap/subwaymap/SubwayMap.h
+===================================================================
+--- ubahnnav-0.4.1.orig/src/libsubwaymap/subwaymap/SubwayMap.h
++++ ubahnnav-0.4.1/src/libsubwaymap/subwaymap/SubwayMap.h
+@@ -25,6 +25,7 @@
+ #include "SMError.h"
+ #include "SMXMLWriter.h"
+
++using namespace std;
+
+ enum eDirection {
+ both=0, // search in both directions
+Index: ubahnnav-0.4.1/src/libsubwaymap/subwaymap/XMLBase.h
+===================================================================
+--- ubahnnav-0.4.1.orig/src/libsubwaymap/subwaymap/XMLBase.h
++++ ubahnnav-0.4.1/src/libsubwaymap/subwaymap/XMLBase.h
+@@ -21,7 +21,7 @@
+ #ifndef __XMLBASE_H__
+ #define __XMLBASE_H__
+
+-#include <iostream.h>
++#include <iostream>
+ #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 <iostream.h>
++#include <iostream>
+ #include <qmessagebox.h>
+ #include <qdatetime.h>
+
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"