pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/geography/gpsdrive Reimport misc/gpsdrive as geography...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b3a95654fc93
branches:  trunk
changeset: 478595:b3a95654fc93
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Jul 26 23:33:35 2004 +0000

description:
Reimport misc/gpsdrive as geography/gpsdrive.

diffstat:

 geography/gpsdrive/DESCR            |    9 +
 geography/gpsdrive/Makefile         |   26 ++
 geography/gpsdrive/PLIST            |   55 ++++++
 geography/gpsdrive/distinfo         |    7 +
 geography/gpsdrive/patches/patch-aa |   29 +++
 geography/gpsdrive/patches/patch-ab |   56 ++++++
 geography/gpsdrive/patches/patch-ac |  313 ++++++++++++++++++++++++++++++++++++
 7 files changed, 495 insertions(+), 0 deletions(-)

diffs (truncated from 523 to 300 lines):

diff -r 9f6fef7a863f -r b3a95654fc93 geography/gpsdrive/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/gpsdrive/DESCR  Mon Jul 26 23:33:35 2004 +0000
@@ -0,0 +1,9 @@
+GpsDrive is a car (bike, ship, plane) navigation system.  GpsDrive
+displays your position provided from your NMEA capable GPS receiver on a
+zoomable map, the map file is autoselected depending of the position and
+prefered scale.  Speech output is supported if the "festival" software
+is running.  The maps are autoselected for best resolution depending of
+your position and can be downloaded from Internet.  All Garmin GPS
+reveiver with a serial output should be usable, also other GPS receiver
+which supports NMEA protocol.  GpsDrive is written in C with use of the
+GTK+ graphic toolkit.
diff -r 9f6fef7a863f -r b3a95654fc93 geography/gpsdrive/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/gpsdrive/Makefile       Mon Jul 26 23:33:35 2004 +0000
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/07/26 23:33:35 wiz Exp $
+
+DISTNAME=      gpsdrive-1.31
+PKGREVISION=   5
+CATEGORIES=    geography
+MASTER_SITES=  http://gpsdrive.kraftvoll.at/
+
+MAINTAINER=    tsarna%NetBSD.org@localhost
+HOMEPAGE=      http://gpsdrive.kraftvoll.at/
+COMMENT=       GPS Navigation system
+
+DEPENDS+=      gpsd>=1.07:../../geography/gpsd
+
+GNU_CONFIGURE=         YES
+USE_BUILDLINK3=                YES
+USE_PKGLOCALEDIR=      YES
+
+# XXX make this an option
+CONFIGURE_ARGS+=       --disable-mysql
+
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/glib/buildlink3.mk"
+.include "../../x11/gtk/buildlink3.mk"
+.include "../../graphics/gdk-pixbuf/buildlink3.mk"
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 9f6fef7a863f -r b3a95654fc93 geography/gpsdrive/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/gpsdrive/PLIST  Mon Jul 26 23:33:35 2004 +0000
@@ -0,0 +1,55 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/07/26 23:33:35 wiz Exp $
+bin/garble
+bin/gpsdrive
+bin/gpsfetchmap
+bin/gpsfetchmap.pl
+bin/gpspoint2gpsdrive.pl
+bin/wpcvt
+bin/wpget
+lib/libfly.a
+lib/libfly.la
+lib/libfly.so
+lib/libfly.so.2
+lib/libfly.so.2.0
+lib/libnautic.a
+lib/libnautic.la
+lib/libnautic.so
+lib/libnautic.so.2
+lib/libnautic.so.2.0
+man/de/man1/gpsdrive.1
+man/es/man1/gpsdrive.1
+man/man1/gpsdrive.1
+share/gpsdrive/friendsicon.png
+share/gpsdrive/gpsdrive/AUTHORS
+share/gpsdrive/gpsdrive/FAQ.gpsdrive
+share/gpsdrive/gpsdrive/FAQ.gpsdrive.fr
+share/gpsdrive/gpsdrive/GPS-receivers
+share/gpsdrive/gpsdrive/LEEME
+share/gpsdrive/gpsdrive/LISEZMOI
+share/gpsdrive/gpsdrive/NMEA.txt
+share/gpsdrive/gpsdrive/README
+share/gpsdrive/gpsdrive/README.FreeBSD
+share/gpsdrive/gpsdrive/README.SQL
+share/gpsdrive/gpsdrive/README.gpspoint2gspdrive
+share/gpsdrive/gpsdrive/README.kismet
+share/gpsdrive/gpsdrive/TODO
+share/gpsdrive/gpsdrive/create.sql
+share/gpsdrive/gpsdrive/wp2sql
+share/gpsdrive/gpsdrivesplash.png
+${PKGLOCALEDIR}/locale/da/LC_MESSAGES/gpsdrive.mo
+${PKGLOCALEDIR}/locale/de/LC_MESSAGES/gpsdrive.mo
+${PKGLOCALEDIR}/locale/de_AT/LC_MESSAGES/gpsdrive.mo
+${PKGLOCALEDIR}/locale/es/LC_MESSAGES/gpsdrive.mo
+${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/gpsdrive.mo
+${PKGLOCALEDIR}/locale/hu/LC_MESSAGES/gpsdrive.mo
+${PKGLOCALEDIR}/locale/it/LC_MESSAGES/gpsdrive.mo
+${PKGLOCALEDIR}/locale/nl/LC_MESSAGES/gpsdrive.mo
+${PKGLOCALEDIR}/locale/no/LC_MESSAGES/gpsdrive.mo
+${PKGLOCALEDIR}/locale/pt_BR/LC_MESSAGES/gpsdrive.mo
+${PKGLOCALEDIR}/locale/sk/LC_MESSAGES/gpsdrive.mo
+${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/gpsdrive.mo
+${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/gpsdrive.mo
+@dirrm share/gpsdrive/gpsdrive
+@dirrm share/gpsdrive
+@dirrm gpsdrive/locale
+@dirrm gpsdrive
diff -r 9f6fef7a863f -r b3a95654fc93 geography/gpsdrive/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/gpsdrive/distinfo       Mon Jul 26 23:33:35 2004 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/07/26 23:33:35 wiz Exp $
+
+SHA1 (gpsdrive-1.31.tar.gz) = 296a06d264c5fbb077c91f3529b4e6f122423f05
+Size (gpsdrive-1.31.tar.gz) = 784379 bytes
+SHA1 (patch-aa) = cc5dd44020ffc5f22dc958c938b9f98ff6e01810
+SHA1 (patch-ab) = 240901fe52e41db1a41299f66ac61c06898f1881
+SHA1 (patch-ac) = 86f67ad04378f14a95e5b9fc806b2054ef4be127
diff -r 9f6fef7a863f -r b3a95654fc93 geography/gpsdrive/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/gpsdrive/patches/patch-aa       Mon Jul 26 23:33:35 2004 +0000
@@ -0,0 +1,29 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/07/26 23:33:35 wiz Exp $
+
+- We depend on the gpsd package instead of using the bundled one
+- friendsd is broken and I don't care enough to fix it
+
+--- src/Makefile.in.orig       Sun Dec  8 13:30:56 2002
++++ src/Makefile.in    Sun Jan  5 12:15:01 2003
+@@ -122,7 +122,7 @@
+ 
+ @DISABLEGARMIN_TRUE@PRG1 = 
+ @DISABLEGARMIN_FALSE@PRG1 = garble
+-bin_PROGRAMS = $(PRG1) gpsdrive gpsd  friendsd 
++bin_PROGRAMS = $(PRG1) gpsdrive
+ LIBS = 
+ 
+ # gpsdrive_LDADD= $(GLIB_LIBS) $(GTK_LIBS) $(PIXLIBS)
+@@ -175,10 +175,8 @@
+ libnautic_la_LIBADD =
+ am_libnautic_la_OBJECTS = nautic.lo
+ libnautic_la_OBJECTS = $(am_libnautic_la_OBJECTS)
+-@DISABLEGARMIN_TRUE@bin_PROGRAMS = gpsdrive$(EXEEXT) gpsd$(EXEEXT) \
+-@DISABLEGARMIN_TRUE@  friendsd$(EXEEXT)
+-@DISABLEGARMIN_FALSE@bin_PROGRAMS = garble$(EXEEXT) gpsdrive$(EXEEXT) \
+-@DISABLEGARMIN_FALSE@ gpsd$(EXEEXT) friendsd$(EXEEXT)
++@DISABLEGARMIN_TRUE@bin_PROGRAMS = gpsdrive$(EXEEXT)
++@DISABLEGARMIN_FALSE@bin_PROGRAMS = garble$(EXEEXT) gpsdrive$(EXEEXT)
+ PROGRAMS = $(bin_PROGRAMS)
+ 
+ am_friendsd_OBJECTS = friendsd.$(OBJEXT)
diff -r 9f6fef7a863f -r b3a95654fc93 geography/gpsdrive/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/gpsdrive/patches/patch-ab       Mon Jul 26 23:33:35 2004 +0000
@@ -0,0 +1,56 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/07/26 23:33:35 wiz Exp $
+
+Drew Einhorn's gpsfetchmap.pl enhancements from:
+
+http://s2.selwerd.nl/~dirk-jan/gpsdrive/archive/msg01772.html
+
+also require this patch to support tree'd rather than flap map
+driectories.
+
+--- src/gpsdrive.c.orig        Sun Dec  8 09:43:33 2002
++++ src/gpsdrive.c     Wed Jan  8 12:20:48 2003
+@@ -2926,12 +2926,22 @@
+     }
+   for (i = 0; i < nrmaps; i++)
+     {
++      /* strip off the path, we just want to check the filename */
++      char *fullname;
++      char *rslash;
++      char *filename;
++
+       skip = TRUE;
++
++      fullname = (maps + i)->filename;
++      rslash = strrchr(fullname, '/');
++      filename = rslash == NULL ? fullname : rslash + 1;
++
+       if (displaymap_map)
+-      if (!(strncmp ((maps + i)->filename, "map_", 4)))
++      if (!(strncmp (filename, "map_", 4)))
+         skip = FALSE;
+       if (displaymap_top)
+-      if (!(strncmp ((maps + i)->filename, "top_", 4)))
++      if (!(strncmp (filename, "top_", 4)))
+         skip = FALSE;
+ 
+       if (skip)
+@@ -3101,8 +3111,17 @@
+ 
+   for (i = 0; i < nrmaps; i++)
+     {
+-      if ((strncmp ((maps + i)->filename, "map_", 4)))
+-      if ((strncmp ((maps + i)->filename, "top_", 4)))
++      /* strip off the path, we just want to check the filename */
++      char *fullname;
++      char *rslash;
++      char *filename;
++
++      fullname = (maps + i)->filename;
++      rslash = strrchr(fullname, '/');
++      filename = rslash == NULL ? fullname : rslash + 1;
++
++      if ((strncmp (filename, "map_", 4)))
++      if ((strncmp (filename, "top_", 4)))
+         {
+           GString *error;
+           error = g_string_new (NULL);
diff -r 9f6fef7a863f -r b3a95654fc93 geography/gpsdrive/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/gpsdrive/patches/patch-ac       Mon Jul 26 23:33:35 2004 +0000
@@ -0,0 +1,313 @@
+$NetBSD: patch-ac,v 1.1.1.1 2004/07/26 23:33:35 wiz Exp $
+
+Drew Einhorn's gpsfetchmap.pl enhancements from:
+
+http://s2.selwerd.nl/~dirk-jan/gpsdrive/archive/msg01772.html
+
+--- src/gpsfetchmap.pl.orig    Sun Nov 24 11:04:38 2002
++++ src/gpsfetchmap.pl Wed Jan  8 12:13:17 2003
+@@ -1,4 +1,4 @@
+-#!/usr/bin/perl
++#!/usr/bin/env perl
+ 
+ # gpsfetchmap
+ #
+@@ -9,38 +9,71 @@
+ gpsfetchmap (c) 2002 Kevin Stephens <gps\@suburbialost.com>
+ modified (Sept 06, 2002) by Sven Fichtner <sven.fichtner\@flugfunk.de>
+ modified (Sept 18, 2002) by Sven Fichtner <sven.fichtner\@flugfunk.de>
+-modified (Nov 21, 2002) by Magnus Månsson <ganja\@0x63.nu>
+-Version 1.04
++modified (Nov 21, 2002) by Magnus MÃ¥nsson <ganja\@0x63.nu>
++modified (Dec 24, 2002) by Drew Einhorn <drew.einhorn\@starband.net>
++Version 1.05
+ EOP
+ 
+ use strict;
+ use Getopt::Long;
+ use Pod::Usage;
+-
+-# Setup possible scales
+-my @SCALES = (1000,1500,2000,3000,5000,7500,10000,15000,20000,30000,50000,75000,
+-              100000,150000,200000,300000,500000,750000,1000000,1500000,2000000,3000000,
+-              5000000,7500000,10000000,15000000,20000000,30000000,50000000,75000000);
++use POSIX qw(floor ceil);
++use File::Temp qw/ tempfile tempdir /; 
+ 
+ # Set defaults and get options from command line
+ Getopt::Long::Configure('no_ignore_case');
+-my ($lat,$lon,$slat,$endlat,$slon,$endlon,$waypoint,$area,$unit,$mapdir,$debug,$force,$version,$man,$help);
+-my $failcount = 0;
++my (@SCALES,$lat,$lon,$slat,$endlat,$slon,$endlon,$waypoint,$area,$unit,$debug,$force,$version,$man,$help);
++
++my $failcount;
++my $writecount;
++my $cachecount;
+ my $polite = 'no';
+ my $scale = '50000';
+ my $CONFIG_DIR    = "$ENV{'HOME'}/.gpsdrive"; # Should we allow config of this?
+ my $CONFIG_FILE   = "$CONFIG_DIR/gpsdriverc";
+ my $WAYPT_FILE    = "$CONFIG_DIR/way.txt";
+-my $KOORD_FILE    = 'map_koord.txt'; # Should we allow config of this?
+ my $FILEPREFIX    = 'map_';
+ my $mapserver     = 'mapblast';
++my $replace       = '0';
++my $mapdir        = "";
+ 
+ GetOptions ('lat=f' => \$lat, 'lon=f' => \$lon, 'start-lat=f' => \$slat, 'end-lat=f' => \$endlat, 'start-lon=f' => \$slon, 'end-lon=f' => \$endlon, 'scale=s' => \$scale, 'mapserver=s' => 
\$mapserver, 
+             'waypoint=s' =>, \$waypoint, 'area=s' => \$area, 'unit=s' => \$unit,'mapdir=s' => \$mapdir, 'polite:i' => \$polite,
+             'WAYPOINT=s' => \$WAYPT_FILE, 'CONFIG=s' => \$CONFIG_FILE, 'PREFIX=s' => \$FILEPREFIX,
+-            'FORCE' => \$force, 'debug' => \$debug, 'MAN' => \$man, 'help|x' => \$help, 'version' => \$version)
++            'FORCE' => \$force, 'debug' => \$debug, 'MAN' => \$man, 'help|x' => \$help, 'version' => \$version, 'replace' => \$replace)
+    or pod2usage(1);
+ 
++if ($mapdir eq "") {
++  $mapdir = $CONFIG_DIR;
++} else {
++  $mapdir = $CONFIG_DIR/$mapdir;
++}
++my $LOCK_SH = 1;
++my $LOCK_EX = 2;
++my $LOCK_NB = 4;
++my $LOCK_UN = 8;
++
++my $KOORD_FILE    = "$mapdir/map_koord.txt"; # Should we allow config of this?
++open(KOORD,">>$KOORD_FILE") || die "Can't open: $KOORD_FILE";
++
++# Setup possible scales
++my %ts1;
++if ($mapserver eq "terraserver") {
++  my ($s, $ts);
++
++  @SCALES = ();
++  $s = 2757;
++  for ($ts = 10; $ts <= 16; $ts++) {
++    @SCALES = (@SCALES, $s);
++    $ts1{$s} = $ts;
++    $s *= 2;
++  }
++} else {
++  @SCALES = (1000,1500,2000,3000,5000,7500,10000,15000,20000,30000,50000,75000,



Home | Main Index | Thread Index | Old Index