summaryrefslogtreecommitdiff
path: root/community-testing/gpsdrive
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2012-04-03 14:54:55 +0000
committerParabola <dev@list.parabolagnulinux.org>2012-04-03 14:54:55 +0000
commitb618c3d0693aec564c6746238fd05d94e31d3b76 (patch)
tree4a4834f3097bba25dba1adeba4324080c1b4bf7b /community-testing/gpsdrive
parent8cb5196780766f47b595410eed8ddbee2e8add08 (diff)
Tue Apr 3 14:54:45 UTC 2012
Diffstat (limited to 'community-testing/gpsdrive')
-rw-r--r--community-testing/gpsdrive/PKGBUILD69
-rw-r--r--community-testing/gpsdrive/gpsd-2.96.patch44
-rw-r--r--community-testing/gpsdrive/gpsdrive.install4
3 files changed, 0 insertions, 117 deletions
diff --git a/community-testing/gpsdrive/PKGBUILD b/community-testing/gpsdrive/PKGBUILD
deleted file mode 100644
index 6b42fa2ff..000000000
--- a/community-testing/gpsdrive/PKGBUILD
+++ /dev/null
@@ -1,69 +0,0 @@
-# $Id: PKGBUILD 66996 2012-03-03 08:12:16Z ibiru $
-# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
-# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
-# Maintainer: damir <damir@archlinux.org>
-
-pkgname=gpsdrive
-pkgver=2.11
-pkgrel=12
-pkgdesc="A car (bike, ship, plane) navigation system"
-arch=("i686" "x86_64")
-url="http://www.gpsdrive.de/"
-license=('GPL2')
-depends=('gtk2' 'gpsd' 'libxml2' 'curl' 'python2' 'boost-libs' 'gdal' 'mapnik' 'postgresql-libs' 'openstreetmap-map-icons-svn'
- 'perl-date-manip' 'perl-timedate' 'perl-dbi' 'perl-file-slurp' 'perl-www-mechanize' 'perl-libwww' 'perl-uri'
- 'perl-text-query' 'perl-www-curl' 'perl-xml-parser' 'perl-xml-simple' 'perl-xml-twig' 'perl-xml-writer'
- ) # already in core ('sqlite3')
-makedepends=('cmake>=2.4.4' 'boost' 'cfitsio')
-install="gpsdrive.install"
-source=("http://www.gpsdrive.de/packages/${pkgname}-${pkgver}.tar.gz"
- "gpsd-2.96.patch")
-md5sums=('6eeeca8e5c647115bea836d1f8fb6e0c'
- '5769e12c6d8932fb721212434c64f505')
-
-build() {
- cd "$srcdir"
-
- # python2 fix
- for file in $(find . -name '*.py' -print); do
- sed -i 's_#!/usr/bin/python_#!/usr/bin/python2_' $file
- sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file
- done
-
- rm -rf build
- mkdir build
- cd build
-
- # fix the mapnik default values
- sed -i 's|"/usr/lib/mapnik/0.7/input/"|"/usr/lib/mapnik/input/"|' "${srcdir}/gpsdrive-${pkgver}/src/gpsdrive_config.c"
- sed -i 's|"/usr/share/fonts/truetype/ttf-dejavu/"|"/usr/share/fonts/TTF/"|' "${srcdir}/gpsdrive-${pkgver}/src/gpsdrive_config.c"
-
- export CFLAGS=-I/usr/include/gdk-pixbuf-2.0/
- export CPPFLAGS=-I/usr/include/gdk-pixbuf-2.0/
- export CXXFLAGS=-I/usr/include/gdk-pixbuf-2.0/
- export CXXFLAGS="${CXXFLAGS} -DBOOST_FILESYSTEM_VERSION=2"
- export LDFLAGS="`pkg-config --libs gtk+-2.0` -lboost_system -lboost_thread"
-
- # see DefineOptions.cmake for a list of common options and defaults
- # cmake -L for a more in-depth listing
- cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="/usr" \
- -DWITH_SCRIPTS=ON \
- -DWITH_MAPNIK=ON \
- -DWITH_POSTGIS=ON \
- -DWITH_GDAL=ON \
- -DWITH_BASEMAPS=ON \
- -DWITH_FRIENDSD=ON \
- -DWITH_KISMET=ON \
- -DWITH_NAVIGATION=ON \
- -DWITH_SPEECH=OFF \
- -DWITH_DBUS=OFF \
- -DLIBGPS_OLD=OFF \
- "$srcdir/gpsdrive-$pkgver"
- (cd "$srcdir/gpsdrive-$pkgver" && patch -p1 <$srcdir/gpsd-2.96.patch)
- make
-}
-
-package() {
- cd "$srcdir/build"
- make DESTDIR="$pkgdir" install
-}
diff --git a/community-testing/gpsdrive/gpsd-2.96.patch b/community-testing/gpsdrive/gpsd-2.96.patch
deleted file mode 100644
index bc6c7475f..000000000
--- a/community-testing/gpsdrive/gpsd-2.96.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-diff -wbBur gpsdrive-2.11/src/gps_handler.c gpsdrive-2.11.my/src/gps_handler.c
---- gpsdrive-2.11/src/gps_handler.c 2010-06-24 19:53:32.000000000 +0000
-+++ gpsdrive-2.11.my/src/gps_handler.c 2011-04-18 13:21:33.000000000 +0000
-@@ -264,7 +264,8 @@
- #define GPS_TIMER 500
-
- static gint gps_timeout_source = 0;
--static struct gps_data_t *gpsdata;
-+static struct gps_data_t __gd;
-+static struct gps_data_t *gpsdata = &__gd;
-
- /* SYMBOLS USED IN LIBGPS:
- *
-@@ -410,9 +411,10 @@
- */
- gps_query (gpsdata, "oys\n");
- #else
-- if (gps_waiting(gpsdata))
-+ if (gps_waiting(gpsdata, 1000000))
- {
-- gps_poll (gpsdata);
-+ gps_read (gpsdata);
-+ gps_hook_cb(gpsdata, NULL);
- }
- #endif
-
-@@ -447,7 +449,7 @@
- }
-
- /* try to open connection */
-- gpsdata = gps_open (local_config.gpsd_server, local_config.gpsd_port);
-+ gpsdata = gps_open (local_config.gpsd_server, local_config.gpsd_port, gpsdata) ? NULL : &__gd;
- if (!gpsdata)
- {
- g_print ("Can't connect to gps daemon on %s:%s, disabling GPS support!\n",
-@@ -466,7 +468,7 @@
- gps_sats = g_new (gps_satellite_struct, MAXCHANNELS);
-
- /* set hook function to handle gps data */
-- gps_set_raw_hook (gpsdata, (gpointer) gps_hook_cb);
-+// gps_set_raw_hook (gpsdata, (gpointer) gps_hook_cb);
-
- #ifndef LIBGPS_OLD
- /* enable watch mode to get data stream from gpsd */
diff --git a/community-testing/gpsdrive/gpsdrive.install b/community-testing/gpsdrive/gpsdrive.install
deleted file mode 100644
index 8ea63912e..000000000
--- a/community-testing/gpsdrive/gpsdrive.install
+++ /dev/null
@@ -1,4 +0,0 @@
-post_install() {
- echo "Don't forget to generate geoinfo.db with geoinfo.pl script"
- echo "Also you can check http://wiki.archlinux.org/index.php/GpsDrive"
-}