diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2011-05-30 22:19:41 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2011-05-31 17:30:13 +0200 |
commit | af2f1de23c491cdd25e80011971a9019f20c8f47 (patch) | |
tree | 6721f5e71f7922db4b3349008fe27bc88302b600 /meta-oe/recipes-navigation | |
parent | edfe27d5c78991171fef308870022d52be88ca68 (diff) | |
download | meta-openembedded-af2f1de23c491cdd25e80011971a9019f20c8f47.tar.gz |
gpsd,tangogps,foxtrotgps,navit: move to new recipes-navigation
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-navigation')
18 files changed, 987 insertions, 0 deletions
diff --git a/meta-oe/recipes-navigation/foxtrotgps/foxtrotgps_1.0.1.bb b/meta-oe/recipes-navigation/foxtrotgps/foxtrotgps_1.0.1.bb new file mode 100644 index 000000000..8b685ac15 --- /dev/null +++ b/meta-oe/recipes-navigation/foxtrotgps/foxtrotgps_1.0.1.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | DESCRIPTION = "FoxtrotGPS is a map and GPS application using OpenStreetMap" | ||
2 | AUTHOR = "Joshua Judson Rosen <rozzin@geekspace.com>" | ||
3 | HOMEPAGE = "http://www.foxtrotgps.org/" | ||
4 | SECTION = "x11/applications" | ||
5 | LICENSE = "GPLv2" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" | ||
7 | PRIORITY = "optional" | ||
8 | DEPENDS = "curl gtk+ gconf libglade sqlite3 libexif gpsd" | ||
9 | |||
10 | SRC_URI = "http://www.foxtrotgps.org/releases/${P}.tar.gz" | ||
11 | SRC_URI[md5sum] = "982d14cdb0439cc4d6aa6cefc232124d" | ||
12 | SRC_URI[sha256sum] = "059158fd8e61137e2e6d6e01685add7fb85cce8483faa99efb01187f2ba50841" | ||
13 | |||
14 | inherit autotools pkgconfig | ||
15 | |||
16 | RRECOMMENDS_${PN} = "gpsd" | ||
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd-2.95/60-gpsd.rules b/meta-oe/recipes-navigation/gpsd/gpsd-2.95/60-gpsd.rules new file mode 100644 index 000000000..c01db068d --- /dev/null +++ b/meta-oe/recipes-navigation/gpsd/gpsd-2.95/60-gpsd.rules | |||
@@ -0,0 +1,47 @@ | |||
1 | # udev rules for gpsd | ||
2 | # $Id$ | ||
3 | # | ||
4 | # GPSes don't have their own USB device class. They're serial-over-USB | ||
5 | # devices, so what you see is actually the ID of the serial-over-USB chip. | ||
6 | # Fortunately, just two of these account for over 80% of consumer-grade | ||
7 | # GPS sensors. The gpsd.hotplug.wrapper script will tell a running gpsd | ||
8 | # that it should look at the device that just went active, because it | ||
9 | # might be a GPS. | ||
10 | # | ||
11 | # The following setup works on Debian - something similar will apply on | ||
12 | # other distributions: | ||
13 | # | ||
14 | # /etc/udev/gpsd.rules | ||
15 | # /etc/udev/rules.d/025_gpsd.rules -> ../gpsd.rules | ||
16 | # /lib/udev/gpsd.hotplug.wrapper | ||
17 | # /lib/udev/gpsd.hotplug | ||
18 | # | ||
19 | # Setting the link in /etc/udev/rules.d activates the rule and determines | ||
20 | # when to run it on boot (similar to init.d processing). | ||
21 | |||
22 | SUBSYSTEM!="tty", GOTO="gpsd_rules_end" | ||
23 | |||
24 | # Prolific Technology, Inc. PL2303 Serial Port | ||
25 | ATTR{idVendor}=="067b", ATTR{idProduct}=="2303", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" | ||
26 | # ATEN International Co., Ltd UC-232A Serial Port [pl2303] | ||
27 | ATTR{idVendor}=="0557", ATTR{idProduct}=="2008", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" | ||
28 | # FTDI 8U232AM | ||
29 | ATTR{idVendor}=="0403", ATTR{idProduct}=="6001", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" | ||
30 | # Cypress M8/CY7C64013 (DeLorme uses these) | ||
31 | ATTR{idVendor}=="1163", ATTR{idProduct}=="0100", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" | ||
32 | # PS-360 OEM (Microsoft GPS sold with Street and Trips 2005) | ||
33 | ATTR{idVendor}=="067b", ATTR{idProduct}=="aaa0", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" | ||
34 | # Garmin International GPSmap, various models (tested with Garmin GPS 18 USB) | ||
35 | ATTR{idVendor}=="091e", ATTR{idProduct}=="0003", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" | ||
36 | # Cygnal Integrated Products, Inc. CP210x Composite Device (Used by Holux m241) | ||
37 | ATTR{idVendor}=="10c4", ATTR{idProduct}=="ea60", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" | ||
38 | # u-blox AG, u-blox 5 (tested with Navilock NL-402U) | ||
39 | ATTR{idVendor}=="1546", ATTR{idProduct}=="01a5", SYMLINK="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" | ||
40 | # FTDI FT232 | ||
41 | ATTR{idVendor}=="0403", ATTR{idProduct}=="6001", SYMLINK="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" | ||
42 | # u-blox 4 | ||
43 | SYSFS{idVendor}=="1546", SYSFS{idProduct}=="01a4", SYMLINK="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" | ||
44 | |||
45 | ACTION=="remove", RUN+="/lib/udev/gpsd.hotplug.wrapper" | ||
46 | |||
47 | LABEL="gpsd_rules_end" | ||
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd-2.95/gpsd b/meta-oe/recipes-navigation/gpsd/gpsd-2.95/gpsd new file mode 100755 index 000000000..3687d2400 --- /dev/null +++ b/meta-oe/recipes-navigation/gpsd/gpsd-2.95/gpsd | |||
@@ -0,0 +1,136 @@ | |||
1 | #!/bin/sh | ||
2 | ### BEGIN INIT INFO | ||
3 | # Provides: gpsd | ||
4 | # Required-Start: $remote_fs $network | ||
5 | # Should-Start: bluetooth dbus udev | ||
6 | # Required-Stop: $remote_fs $network | ||
7 | # Default-Start: 2 3 4 5 | ||
8 | # Default-Stop: 0 1 6 | ||
9 | # Short-Description: GPS (Global Positioning System) daemon start/stop script | ||
10 | # Description: Start/Stop script for the gpsd service daemon, | ||
11 | # which is able to monitor one or more GPS devices | ||
12 | # connected to a host computer, making all data on | ||
13 | # the location and movements of the sensors available | ||
14 | # to be queried on TCP port 2947. | ||
15 | ### END INIT INFO | ||
16 | |||
17 | # Author: Bernd Zeimetz <bzed@debian.org> | ||
18 | # | ||
19 | # Please remove the "Author" lines above and replace them | ||
20 | # with your own name if you copy and modify this script. | ||
21 | |||
22 | # Do NOT "set -e" | ||
23 | |||
24 | # PATH should only include /usr/* if it runs after the mountnfs.sh script | ||
25 | PATH=/sbin:/usr/sbin:/bin:/usr/bin | ||
26 | DESC="GPS (Global Positioning System) daemon" | ||
27 | NAME=gpsd | ||
28 | DAEMON=/usr/sbin/$NAME | ||
29 | PIDFILE=/var/run/$NAME.pid | ||
30 | SCRIPTNAME=/etc/init.d/$NAME | ||
31 | |||
32 | # Exit if the package is not installed | ||
33 | [ -x "$DAEMON" ] || exit 0 | ||
34 | |||
35 | # Read configuration, if present | ||
36 | [ -r /etc/default/$NAME ] && . /etc/default/$NAME | ||
37 | |||
38 | if [ -z "$GPSD_SOCKET" ] && [ -z "$DEVICES" ]; then | ||
39 | GPSD_SOCKET=/var/run/gpsd.sock | ||
40 | fi | ||
41 | |||
42 | if [ -n "$GPSD_SOCKET" ]; then | ||
43 | GPSD_OPTIONS="$GPSD_OPTIONS -F $GPSD_SOCKET" | ||
44 | fi | ||
45 | |||
46 | # | ||
47 | # Function that starts the daemon/service | ||
48 | # | ||
49 | do_start() | ||
50 | { | ||
51 | # Return | ||
52 | # 0 if daemon has been started | ||
53 | # 1 if daemon was already running | ||
54 | # 2 if daemon could not be started | ||
55 | start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test \ | ||
56 | -- $GPSD_OPTIONS -P $PIDFILE $GPS_DEVICES > /dev/null \ | ||
57 | || return 1 | ||
58 | start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ | ||
59 | $GPSD_OPTIONS -P $PIDFILE $GPS_DEVICES \ | ||
60 | || return 2 | ||
61 | } | ||
62 | |||
63 | # | ||
64 | # Function that stops the daemon/service | ||
65 | # | ||
66 | do_stop() | ||
67 | { | ||
68 | # Return | ||
69 | # 0 if daemon has been stopped | ||
70 | # 1 if daemon was already stopped | ||
71 | # 2 if daemon could not be stopped | ||
72 | # other if a failure occurred | ||
73 | start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME | ||
74 | RETVAL="$?" | ||
75 | [ "$RETVAL" = 2 ] && return 2 | ||
76 | # Many daemons don't delete their pidfiles when they exit. | ||
77 | rm -f $PIDFILE | ||
78 | return "$RETVAL" | ||
79 | } | ||
80 | |||
81 | # | ||
82 | # Function that sends a SIGHUP to the daemon/service | ||
83 | # | ||
84 | do_reload() { | ||
85 | # | ||
86 | # If the daemon can reload its configuration without | ||
87 | # restarting (for example, when it is sent a SIGHUP), | ||
88 | # then implement that here. | ||
89 | # | ||
90 | start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME | ||
91 | return 0 | ||
92 | } | ||
93 | |||
94 | case "$1" in | ||
95 | start) | ||
96 | echo "Starting $DESC" "$NAME" | ||
97 | do_start | ||
98 | return $? | ||
99 | ;; | ||
100 | stop) | ||
101 | echo "Stopping $DESC" "$NAME" | ||
102 | do_stop | ||
103 | return $? | ||
104 | ;; | ||
105 | status) | ||
106 | ;; | ||
107 | reload|force-reload) | ||
108 | echo "Reloading $DESC" "$NAME" | ||
109 | do_reload | ||
110 | return $? | ||
111 | ;; | ||
112 | restart) | ||
113 | # | ||
114 | # If the "reload" option is implemented then remove the | ||
115 | # 'force-reload' alias | ||
116 | # | ||
117 | echo "Restarting $DESC" "$NAME" | ||
118 | do_stop | ||
119 | case "$?" in | ||
120 | 0|1) | ||
121 | do_start | ||
122 | return $? | ||
123 | ;; | ||
124 | *) | ||
125 | # Failed to stop | ||
126 | return 1 | ||
127 | ;; | ||
128 | esac | ||
129 | ;; | ||
130 | *) | ||
131 | echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 | ||
132 | exit 3 | ||
133 | ;; | ||
134 | esac | ||
135 | |||
136 | : | ||
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd-2.95/gpsd-default b/meta-oe/recipes-navigation/gpsd/gpsd-2.95/gpsd-default new file mode 100644 index 000000000..0ceff0382 --- /dev/null +++ b/meta-oe/recipes-navigation/gpsd/gpsd-2.95/gpsd-default | |||
@@ -0,0 +1,5 @@ | |||
1 | # If you must specify a non-NMEA driver, uncomment and modify the next line | ||
2 | GPSD_SOCKET="/var/run/gpsd.sock" | ||
3 | GPSD_OPTIONS="" | ||
4 | GPS_DEVICES="" | ||
5 | |||
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd-2.95/libtool.patch b/meta-oe/recipes-navigation/gpsd/gpsd-2.95/libtool.patch new file mode 100644 index 000000000..7b78a72d8 --- /dev/null +++ b/meta-oe/recipes-navigation/gpsd/gpsd-2.95/libtool.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | Index: gpsd-2.95/Makefile.am | ||
2 | =================================================================== | ||
3 | --- gpsd-2.95.orig/Makefile.am 2010-08-26 15:31:38.804330723 +0200 | ||
4 | +++ gpsd-2.95/Makefile.am 2010-08-26 15:31:57.170020341 +0200 | ||
5 | @@ -253,9 +253,9 @@ | ||
6 | # Warning: This overrides autoconf's normal link-line generation process | ||
7 | if LIBGPSMM_ENABLE | ||
8 | libgps_la_SOURCES += libgpsmm.cpp | ||
9 | -libgps_la_LINK = /bin/sh ./libtool --tag=CXX --mode=link g++ $(libgps_la_LDFLAGS) -o $@ | ||
10 | +libgps_la_LINK = $(LIBTOOL) --tag=CXX --mode=link g++ $(libgps_la_LDFLAGS) -o $@ | ||
11 | else | ||
12 | -libgps_la_LINK = /bin/sh ./libtool --tag=CC --mode=link gcc $(libgps_la_LDFLAGS) -o $@ | ||
13 | +libgps_la_LINK = $(LIBTOOL) --tag=CC --mode=link gcc $(libgps_la_LDFLAGS) -o $@ | ||
14 | endif | ||
15 | |||
16 | nodist_libgpsd_la_SOURCES = packet_names.h ais_json.i | ||
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_2.95.bb b/meta-oe/recipes-navigation/gpsd/gpsd_2.95.bb new file mode 100644 index 000000000..a6741192a --- /dev/null +++ b/meta-oe/recipes-navigation/gpsd/gpsd_2.95.bb | |||
@@ -0,0 +1,102 @@ | |||
1 | DESCRIPTION = "A TCP/IP Daemon simplifying the communication with GPS devices" | ||
2 | SECTION = "console/network" | ||
3 | PRIORITY = "optional" | ||
4 | LICENSE = "BSD" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d217a23f408e91c94359447735bc1800" | ||
6 | DEPENDS = "dbus-glib ncurses python libusb1" | ||
7 | PROVIDES = "virtual/gpsd" | ||
8 | |||
9 | EXTRA_OECONF = "--x-includes=${STAGING_INCDIR}/X11 \ | ||
10 | --x-libraries=${STAGING_LIBDIR} \ | ||
11 | --enable-dbus \ | ||
12 | --disable-libQgpsmm \ | ||
13 | " | ||
14 | |||
15 | SRC_URI = "http://download.berlios.de/${PN}/${P}.tar.gz;name=gpsd \ | ||
16 | file://libtool.patch \ | ||
17 | file://gpsd-default \ | ||
18 | file://gpsd \ | ||
19 | file://60-gpsd.rules" | ||
20 | SRC_URI[gpsd.md5sum] = "12535a9ed9fecf9ea2c5bdc9840da5ae" | ||
21 | SRC_URI[gpsd.sha256sum] = "832343a53921a8371efa540ba57c91dadedda445e571c1beb97c06539ef450ae" | ||
22 | |||
23 | inherit autotools update-rc.d python-dir | ||
24 | |||
25 | INITSCRIPT_NAME = "gpsd" | ||
26 | INITSCRIPT_PARAMS = "defaults 35" | ||
27 | |||
28 | LDFLAGS += "-L${STAGING_LIBDIR} -lm" | ||
29 | export STAGING_INCDIR | ||
30 | export STAGING_LIBDIR | ||
31 | |||
32 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
33 | |||
34 | do_configure_prepend() { | ||
35 | # skip first | ||
36 | sed -i "s#for pylibpath in '/usr/lib'#for pylibpath in #g" ${S}/configure.ac | ||
37 | } | ||
38 | |||
39 | do_compile_prepend() { | ||
40 | export BUILD_SYS="${BUILD_SYS}" | ||
41 | export HOST_SYS="${HOST_SYS}" | ||
42 | find ${S} -name "*.so" -exec rm -f {} \; | ||
43 | } | ||
44 | |||
45 | do_install_prepend() { | ||
46 | export BUILD_SYS="${BUILD_SYS}" | ||
47 | export HOST_SYS="${HOST_SYS}" | ||
48 | } | ||
49 | |||
50 | do_install_append() { | ||
51 | install -d ${D}/${sysconfdir}/init.d | ||
52 | install -m 0755 ${WORKDIR}/gpsd ${D}/${sysconfdir}/init.d/ | ||
53 | install -d ${D}/${sysconfdir}/default | ||
54 | install -m 0644 ${WORKDIR}/gpsd-default ${D}/${sysconfdir}/default/gpsd.default | ||
55 | |||
56 | #support for udev | ||
57 | install -d ${D}/${sysconfdir}/udev/rules.d | ||
58 | install -m 0644 ${WORKDIR}/60-gpsd.rules ${D}/${sysconfdir}/udev/rules.d | ||
59 | install -d ${D}${base_libdir}/udev/ | ||
60 | install -m 0755 ${S}/gpsd.hotplug ${D}${base_libdir}/udev/ | ||
61 | install -d ${D}${base_libdir}/udev/ | ||
62 | install -m 0755 ${S}/gpsd.hotplug.wrapper ${D}${base_libdir}/udev/ | ||
63 | } | ||
64 | |||
65 | pkg_postinst_${PN}-conf() { | ||
66 | update-alternatives --install ${sysconfdir}/default/gpsd gpsd-defaults ${sysconfdir}/default/gpsd.default 10 | ||
67 | } | ||
68 | |||
69 | pkg_postrm_${PN}-conf() { | ||
70 | update-alternatives --remove gpsd-defaults ${sysconfdir}/default/gpsd.default | ||
71 | } | ||
72 | |||
73 | PACKAGES =+ "libgps libgpsd python-pygps-dbg python-pygps gpsd-udev gpsd-conf gpsd-gpsctl gps-utils" | ||
74 | |||
75 | FILES_python-pygps-dbg += " ${libdir}/python*/site-packages/gps/.debug" | ||
76 | |||
77 | RDEPENDS_${PN} = "gpsd-gpsctl" | ||
78 | RRECOMMENDS_${PN} = "gpsd-conf gpsd-udev" | ||
79 | |||
80 | DESCRIPTION_gpsd-udev = "udev relevant files to use gpsd hotplugging" | ||
81 | FILES_gpsd-udev = "${base_libdir}/* ${sysconfdir}/udev/*" | ||
82 | RDEPENDS_gpsd-udev += "udev gpsd-conf" | ||
83 | |||
84 | DESCRIPTION_libgpsd = "C service library used for communicating with gpsd" | ||
85 | FILES_libgpsd = "${libdir}/libgpsd.so.*" | ||
86 | |||
87 | DESCRIPTION_libgps = "C service library used for communicating with gpsd" | ||
88 | FILES_libgps = "${libdir}/libgps.so.*" | ||
89 | |||
90 | DESCRIPTION_gpsd-conf = "gpsd configuration files and init scripts" | ||
91 | FILES_gpsd-conf = "${sysconfdir}" | ||
92 | |||
93 | DESCRIPTION_gpsd-gpsctl = "Tool for tweaking GPS modes" | ||
94 | FILES_gpsd-gpsctl = "${bindir}/gpsctl" | ||
95 | |||
96 | DESCRIPTION_gps-utils = "Utils used for simulating, monitoring,... a GPS" | ||
97 | FILES_gps-utils = "${bindir}/*" | ||
98 | RDEPENDS_gps-utils = "python-pygps" | ||
99 | |||
100 | DESCRIPTION_python-pygps = "Python bindings to gpsd" | ||
101 | FILES_python-pygps = "${PYTHON_SITEPACKAGES_DIR}/*" | ||
102 | RDEPENDS_python-pygps = "python-core python-curses gpsd python-json" | ||
diff --git a/meta-oe/recipes-navigation/navit/navit-fpu.inc b/meta-oe/recipes-navigation/navit/navit-fpu.inc new file mode 100644 index 000000000..d333b9200 --- /dev/null +++ b/meta-oe/recipes-navigation/navit/navit-fpu.inc | |||
@@ -0,0 +1,6 @@ | |||
1 | |||
2 | def get_navit_fpu_setting(bb, d): | ||
3 | if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]: | ||
4 | return "--enable-avoid-float" | ||
5 | return "" | ||
6 | |||
diff --git a/meta-oe/recipes-navigation/navit/navit-icons/GPL-2 b/meta-oe/recipes-navigation/navit/navit-icons/GPL-2 new file mode 100644 index 000000000..d511905c1 --- /dev/null +++ b/meta-oe/recipes-navigation/navit/navit-icons/GPL-2 | |||
@@ -0,0 +1,339 @@ | |||
1 | GNU GENERAL PUBLIC LICENSE | ||
2 | Version 2, June 1991 | ||
3 | |||
4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., | ||
5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
6 | Everyone is permitted to copy and distribute verbatim copies | ||
7 | of this license document, but changing it is not allowed. | ||
8 | |||
9 | Preamble | ||
10 | |||
11 | The licenses for most software are designed to take away your | ||
12 | freedom to share and change it. By contrast, the GNU General Public | ||
13 | License is intended to guarantee your freedom to share and change free | ||
14 | software--to make sure the software is free for all its users. This | ||
15 | General Public License applies to most of the Free Software | ||
16 | Foundation's software and to any other program whose authors commit to | ||
17 | using it. (Some other Free Software Foundation software is covered by | ||
18 | the GNU Lesser General Public License instead.) You can apply it to | ||
19 | your programs, too. | ||
20 | |||
21 | When we speak of free software, we are referring to freedom, not | ||
22 | price. Our General Public Licenses are designed to make sure that you | ||
23 | have the freedom to distribute copies of free software (and charge for | ||
24 | this service if you wish), that you receive source code or can get it | ||
25 | if you want it, that you can change the software or use pieces of it | ||
26 | in new free programs; and that you know you can do these things. | ||
27 | |||
28 | To protect your rights, we need to make restrictions that forbid | ||
29 | anyone to deny you these rights or to ask you to surrender the rights. | ||
30 | These restrictions translate to certain responsibilities for you if you | ||
31 | distribute copies of the software, or if you modify it. | ||
32 | |||
33 | For example, if you distribute copies of such a program, whether | ||
34 | gratis or for a fee, you must give the recipients all the rights that | ||
35 | you have. You must make sure that they, too, receive or can get the | ||
36 | source code. And you must show them these terms so they know their | ||
37 | rights. | ||
38 | |||
39 | We protect your rights with two steps: (1) copyright the software, and | ||
40 | (2) offer you this license which gives you legal permission to copy, | ||
41 | distribute and/or modify the software. | ||
42 | |||
43 | Also, for each author's protection and ours, we want to make certain | ||
44 | that everyone understands that there is no warranty for this free | ||
45 | software. If the software is modified by someone else and passed on, we | ||
46 | want its recipients to know that what they have is not the original, so | ||
47 | that any problems introduced by others will not reflect on the original | ||
48 | authors' reputations. | ||
49 | |||
50 | Finally, any free program is threatened constantly by software | ||
51 | patents. We wish to avoid the danger that redistributors of a free | ||
52 | program will individually obtain patent licenses, in effect making the | ||
53 | program proprietary. To prevent this, we have made it clear that any | ||
54 | patent must be licensed for everyone's free use or not licensed at all. | ||
55 | |||
56 | The precise terms and conditions for copying, distribution and | ||
57 | modification follow. | ||
58 | |||
59 | GNU GENERAL PUBLIC LICENSE | ||
60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | ||
61 | |||
62 | 0. This License applies to any program or other work which contains | ||
63 | a notice placed by the copyright holder saying it may be distributed | ||
64 | under the terms of this General Public License. The "Program", below, | ||
65 | refers to any such program or work, and a "work based on the Program" | ||
66 | means either the Program or any derivative work under copyright law: | ||
67 | that is to say, a work containing the Program or a portion of it, | ||
68 | either verbatim or with modifications and/or translated into another | ||
69 | language. (Hereinafter, translation is included without limitation in | ||
70 | the term "modification".) Each licensee is addressed as "you". | ||
71 | |||
72 | Activities other than copying, distribution and modification are not | ||
73 | covered by this License; they are outside its scope. The act of | ||
74 | running the Program is not restricted, and the output from the Program | ||
75 | is covered only if its contents constitute a work based on the | ||
76 | Program (independent of having been made by running the Program). | ||
77 | Whether that is true depends on what the Program does. | ||
78 | |||
79 | 1. You may copy and distribute verbatim copies of the Program's | ||
80 | source code as you receive it, in any medium, provided that you | ||
81 | conspicuously and appropriately publish on each copy an appropriate | ||
82 | copyright notice and disclaimer of warranty; keep intact all the | ||
83 | notices that refer to this License and to the absence of any warranty; | ||
84 | and give any other recipients of the Program a copy of this License | ||
85 | along with the Program. | ||
86 | |||
87 | You may charge a fee for the physical act of transferring a copy, and | ||
88 | you may at your option offer warranty protection in exchange for a fee. | ||
89 | |||
90 | 2. You may modify your copy or copies of the Program or any portion | ||
91 | of it, thus forming a work based on the Program, and copy and | ||
92 | distribute such modifications or work under the terms of Section 1 | ||
93 | above, provided that you also meet all of these conditions: | ||
94 | |||
95 | a) You must cause the modified files to carry prominent notices | ||
96 | stating that you changed the files and the date of any change. | ||
97 | |||
98 | b) You must cause any work that you distribute or publish, that in | ||
99 | whole or in part contains or is derived from the Program or any | ||
100 | part thereof, to be licensed as a whole at no charge to all third | ||
101 | parties under the terms of this License. | ||
102 | |||
103 | c) If the modified program normally reads commands interactively | ||
104 | when run, you must cause it, when started running for such | ||
105 | interactive use in the most ordinary way, to print or display an | ||
106 | announcement including an appropriate copyright notice and a | ||
107 | notice that there is no warranty (or else, saying that you provide | ||
108 | a warranty) and that users may redistribute the program under | ||
109 | these conditions, and telling the user how to view a copy of this | ||
110 | License. (Exception: if the Program itself is interactive but | ||
111 | does not normally print such an announcement, your work based on | ||
112 | the Program is not required to print an announcement.) | ||
113 | |||
114 | These requirements apply to the modified work as a whole. If | ||
115 | identifiable sections of that work are not derived from the Program, | ||
116 | and can be reasonably considered independent and separate works in | ||
117 | themselves, then this License, and its terms, do not apply to those | ||
118 | sections when you distribute them as separate works. But when you | ||
119 | distribute the same sections as part of a whole which is a work based | ||
120 | on the Program, the distribution of the whole must be on the terms of | ||
121 | this License, whose permissions for other licensees extend to the | ||
122 | entire whole, and thus to each and every part regardless of who wrote it. | ||
123 | |||
124 | Thus, it is not the intent of this section to claim rights or contest | ||
125 | your rights to work written entirely by you; rather, the intent is to | ||
126 | exercise the right to control the distribution of derivative or | ||
127 | collective works based on the Program. | ||
128 | |||
129 | In addition, mere aggregation of another work not based on the Program | ||
130 | with the Program (or with a work based on the Program) on a volume of | ||
131 | a storage or distribution medium does not bring the other work under | ||
132 | the scope of this License. | ||
133 | |||
134 | 3. You may copy and distribute the Program (or a work based on it, | ||
135 | under Section 2) in object code or executable form under the terms of | ||
136 | Sections 1 and 2 above provided that you also do one of the following: | ||
137 | |||
138 | a) Accompany it with the complete corresponding machine-readable | ||
139 | source code, which must be distributed under the terms of Sections | ||
140 | 1 and 2 above on a medium customarily used for software interchange; or, | ||
141 | |||
142 | b) Accompany it with a written offer, valid for at least three | ||
143 | years, to give any third party, for a charge no more than your | ||
144 | cost of physically performing source distribution, a complete | ||
145 | machine-readable copy of the corresponding source code, to be | ||
146 | distributed under the terms of Sections 1 and 2 above on a medium | ||
147 | customarily used for software interchange; or, | ||
148 | |||
149 | c) Accompany it with the information you received as to the offer | ||
150 | to distribute corresponding source code. (This alternative is | ||
151 | allowed only for noncommercial distribution and only if you | ||
152 | received the program in object code or executable form with such | ||
153 | an offer, in accord with Subsection b above.) | ||
154 | |||
155 | The source code for a work means the preferred form of the work for | ||
156 | making modifications to it. For an executable work, complete source | ||
157 | code means all the source code for all modules it contains, plus any | ||
158 | associated interface definition files, plus the scripts used to | ||
159 | control compilation and installation of the executable. However, as a | ||
160 | special exception, the source code distributed need not include | ||
161 | anything that is normally distributed (in either source or binary | ||
162 | form) with the major components (compiler, kernel, and so on) of the | ||
163 | operating system on which the executable runs, unless that component | ||
164 | itself accompanies the executable. | ||
165 | |||
166 | If distribution of executable or object code is made by offering | ||
167 | access to copy from a designated place, then offering equivalent | ||
168 | access to copy the source code from the same place counts as | ||
169 | distribution of the source code, even though third parties are not | ||
170 | compelled to copy the source along with the object code. | ||
171 | |||
172 | 4. You may not copy, modify, sublicense, or distribute the Program | ||
173 | except as expressly provided under this License. Any attempt | ||
174 | otherwise to copy, modify, sublicense or distribute the Program is | ||
175 | void, and will automatically terminate your rights under this License. | ||
176 | However, parties who have received copies, or rights, from you under | ||
177 | this License will not have their licenses terminated so long as such | ||
178 | parties remain in full compliance. | ||
179 | |||
180 | 5. You are not required to accept this License, since you have not | ||
181 | signed it. However, nothing else grants you permission to modify or | ||
182 | distribute the Program or its derivative works. These actions are | ||
183 | prohibited by law if you do not accept this License. Therefore, by | ||
184 | modifying or distributing the Program (or any work based on the | ||
185 | Program), you indicate your acceptance of this License to do so, and | ||
186 | all its terms and conditions for copying, distributing or modifying | ||
187 | the Program or works based on it. | ||
188 | |||
189 | 6. Each time you redistribute the Program (or any work based on the | ||
190 | Program), the recipient automatically receives a license from the | ||
191 | original licensor to copy, distribute or modify the Program subject to | ||
192 | these terms and conditions. You may not impose any further | ||
193 | restrictions on the recipients' exercise of the rights granted herein. | ||
194 | You are not responsible for enforcing compliance by third parties to | ||
195 | this License. | ||
196 | |||
197 | 7. If, as a consequence of a court judgment or allegation of patent | ||
198 | infringement or for any other reason (not limited to patent issues), | ||
199 | conditions are imposed on you (whether by court order, agreement or | ||
200 | otherwise) that contradict the conditions of this License, they do not | ||
201 | excuse you from the conditions of this License. If you cannot | ||
202 | distribute so as to satisfy simultaneously your obligations under this | ||
203 | License and any other pertinent obligations, then as a consequence you | ||
204 | may not distribute the Program at all. For example, if a patent | ||
205 | license would not permit royalty-free redistribution of the Program by | ||
206 | all those who receive copies directly or indirectly through you, then | ||
207 | the only way you could satisfy both it and this License would be to | ||
208 | refrain entirely from distribution of the Program. | ||
209 | |||
210 | If any portion of this section is held invalid or unenforceable under | ||
211 | any particular circumstance, the balance of the section is intended to | ||
212 | apply and the section as a whole is intended to apply in other | ||
213 | circumstances. | ||
214 | |||
215 | It is not the purpose of this section to induce you to infringe any | ||
216 | patents or other property right claims or to contest validity of any | ||
217 | such claims; this section has the sole purpose of protecting the | ||
218 | integrity of the free software distribution system, which is | ||
219 | implemented by public license practices. Many people have made | ||
220 | generous contributions to the wide range of software distributed | ||
221 | through that system in reliance on consistent application of that | ||
222 | system; it is up to the author/donor to decide if he or she is willing | ||
223 | to distribute software through any other system and a licensee cannot | ||
224 | impose that choice. | ||
225 | |||
226 | This section is intended to make thoroughly clear what is believed to | ||
227 | be a consequence of the rest of this License. | ||
228 | |||
229 | 8. If the distribution and/or use of the Program is restricted in | ||
230 | certain countries either by patents or by copyrighted interfaces, the | ||
231 | original copyright holder who places the Program under this License | ||
232 | may add an explicit geographical distribution limitation excluding | ||
233 | those countries, so that distribution is permitted only in or among | ||
234 | countries not thus excluded. In such case, this License incorporates | ||
235 | the limitation as if written in the body of this License. | ||
236 | |||
237 | 9. The Free Software Foundation may publish revised and/or new versions | ||
238 | of the General Public License from time to time. Such new versions will | ||
239 | be similar in spirit to the present version, but may differ in detail to | ||
240 | address new problems or concerns. | ||
241 | |||
242 | Each version is given a distinguishing version number. If the Program | ||
243 | specifies a version number of this License which applies to it and "any | ||
244 | later version", you have the option of following the terms and conditions | ||
245 | either of that version or of any later version published by the Free | ||
246 | Software Foundation. If the Program does not specify a version number of | ||
247 | this License, you may choose any version ever published by the Free Software | ||
248 | Foundation. | ||
249 | |||
250 | 10. If you wish to incorporate parts of the Program into other free | ||
251 | programs whose distribution conditions are different, write to the author | ||
252 | to ask for permission. For software which is copyrighted by the Free | ||
253 | Software Foundation, write to the Free Software Foundation; we sometimes | ||
254 | make exceptions for this. Our decision will be guided by the two goals | ||
255 | of preserving the free status of all derivatives of our free software and | ||
256 | of promoting the sharing and reuse of software generally. | ||
257 | |||
258 | NO WARRANTY | ||
259 | |||
260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY | ||
261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN | ||
262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES | ||
263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED | ||
264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS | ||
266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE | ||
267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, | ||
268 | REPAIR OR CORRECTION. | ||
269 | |||
270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING | ||
271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR | ||
272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, | ||
273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING | ||
274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED | ||
275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY | ||
276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER | ||
277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE | ||
278 | POSSIBILITY OF SUCH DAMAGES. | ||
279 | |||
280 | END OF TERMS AND CONDITIONS | ||
281 | |||
282 | How to Apply These Terms to Your New Programs | ||
283 | |||
284 | If you develop a new program, and you want it to be of the greatest | ||
285 | possible use to the public, the best way to achieve this is to make it | ||
286 | free software which everyone can redistribute and change under these terms. | ||
287 | |||
288 | To do so, attach the following notices to the program. It is safest | ||
289 | to attach them to the start of each source file to most effectively | ||
290 | convey the exclusion of warranty; and each file should have at least | ||
291 | the "copyright" line and a pointer to where the full notice is found. | ||
292 | |||
293 | <one line to give the program's name and a brief idea of what it does.> | ||
294 | Copyright (C) <year> <name of author> | ||
295 | |||
296 | This program is free software; you can redistribute it and/or modify | ||
297 | it under the terms of the GNU General Public License as published by | ||
298 | the Free Software Foundation; either version 2 of the License, or | ||
299 | (at your option) any later version. | ||
300 | |||
301 | This program is distributed in the hope that it will be useful, | ||
302 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
304 | GNU General Public License for more details. | ||
305 | |||
306 | You should have received a copy of the GNU General Public License along | ||
307 | with this program; if not, write to the Free Software Foundation, Inc., | ||
308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
309 | |||
310 | Also add information on how to contact you by electronic and paper mail. | ||
311 | |||
312 | If the program is interactive, make it output a short notice like this | ||
313 | when it starts in an interactive mode: | ||
314 | |||
315 | Gnomovision version 69, Copyright (C) year name of author | ||
316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. | ||
317 | This is free software, and you are welcome to redistribute it | ||
318 | under certain conditions; type `show c' for details. | ||
319 | |||
320 | The hypothetical commands `show w' and `show c' should show the appropriate | ||
321 | parts of the General Public License. Of course, the commands you use may | ||
322 | be called something other than `show w' and `show c'; they could even be | ||
323 | mouse-clicks or menu items--whatever suits your program. | ||
324 | |||
325 | You should also get your employer (if you work as a programmer) or your | ||
326 | school, if any, to sign a "copyright disclaimer" for the program, if | ||
327 | necessary. Here is a sample; alter the names: | ||
328 | |||
329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program | ||
330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. | ||
331 | |||
332 | <signature of Ty Coon>, 1 April 1989 | ||
333 | Ty Coon, President of Vice | ||
334 | |||
335 | This General Public License does not permit incorporating your program into | ||
336 | proprietary programs. If your program is a subroutine library, you may | ||
337 | consider it more useful to permit linking proprietary applications with the | ||
338 | library. If this is what you want to do, use the GNU Lesser General | ||
339 | Public License instead of this License. | ||
diff --git a/meta-oe/recipes-navigation/navit/navit-icons/configure.in b/meta-oe/recipes-navigation/navit/navit-icons/configure.in new file mode 100644 index 000000000..4ffc7b0a2 --- /dev/null +++ b/meta-oe/recipes-navigation/navit/navit-icons/configure.in | |||
@@ -0,0 +1,70 @@ | |||
1 | AC_INIT(navit, 0.2.0) | ||
2 | SOURCE_MODE=svn | ||
3 | |||
4 | AM_INIT_AUTOMAKE | ||
5 | AM_CONFIG_HEADER(config.h) | ||
6 | |||
7 | AC_SUBST(SOURCE_MODE) | ||
8 | AM_CONDITIONAL(SOURCE_MODE_SVN, [test "x${SOURCE_MODE}" = "xsvn"]) | ||
9 | |||
10 | if test "x${SOURCE_MODE}" = "xsvn" ; then | ||
11 | USE_MAINTAINER_MODE=yes | ||
12 | else | ||
13 | USE_MAINTAINER_MODE=no | ||
14 | fi | ||
15 | |||
16 | AC_DEFUN([AM_MAINTAINER_MODE], | ||
17 | [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) | ||
18 | dnl maintainer-mode is enabled by default (reason of inclusion of this function) | ||
19 | AC_ARG_ENABLE(maintainer-mode, | ||
20 | [ --enable-maintainer-mode enable make rules and dependencies not useful | ||
21 | (and sometimes confusing) to the casual installer], | ||
22 | USE_MAINTAINER_MODE=$enableval) | ||
23 | AC_MSG_RESULT([$USE_MAINTAINER_MODE]) | ||
24 | AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) | ||
25 | MAINT=$MAINTAINER_MODE_TRUE | ||
26 | AC_SUBST(MAINT)dnl | ||
27 | ] | ||
28 | ) | ||
29 | |||
30 | AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) | ||
31 | |||
32 | AM_MAINTAINER_MODE | ||
33 | |||
34 | # svg | ||
35 | AC_ARG_ENABLE(svg, [ --disable-svg disable Scalable Vector Graphics], enable_svg=$enableval, enable_svg=yes) | ||
36 | AC_ARG_ENABLE(svg2png, [ --disable-svg2png disable conversion of svgs to pngs], enable_svg2png=$enableval, enable_svg2png=yes) | ||
37 | AC_ARG_ENABLE(svg2png-scaling, [ --enable-svg2png-scaling enable conversion of svgs to pngs with specified sizes], SVG2PNG_SCALES=$enableval, SVG2PNG_SCALES="8 16 32 48 96") | ||
38 | AC_ARG_ENABLE(svg2png-scaling-flag, [ --enable-svg2png-scaling-flag enable conversion of flag svgs to pngs with specified sizes], SVG2PNG_SCALES_FLAG=$enableval, SVG2PNG_SCALES_FLAG="8 16 32 48 96") | ||
39 | AC_ARG_ENABLE(svg2png-scaling-nav, [ --enable-svg2png-scaling-nav enable conversion of nav svgs to pngs with specified sizes], SVG2PNG_SCALES_NAV=$enableval, SVG2PNG_SCALES_NAV="8 16 32 48 96") | ||
40 | AC_ARG_WITH(svg2png-use-convert, [ --with-svg2png-use-convert use imagemagick's convert for png creation], SVG2PNG_CONVERTER="convert") | ||
41 | AC_ARG_WITH(svg2png-use-rsvg-convert, [ --with-svg2png-use-rsvg-convert use librsvg's rsvg-convert for png creation], SVG2PNG_CONVERTER="rsvg-convert") | ||
42 | AC_ARG_WITH(svg2png-use-inkscape, [ --with-svg2png-use-inkscape use inkscapes internal convert routines for png creation], SVG2PNG_CONVERTER="inkscape") | ||
43 | AC_ARG_WITH(svg2png-use-ksvgtopng4, [ --with-svg2png-use-ksvgtopng4 use kde4's ksvgtopng4 for png creation], SVG2PNG_CONVERTER="ksvgtopng4") | ||
44 | AC_ARG_WITH(svg2png-use-ksvgtopng, [ --with-svg2png-use-ksvgtopng use kde3's convert for png creation], SVG2PNG_CONVERTER="ksvgtopng") | ||
45 | if test "x${enable_svg2png}" = "xyes" ; then | ||
46 | if test "x${SVG2PNG_CONVERTER}" = "x"; then | ||
47 | SVG2PNG_CONVERTER="ksvgtopng ksvgtopng4 rsvg-convert inkscape convert" | ||
48 | fi | ||
49 | AC_PATH_PROGS([SVG2PNG], ${SVG2PNG_CONVERTER}, [none]) | ||
50 | if test "x${SVG2PNG}" = "xnone"; then | ||
51 | enable_svg2png="no" | ||
52 | fi | ||
53 | fi | ||
54 | AC_SUBST(SVG2PNG) | ||
55 | AC_SUBST(SVG2PNG_SCALES) | ||
56 | AC_SUBST(SVG2PNG_SCALES_FLAG) | ||
57 | AC_SUBST(SVG2PNG_SCALES_NAV) | ||
58 | AM_CONDITIONAL(USE_SVG2PNG_SCALES, test "x${SVG2PNG_SCALES}" != "xyes" -a "x${SVG2PNG_SCALES}" != "x") | ||
59 | AM_CONDITIONAL(USE_SVG2PNG_SCALES_FLAG, test "x${SVG2PNG_SCALES_FLAG}" != "xyes" -a "x${SVG2PNG_SCALES_FLAG}" != "x") | ||
60 | AM_CONDITIONAL(USE_SVG2PNG_SCALES_NAV, test "x${SVG2PNG_SCALES_NAV}" != "xyes" -a "x${SVG2PNG_SCALES_NAV}" != "x") | ||
61 | AM_CONDITIONAL(USE_SVG2PNG, test "x${enable_svg2png}" = "xyes") | ||
62 | AM_CONDITIONAL(USE_SVG, test "x${enable_svg}" = "xyes") | ||
63 | AM_CONDITIONAL(SUPPORT_WIN32, [test "x$win32" = "xyes"]) | ||
64 | |||
65 | AC_CONFIG_FILES([ | ||
66 | Makefile | ||
67 | ]) | ||
68 | |||
69 | AC_OUTPUT | ||
70 | |||
diff --git a/meta-oe/recipes-navigation/navit/navit-icons_svn.bb b/meta-oe/recipes-navigation/navit/navit-icons_svn.bb new file mode 100644 index 000000000..116ff4397 --- /dev/null +++ b/meta-oe/recipes-navigation/navit/navit-icons_svn.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | DESCRIPTION = "Navit is a car navigation system with routing engine." | ||
2 | LICENSE = "GPLv2" | ||
3 | # taken from main navit package | ||
4 | LIC_FILES_CHKSUM = "file://${WORKDIR}/GPL-2;md5=751419260aa954499f7abaabaa882bbe" | ||
5 | SECTION = "x11/applications" | ||
6 | DEPENDS = "glib-2.0 gtk+ imagemagick-native librsvg-native" | ||
7 | |||
8 | #only icons present in the package | ||
9 | PACKAGE_ARCH = "all" | ||
10 | |||
11 | PV = "0.1.0+svnr${SRCPV}" | ||
12 | PR = "r2" | ||
13 | |||
14 | EXTRA_OECONF = "--disable-binding-python --disable-gui-sdl --disable-samplemap --enable-avoid-float --enable-avoid-unaligned --enable-svg2png-scaling-flag=32 --disable-speech-speech-dispatcher" | ||
15 | |||
16 | S = "${WORKDIR}/xpm" | ||
17 | |||
18 | inherit autotools | ||
19 | |||
20 | FILES_${PN} = " /usr/share/navit/xpm/" | ||
21 | |||
22 | SRCREV = "3915" | ||
23 | |||
24 | #use different URL than navit_svn does, to prevent upgrade/downgrade cycle in downloads dir | ||
25 | SRC_URI = "svn://anonymous@navit.svn.sourceforge.net/svnroot/navit/trunk/navit/navit;module=xpm;proto=https \ | ||
26 | file://GPL-2 \ | ||
27 | file://configure.in" | ||
28 | |||
29 | do_configure_prepend() { | ||
30 | cp ${WORKDIR}/configure.in ${S}/ | ||
31 | # replace include with just xpmdir variable | ||
32 | sed -i 's#.*Makefile.inc.*#xpmdir=$(pkgdatadir)/xpm#g' ${S}/Makefile.am | ||
33 | # don't install desktopfile and icons | ||
34 | sed -i 's/^\(EXTRADIST.*\) $(DESKTOPFILE_DATA) $(ICON128_DATA) $(ICON22_DATA) \(.*\)$/\1\2/g' ${S}/Makefile.am | ||
35 | } | ||
diff --git a/meta-oe/recipes-navigation/navit/navit.inc b/meta-oe/recipes-navigation/navit/navit.inc new file mode 100644 index 000000000..25a7b8df0 --- /dev/null +++ b/meta-oe/recipes-navigation/navit/navit.inc | |||
@@ -0,0 +1,93 @@ | |||
1 | DESCRIPTION = "Navit is a car navigation system with routing engine." | ||
2 | LICENSE = "GPLv2 LGPLv2" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=a4c51733b63d82df87995454bdc4b654 \ | ||
4 | file://LGPL-2;md5=3214f080875748938ba060314b4f727d \ | ||
5 | file://GPL-2;md5=751419260aa954499f7abaabaa882bbe \ | ||
6 | " | ||
7 | |||
8 | SECTION = "x11/applications" | ||
9 | DEPENDS = "glib-2.0 gtk+ qt4-x11-free gd gypsy librsvg-native" | ||
10 | RDEPENDS_${PN} = " navit-icons ${PN}-config " | ||
11 | RDEPENDS_${PN}-gui-qml = "qt4-plugin-imageformat-svg" | ||
12 | RRECOMMENDS_${PN} = "gpsd ${PN}-dbus ${PN}-speech-cmdline ${PN}-gui-internal ${PN}-graphics-gtk" | ||
13 | RSUGGESTS_${PN} = "flite-alsa espeak ${PN}-speech-dbus ${PN}-gui-gtk ${PN}-gui-qml ${PN}-graphics-sdl ${PN}-graphics-qt ${PN}-maptool" | ||
14 | |||
15 | PE = "1" | ||
16 | INC_PR = "r8" | ||
17 | |||
18 | inherit autotools gettext | ||
19 | |||
20 | EXTRA_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 | ||
33 | require navit-fpu.inc | ||
34 | EXTRA_OECONF += "${@get_navit_fpu_setting(bb, d)}" | ||
35 | |||
36 | PACKAGES =+ "${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 | |||
38 | EXTRA_AUTORECONF = " -I m4" | ||
39 | |||
40 | CONFFILES_${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 | |||
48 | SRC_URI += "file://navit.xml \ | ||
49 | file://maps.xml \ | ||
50 | file://osd.xml \ | ||
51 | file://speech.xml \ | ||
52 | file://plugins.xml \ | ||
53 | " | ||
54 | |||
55 | FILES_${PN} += "${libdir}/${PN}/*/*.so" | ||
56 | FILES_${PN}-dbg += "${libdir}/${PN}/*/.debug" | ||
57 | FILES_${PN}-maptool = " ${bindir}/maptool " | ||
58 | FILES_${PN}-config = " ${datadir}/navit/*.xml " | ||
59 | FILES_${PN}-dbus = " ${datadir}/dbus-1/services/ ${libdir}/${PN}/binding/libbinding_dbus.so " | ||
60 | FILES_${PN}-speech-cmdline = " ${libdir}/${PN}/speech/libspeech_cmdline.so " | ||
61 | FILES_${PN}-speech-dbus = " ${libdir}/${PN}/speech/libspeech_dbus.so " | ||
62 | FILES_${PN}-gui-gtk = " ${libdir}/${PN}/gui/libgui_gtk.so " | ||
63 | FILES_${PN}-gui-qml = " ${libdir}/${PN}/gui/libgui_qml.so ${datadir}/navit/skins/ " | ||
64 | FILES_${PN}-gui-internal = " ${libdir}/${PN}/gui/libgui_internal.so " | ||
65 | FILES_${PN}-graphics-sdl = " ${libdir}/${PN}/graphics/libgraphics_sdl.so " | ||
66 | FILES_${PN}-graphics-qt = " ${libdir}/${PN}/graphics/libgraphics_qt_qpainter.so " | ||
67 | FILES_${PN}-graphics-gtk = " ${libdir}/${PN}/graphics/libgraphics_gtk_drawing_area.so " | ||
68 | |||
69 | do_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 | |||
76 | do_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 | } | ||
diff --git a/meta-oe/recipes-navigation/navit/navit/maps.xml b/meta-oe/recipes-navigation/navit/navit/maps.xml new file mode 100644 index 000000000..6f59f20c3 --- /dev/null +++ b/meta-oe/recipes-navigation/navit/navit/maps.xml | |||
@@ -0,0 +1,24 @@ | |||
1 | <!-- If you have the reiseplaner maps installed, set enabled="yes" in the next line and set the path correctly --> | ||
2 | <mapset enabled="no"> | ||
3 | <map type="mg" enabled="yes" data="/opt/reiseplaner/travel/DE.map"/> | ||
4 | <map type="mg" enabled="yes" data="/opt/reiseplaner/travel/DE.map/smp1.smp"/> | ||
5 | <map type="mg" enabled="yes" data="/opt/reiseplaner/travel/DE.map/smp2.smp"/> | ||
6 | <map type="mg" enabled="yes" data="/opt/reiseplaner/travel/DE.map/smp3.smp"/> | ||
7 | <map type="mg" enabled="yes" data="/opt/reiseplaner/travel/DE.map/smp4.smp"/> | ||
8 | <map type="mg" enabled="yes" data="/opt/reiseplaner/travel/DE.map/smp5.smp"/> | ||
9 | </mapset> | ||
10 | |||
11 | <!-- If you dont want to use the sample map, either set enabled="no" in the next line or remove the xml file from the maps directory --> | ||
12 | <mapset enabled="no"> | ||
13 | <xi:include href="$NAVIT_SHAREDIR/maps/*.xml"/> | ||
14 | </mapset> | ||
15 | |||
16 | <!-- Mapset template for openstreetmaps --> | ||
17 | <mapset enabled="yes"> | ||
18 | <map type="binfile" enabled="yes" data="/media/mmc2/MapsNavit/osm_europe.bin"/> | ||
19 | </mapset> | ||
20 | |||
21 | <!-- Mapset template for garmin maps --> | ||
22 | <mapset enabled="no"> | ||
23 | <map type="garmin" enabled="yes" data="/path/to/img" debug="4"/> | ||
24 | </mapset> | ||
diff --git a/meta-oe/recipes-navigation/navit/navit/navit.xml b/meta-oe/recipes-navigation/navit/navit/navit.xml new file mode 100644 index 000000000..58c8c226f --- /dev/null +++ b/meta-oe/recipes-navigation/navit/navit/navit.xml | |||
@@ -0,0 +1,45 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <!DOCTYPE config SYSTEM "navit.dtd"> | ||
3 | <config xmlns:xi="http://www.w3.org/2001/XInclude"> | ||
4 | <xi:include href="/usr/share/navit/plugins.xml"/> | ||
5 | <xi:include href="/usr/share/navit/navit.default.xml" xpointer="xpointer(/config/debug)"/> | ||
6 | |||
7 | <navit center="4808 N 1134 E" zoom="256" tracking="1" orientation="-1" recent_dest="10" drag_bitmap="1"> | ||
8 | <graphics type="gtk_drawing_area"/> | ||
9 | <gui type="gtk" enabled="no" menubar="1" toolbar="1" statusbar="1"/> | ||
10 | <xi:include href="/usr/share/navit/navit.default.xml" xpointer="xpointer(/config/navit/gui[@type='internal'])"/> | ||
11 | <!-- or comment gtk version above and try: | ||
12 | opkg install navit-graphics-qt | ||
13 | opkg install navit-gui-qml | ||
14 | <graphics type="qt_qpainter"/> | ||
15 | <gui type="qml" enabled="yes" menubar="1" toolbar="1" statusbar="1"/> | ||
16 | --> | ||
17 | <xi:include href="/usr/share/navit/osd.xml"/> | ||
18 | <log enabled="no" type="textfile_debug" data="debug_%Y%m%d-%i.txt" flush_size="1000" flush_time="30"/> | ||
19 | <vehicle name="Local GPS" profilename="car" enabled="yes" active="1" source="gpsd://localhost" gpsd_query="w+xj"> | ||
20 | <!-- <log type="gpx" attr_types="position_time_iso8601,position_direction,position_speed,profilename,position_radius" data="track_%Y%m%d-%i.gpx" flush_size="1000" flush_time="30"/> --> | ||
21 | </vehicle> | ||
22 | |||
23 | <vehicle name="Demo" profilename="car" enabled="no" active="yes" source="demo://"/> | ||
24 | |||
25 | <!-- For the cumulative displacement filter to be enabled, set cdf_histsize="x" here, with x being an integer somewhere around 4 --> | ||
26 | <tracking cdf_histsize="0"/> | ||
27 | |||
28 | <xi:include href="/usr/share/navit/navit.default.xml" xpointer="xpointer(/config/navit/vehicleprofile[@name='car'])"/> | ||
29 | <xi:include href="/usr/share/navit/navit.default.xml" xpointer="xpointer(/config/navit/vehicleprofile[@name='bike'])"/> | ||
30 | <xi:include href="/usr/share/navit/navit.default.xml" xpointer="xpointer(/config/navit/vehicleprofile[@name='pedestrian'])"/> | ||
31 | <xi:include href="/usr/share/navit/navit.default.xml" xpointer="xpointer(/config/navit/vehicleprofile[@name='horse'])"/> | ||
32 | |||
33 | <route destination_distance="50"/> | ||
34 | |||
35 | <xi:include href="/usr/share/navit/navit.default.xml" xpointer="xpointer(/config/navit/navigation)"/> | ||
36 | |||
37 | <xi:include href="/usr/share/navit/speech.xml"/> | ||
38 | <xi:include href="/usr/share/navit/maps.xml"/> | ||
39 | |||
40 | <xi:include href="/usr/share/navit/navit.default.xml" xpointer="xpointer(/config/navit/layout[@name='Car'])"/> | ||
41 | <xi:include href="/usr/share/navit/navit.default.xml" xpointer="xpointer(/config/navit/layout[@name='Car-dark'])"/> | ||
42 | <xi:include href="/usr/share/navit/navit.default.xml" xpointer="xpointer(/config/navit/layout[@name='Bike'])"/> | ||
43 | <xi:include href="/usr/share/navit/navit.default.xml" xpointer="xpointer(/config/navit/layout[@name='T@H'])"/> | ||
44 | </navit> | ||
45 | </config> | ||
diff --git a/meta-oe/recipes-navigation/navit/navit/osd.xml b/meta-oe/recipes-navigation/navit/navit/osd.xml new file mode 100644 index 000000000..2d0f9ffdf --- /dev/null +++ b/meta-oe/recipes-navigation/navit/navit/osd.xml | |||
@@ -0,0 +1,15 @@ | |||
1 | <!-- osd items allow to position display and control items directly on top of the map: --> | ||
2 | <osd enabled="no" type="compass"/> | ||
3 | <osd enabled="no" type="eta"/> | ||
4 | <osd enabled="no" type="navigation_distance_to_target"/> | ||
5 | <osd enabled="no" type="navigation"/> | ||
6 | <osd enabled="no" type="navigation_distance_to_next"/> | ||
7 | <osd enabled="no" type="navigation_next_turn"/> | ||
8 | |||
9 | <!-- Commands include gui_internal_menu, gui_internal_fullscreen, zoom_in and zoom_out. | ||
10 | Usage of negative values change the button origins. x="0" y="0" specifies the top left, x="-0" y="-0" the bottom right corner. | ||
11 | It's always the top left corner of the icon, so you need to consider the icon's size when you enter the values. --> | ||
12 | <osd enabled="no" type="button" x="0" y="0" command="gui.fullscreen()" src="toggle_fullscreen.xpm"/> | ||
13 | <osd enabled="no" type="button" x="-96" y="0" command="gui.menu()" src="menu.xpm"/> | ||
14 | <osd enabled="no" type="button" x="-96" y="-96" command="zoom_in()" src="zoom_in.xpm"/> | ||
15 | <osd enabled="no" type="button" x="0" y="-96" command="zoom_out()" src="zoom_out.xpm"/> | ||
diff --git a/meta-oe/recipes-navigation/navit/navit/plugins.xml b/meta-oe/recipes-navigation/navit/navit/plugins.xml new file mode 100644 index 000000000..015b05517 --- /dev/null +++ b/meta-oe/recipes-navigation/navit/navit/plugins.xml | |||
@@ -0,0 +1,6 @@ | |||
1 | <plugins> | ||
2 | <plugin path="$NAVIT_LIBDIR/*/${NAVIT_LIBPREFIX}lib*.so" ondemand="yes"/> | ||
3 | <plugin path="$NAVIT_LIBDIR/autoload/${NAVIT_LIBPREFIX}lib*.so"/> | ||
4 | <plugin path="$NAVIT_LIBDIR/*/${NAVIT_LIBPREFIX}libbinding_dbus.so" active="yes"/> | ||
5 | <plugin path="$NAVIT_LIBDIR/*/${NAVIT_LIBPREFIX}libgraphics_null.so" active="no"/> | ||
6 | </plugins> | ||
diff --git a/meta-oe/recipes-navigation/navit/navit/speech.xml b/meta-oe/recipes-navigation/navit/navit/speech.xml new file mode 100644 index 000000000..28c49906d --- /dev/null +++ b/meta-oe/recipes-navigation/navit/navit/speech.xml | |||
@@ -0,0 +1,8 @@ | |||
1 | <!-- Navit provides speech output in text format. | ||
2 | If you have a speech synthesizer like festival lite installed, you can get turn by turn directions out of navit. Please set the "cps"-value to how many characters your tts engine approximately speaks per second. | ||
3 | The default is text output to the shell --> | ||
4 | <!-- <speech type="cmdline" data="echo 'Fix the speech tag in navit.xml to let navit say:' '%s'" cps="15"/> --> | ||
5 | <!-- <speech type="cmdline" data="espeak -s 150 -v czech '%s' &"/> --> | ||
6 | <!-- <speech type="cmdline" data="flite -t '%s'"/> --> | ||
7 | <!-- <speech type="cmdline" data="/usr/local/bin/say.sh '%s'"/> --> | ||
8 | <speech type="cmdline" data="espeak '%s' &"/> | ||
diff --git a/meta-oe/recipes-navigation/navit/navit_svn.bb b/meta-oe/recipes-navigation/navit/navit_svn.bb new file mode 100644 index 000000000..b5484faa6 --- /dev/null +++ b/meta-oe/recipes-navigation/navit/navit_svn.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require navit.inc | ||
2 | |||
3 | SRCREV = "4495" | ||
4 | PV = "0.2.0+svnr${SRCPV}" | ||
5 | PR = "${INC_PR}.12" | ||
6 | |||
7 | S = "${WORKDIR}/navit" | ||
8 | SRC_URI += "svn://anonymous@navit.svn.sourceforge.net/svnroot/navit/trunk;module=navit;proto=http " | ||
diff --git a/meta-oe/recipes-navigation/tangogps/tangogps_0.99.4.bb b/meta-oe/recipes-navigation/tangogps/tangogps_0.99.4.bb new file mode 100644 index 000000000..a5706d33c --- /dev/null +++ b/meta-oe/recipes-navigation/tangogps/tangogps_0.99.4.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | DESCRIPTION = "tangoGPS is a map and GPS application using Openstreetmap" | ||
2 | AUTHOR = "Marcus Bauer <marcus.bauer@gmail.com>" | ||
3 | HOMEPAGE = "http://tangogps.org/" | ||
4 | SECTION = "x11/applications" | ||
5 | LICENSE = "GPLv2" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" | ||
7 | PRIORITY = "optional" | ||
8 | DEPENDS = "curl gtk+ gconf sqlite3 libexif libsoup-2.4" | ||
9 | |||
10 | SRC_URI = "http://www.tangogps.org/downloads/${P}.tar.gz" | ||
11 | SRC_URI[md5sum] = "0f07ede94a21eb84f5e017fa88a1fc3d" | ||
12 | SRC_URI[sha256sum] = "660fdf89ef3c379f2fc0c2a9d0c9d3bfa5345835786b72bf9f513ba9ec2c812a" | ||
13 | |||
14 | inherit autotools pkgconfig | ||
15 | |||
16 | RRECOMMENDS_${PN} = "gpsd" | ||