aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-qtopia/ubahnnav/ubahnnav_0.4.1.bb
blob: 1824fedabc24be8c6c8b8663974d4a5387ba1232 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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."
SECTION = "opie/applications"
AUTHOR = "Dimitri Brukakis"
HOMEPAGE = "http://ubahnstation.net"
LICENSE = "GPLv2+"
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}"

LIC_FILES_CHKSUM = "file://LICENSE;md5=393a5ca445f6965873eca0259a17f833 \
                    file://src/ubahnnav/UBahnNavMain.cpp;beginline=8;endline=16;md5=d7c8ef91807bd7ddae4a4f3ac2b7f252"

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"