2015-10-27 23:38:21 +01:00
|
|
|
{ stdenv, fetchurl, zlib, qt5, which }:
|
2009-05-30 01:30:10 +02:00
|
|
|
|
2015-10-27 23:38:21 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2012-08-19 15:50:50 +02:00
|
|
|
name = "gpsbabel-${version}";
|
2015-10-27 23:38:21 +01:00
|
|
|
version = "1.5.2";
|
2009-05-30 01:30:10 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-08-19 15:50:50 +02:00
|
|
|
# gpgbabel.org makes it hard to get the source tarball automatically, so
|
|
|
|
# get it from elsewhere.
|
|
|
|
url = "mirror://debian/pool/main/g/gpsbabel/gpsbabel_${version}.orig.tar.gz";
|
2015-10-27 23:38:21 +01:00
|
|
|
sha256 = "0xf7wmy2m29g2lm8lqc74yf8rf7sxfl3cfwbk7dpf0yf42pb0b6w";
|
2009-05-30 01:30:10 +02:00
|
|
|
};
|
|
|
|
|
2015-10-27 23:38:21 +01:00
|
|
|
buildInputs = [ zlib qt5.base which ];
|
2009-05-30 01:30:10 +02:00
|
|
|
|
|
|
|
/* FIXME: Building the documentation, with "make doc", requires this:
|
|
|
|
|
|
|
|
[ libxml2 libxslt perl docbook_xml_dtd_412 docbook_xsl fop ]
|
|
|
|
|
|
|
|
But FOP isn't packaged yet. */
|
|
|
|
|
2012-08-19 15:50:50 +02:00
|
|
|
preConfigure = "cd gpsbabel";
|
2015-11-14 23:59:20 +01:00
|
|
|
configureFlags = [ "--with-zlib=system" ]
|
|
|
|
# Floating point behavior on i686 causes test failures. Preventing
|
|
|
|
# extended precision fixes this problem.
|
|
|
|
++ stdenv.lib.optional stdenv.isi686 "CXXFLAGS=-ffloat-store";
|
2012-08-19 15:50:50 +02:00
|
|
|
|
|
|
|
doCheck = true;
|
2015-10-27 23:38:21 +01:00
|
|
|
preCheck = ''
|
|
|
|
patchShebangs testo
|
|
|
|
substituteInPlace testo \
|
|
|
|
--replace "-x /usr/bin/hexdump" ""
|
|
|
|
'';
|
2009-05-30 01:30:10 +02:00
|
|
|
|
2015-10-27 23:38:21 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Convert, upload and download data from GPS and Map programs";
|
2009-05-30 01:30:10 +02:00
|
|
|
longDescription = ''
|
|
|
|
GPSBabel converts waypoints, tracks, and routes between popular
|
|
|
|
GPS receivers and mapping programs. It also has powerful
|
|
|
|
manipulation tools for such data.
|
|
|
|
|
|
|
|
By flattening the Tower of Babel that the authors of various
|
|
|
|
programs for manipulating GPS data have imposed upon us, it
|
|
|
|
returns to us the ability to freely move our own waypoint data
|
|
|
|
between the programs and hardware we choose to use.
|
|
|
|
|
|
|
|
It contains extensive data manipulation abilities making it a
|
|
|
|
convenient for server-side processing or as the backend for
|
|
|
|
other tools.
|
|
|
|
|
|
|
|
It does not convert, transfer, send, or manipulate maps. We
|
|
|
|
process data that may (or may not be) placed on a map, such as
|
|
|
|
waypoints, tracks, and routes.
|
|
|
|
'';
|
|
|
|
homepage = http://www.gpsbabel.org/;
|
2015-10-27 23:38:21 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.rycee ];
|
|
|
|
platforms = platforms.all;
|
2009-05-30 01:30:10 +02:00
|
|
|
};
|
|
|
|
}
|