summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/navit/navit.inc
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2011-05-29 11:40:09 +0200
committerKoen Kooi <koen@dominion.thruhere.net>2011-05-29 21:37:56 +0200
commit9ebce78b17255b9ed825273f964dafb4cd814f35 (patch)
tree876a53e1a13c27bbb60b50bfe16bc44396c20e88 /meta-oe/recipes-support/navit/navit.inc
parentf71254a7ac97dea82c425b927255bcb3effafad0 (diff)
downloadmeta-openembedded-9ebce78b17255b9ed825273f964dafb4cd814f35.tar.gz
navit: import from OE rev d4f0211e2078d5033ae0dee74664de5520d8392d
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/navit/navit.inc')
-rw-r--r--meta-oe/recipes-support/navit/navit.inc93
1 files changed, 93 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/navit/navit.inc b/meta-oe/recipes-support/navit/navit.inc
new file mode 100644
index 000000000..25a7b8df0
--- /dev/null
+++ b/meta-oe/recipes-support/navit/navit.inc
@@ -0,0 +1,93 @@
1DESCRIPTION = "Navit is a car navigation system with routing engine."
2LICENSE = "GPLv2 LGPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=a4c51733b63d82df87995454bdc4b654 \
4 file://LGPL-2;md5=3214f080875748938ba060314b4f727d \
5 file://GPL-2;md5=751419260aa954499f7abaabaa882bbe \
6"
7
8SECTION = "x11/applications"
9DEPENDS = "glib-2.0 gtk+ qt4-x11-free gd gypsy librsvg-native"
10RDEPENDS_${PN} = " navit-icons ${PN}-config "
11RDEPENDS_${PN}-gui-qml = "qt4-plugin-imageformat-svg"
12RRECOMMENDS_${PN} = "gpsd ${PN}-dbus ${PN}-speech-cmdline ${PN}-gui-internal ${PN}-graphics-gtk"
13RSUGGESTS_${PN} = "flite-alsa espeak ${PN}-speech-dbus ${PN}-gui-gtk ${PN}-gui-qml ${PN}-graphics-sdl ${PN}-graphics-qt ${PN}-maptool"
14
15PE = "1"
16INC_PR = "r8"
17
18inherit autotools gettext
19
20EXTRA_OECONF += " \
21 --disable-binding-python \
22 --disable-samplemap \
23 --enable-avoid-unaligned \
24 --enable-graphics-qt-qpainter \
25 --enable-gui-qml \
26 --enable-svg2png-scaling-flag=32 \
27 --disable-speech-speech-dispatcher \
28 --enable-cache-size=20971520 \
29"
30
31# --enable-avoid-float \
32#check for TARGET_FPU=soft and inform configure of the result so it can disable some floating points
33require navit-fpu.inc
34EXTRA_OECONF += "${@get_navit_fpu_setting(bb, d)}"
35
36PACKAGES =+ "${PN}-maptool ${PN}-config ${PN}-dbus ${PN}-speech-cmdline ${PN}-speech-dbus ${PN}-gui-gtk ${PN}-gui-internal ${PN}-gui-qml ${PN}-graphics-sdl ${PN}-graphics-gtk ${PN}-graphics-qt"
37
38EXTRA_AUTORECONF = " -I m4"
39
40CONFFILES_${PN}-config += "${datadir}/navit/navit.default.xml \
41 ${datadir}/navit/navit.xml \
42 ${datadir}/navit/maps.xml \
43 ${datadir}/navit/osd.xml \
44 ${datadir}/navit/speech.xml \
45 ${datadir}/navit/plugins.xml \
46 "
47
48SRC_URI += "file://navit.xml \
49 file://maps.xml \
50 file://osd.xml \
51 file://speech.xml \
52 file://plugins.xml \
53 "
54
55FILES_${PN} += "${libdir}/${PN}/*/*.so"
56FILES_${PN}-dbg += "${libdir}/${PN}/*/.debug"
57FILES_${PN}-maptool = " ${bindir}/maptool "
58FILES_${PN}-config = " ${datadir}/navit/*.xml "
59FILES_${PN}-dbus = " ${datadir}/dbus-1/services/ ${libdir}/${PN}/binding/libbinding_dbus.so "
60FILES_${PN}-speech-cmdline = " ${libdir}/${PN}/speech/libspeech_cmdline.so "
61FILES_${PN}-speech-dbus = " ${libdir}/${PN}/speech/libspeech_dbus.so "
62FILES_${PN}-gui-gtk = " ${libdir}/${PN}/gui/libgui_gtk.so "
63FILES_${PN}-gui-qml = " ${libdir}/${PN}/gui/libgui_qml.so ${datadir}/navit/skins/ "
64FILES_${PN}-gui-internal = " ${libdir}/${PN}/gui/libgui_internal.so "
65FILES_${PN}-graphics-sdl = " ${libdir}/${PN}/graphics/libgraphics_sdl.so "
66FILES_${PN}-graphics-qt = " ${libdir}/${PN}/graphics/libgraphics_qt_qpainter.so "
67FILES_${PN}-graphics-gtk = " ${libdir}/${PN}/graphics/libgraphics_gtk_drawing_area.so "
68
69do_configure_prepend() {
70 #Remove xpm building, replaced by icons in own package
71 sed -i 's/\(.*SUBDIRS.*\) xpm\( \|$\)\(.*\)/\1\2\3/g' ${S}/navit/Makefile.am
72 # MOC=`$PKG_CONFIG QtGui --variable=moc_location` returns only /usr/bin/moc4 which is not available on hosts without Qt
73 sed -i "s#MOC=#MOC=${STAGING_DIR_NATIVE}#g" ${S}/configure.in
74}
75
76do_install_append() {
77 install -d ${D}${datadir}/applications/
78 install -m 0644 ${S}/navit/xpm/desktop_icons/navit.desktop ${D}${datadir}/applications/
79 install -d ${D}${datadir}/pixmaps/
80 install -m 0644 ${S}/navit/xpm/desktop_icons/128x128/navit.png ${D}${datadir}/pixmaps/
81 # fix QA issue
82 sed -i 's#Categories=GTK;Utility;Geography;#Categories=Graphics;#g' ${D}${datadir}/applications/navit.desktop
83
84 rm ${D}${libdir}/${PN}/*/*.la
85
86 #Use split config
87 mv ${D}${datadir}/navit/navit.xml ${D}${datadir}/navit/navit.default.xml
88 install -m 0644 ${WORKDIR}/navit.xml ${D}${datadir}/navit/navit.xml
89 install -m 0644 ${WORKDIR}/maps.xml ${D}${datadir}/navit/maps.xml
90 install -m 0644 ${WORKDIR}/osd.xml ${D}${datadir}/navit/osd.xml
91 install -m 0644 ${WORKDIR}/speech.xml ${D}${datadir}/navit/speech.xml
92 install -m 0644 ${WORKDIR}/plugins.xml ${D}${datadir}/navit/plugins.xml
93}