diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2011-05-29 11:40:09 +0200 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-05-29 21:37:56 +0200 |
commit | 9ebce78b17255b9ed825273f964dafb4cd814f35 (patch) | |
tree | 876a53e1a13c27bbb60b50bfe16bc44396c20e88 /meta-oe/recipes-support | |
parent | f71254a7ac97dea82c425b927255bcb3effafad0 (diff) | |
download | meta-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')
-rw-r--r-- | meta-oe/recipes-support/navit/navit-fpu.inc | 6 | ||||
-rw-r--r-- | meta-oe/recipes-support/navit/navit-icons/GPL-2 | 339 | ||||
-rw-r--r-- | meta-oe/recipes-support/navit/navit-icons/configure.in | 70 | ||||
-rw-r--r-- | meta-oe/recipes-support/navit/navit-icons_svn.bb | 35 | ||||
-rw-r--r-- | meta-oe/recipes-support/navit/navit.inc | 93 | ||||
-rw-r--r-- | meta-oe/recipes-support/navit/navit/maps.xml | 24 | ||||
-rw-r--r-- | meta-oe/recipes-support/navit/navit/navit.xml | 45 | ||||
-rw-r--r-- | meta-oe/recipes-support/navit/navit/osd.xml | 15 | ||||
-rw-r--r-- | meta-oe/recipes-support/navit/navit/plugins.xml | 6 | ||||
-rw-r--r-- | meta-oe/recipes-support/navit/navit/speech.xml | 8 | ||||
-rw-r--r-- | meta-oe/recipes-support/navit/navit_svn.bb | 8 |
11 files changed, 649 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/navit/navit-fpu.inc b/meta-oe/recipes-support/navit/navit-fpu.inc new file mode 100644 index 000000000..d333b9200 --- /dev/null +++ b/meta-oe/recipes-support/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-support/navit/navit-icons/GPL-2 b/meta-oe/recipes-support/navit/navit-icons/GPL-2 new file mode 100644 index 000000000..d511905c1 --- /dev/null +++ b/meta-oe/recipes-support/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-support/navit/navit-icons/configure.in b/meta-oe/recipes-support/navit/navit-icons/configure.in new file mode 100644 index 000000000..4ffc7b0a2 --- /dev/null +++ b/meta-oe/recipes-support/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-support/navit/navit-icons_svn.bb b/meta-oe/recipes-support/navit/navit-icons_svn.bb new file mode 100644 index 000000000..116ff4397 --- /dev/null +++ b/meta-oe/recipes-support/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-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 @@ | |||
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-support/navit/navit/maps.xml b/meta-oe/recipes-support/navit/navit/maps.xml new file mode 100644 index 000000000..6f59f20c3 --- /dev/null +++ b/meta-oe/recipes-support/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-support/navit/navit/navit.xml b/meta-oe/recipes-support/navit/navit/navit.xml new file mode 100644 index 000000000..58c8c226f --- /dev/null +++ b/meta-oe/recipes-support/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-support/navit/navit/osd.xml b/meta-oe/recipes-support/navit/navit/osd.xml new file mode 100644 index 000000000..2d0f9ffdf --- /dev/null +++ b/meta-oe/recipes-support/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-support/navit/navit/plugins.xml b/meta-oe/recipes-support/navit/navit/plugins.xml new file mode 100644 index 000000000..015b05517 --- /dev/null +++ b/meta-oe/recipes-support/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-support/navit/navit/speech.xml b/meta-oe/recipes-support/navit/navit/speech.xml new file mode 100644 index 000000000..28c49906d --- /dev/null +++ b/meta-oe/recipes-support/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-support/navit/navit_svn.bb b/meta-oe/recipes-support/navit/navit_svn.bb new file mode 100644 index 000000000..b5484faa6 --- /dev/null +++ b/meta-oe/recipes-support/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 " | ||