summaryrefslogtreecommitdiff
path: root/packages/roadmap/zroadmap_cvs.bb
blob: 5b39faf071e2b5283d38b2d6eba8d0644bc4d4ee (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
42
require zroadmap.inc

DEPENDS += "expat"
SRCDATE = "20071212"
PV = "1.1.0+cvs-${SRCDATE}"
PR = "r0"

SRC_URI = "cvs://anonymous:@roadmap.cvs.sf.net/cvsroot/roadmap;module=roadmap \
           file://cross.patch;patch=1;pnum=2 \
           file://qt/qt2-fixes.patch;patch=1 \
           file://qt/qt_canvas.patch;patch=1 \
#upstream  file://qt/qt_main.patch;patch=1 \
           file://qt/roadmap_main.patch;patch=1 \
#upstream  file://qt/roadmap.desktop.patch;patch=1 \
           http://roadmap.digitalomaha.net/maps/usdir.rdm.tar.gz \
           file://zroadgps.png"
S = "${WORKDIR}/roadmap/src"

EXTRA_OEMAKE = 'DESKTOP=QPE MOC=${OE_QMAKE_MOC} UIC=${OE_QMAKE_UIC} QTDIR=${QTDIR} \
                CFLAGS="-DQWS -DQT_NO_ROTATE -I${S} ${OE_QMAKE_CFLAGS} -I${OE_QMAKE_INCDIR_QT}" \
                LDFLAGS="${OE_QMAKE_LDFLAGS} -L${OE_QMAKE_LIBDIR_QT} -Wl,-rpath-link,${OE_QMAKE_LIBDIR_QT}" '

do_compile() {
	oe_runmake libguiroadmap.a libguiroadgps.a libroadmap.a
	oe_runmake -C gpx libgpx.a
	oe_runmake -C unix libosroadmap.a
	oe_runmake -C qt qtroadmap qtroadgps
}

do_install() {
        install -d ${D}${palmtopdir}/bin
	install -d ${D}${palmtopdir}/apps/Applications
	install -d ${D}${palmtopdir}/pics
        install -m 0755 qt/qtroadmap ${D}${palmtopdir}/bin/roadmap
	install -m 0755 qt/qtroadgps ${D}${palmtopdir}/bin/roadgps
	install -m 0644 icons/*.png ${D}${palmtopdir}/pics/
	install -m 0644 ${WORKDIR}/zroadgps.png ${D}${palmtopdir}/pics/zroadgps.png
        install -m 0644 *.desktop ${D}${palmtopdir}/apps/Applications/
	install -d ${D}${palmtopdir}/share/roadmap/
        install -m 0644 sprites preferences ${D}${palmtopdir}/share/roadmap/
	install -m 0644 ${WORKDIR}/usdir.rdm ${D}${palmtopdir}/share/roadmap/
}