Package: gpsbabel
# v1.6.0+ uses cmake and needs qt5 >= 5.9 (dist restricted)
Version: 1.5.4
Revision: 1

Description: GPS data transfer and conversion tool

DescDetail: <<
gpsbabel is a command-line utility that translates GPS track, route and
waypoint information between different GPS units and file formats. Most
notably, it can handle GPX files (an emerging "GPS Exchange Format"; see
http://www.topografix.com/gpx.asp for details), Google Maps URLs, and
Google Earth (Keyhole) KML files. Also, gpsbabel can transfer data to
and from many serial and USB GPS units.
<<

DescUsage: <<
Running 'gpsbabel' with no arguments displays a command summary.
'gpsbabel -h | less' will give you the full input/filter/output option
list.

If you are using a serial GPS and a Keyspan USB-to-serial adapter, you
may need to use '/dev/cu.KeySerial1' instead of '/dev/tty.KeySerial1'.
<<

DescPackaging: <<
Carries it's own version of libusb-0.1.12 because upstream said it was
too much work for people to have their own. Later releases use libusb-1.

Fix ordered comparison between pointer and zero using upstream patches
b7365b9311d9e1b030378e263385eda6957f3f64
9d43f8f049c0f13bd5b0080ef64f3e624922b365
<<

Homepage: https://www.gpsbabel.org/

License: GPL

Maintainer: None <fink-devel@lists.sourceforge.net>

Depends: qt5-mac-qtcore-shlibs

BuildDepends: <<
	fink-package-precedence,
	qt5-mac-qtbase,
	qt5-mac-qtbase-dev-tools,
	qt5-mac-linguist
<<
Source: https://github.com/GPSBabel/gpsbabel/archive/refs/tags/gpsbabel_1_5_4.tar.gz
SourceDirectory: gpsbabel-gpsbabel_1_5_4
Source-Checksum: SHA256(8cd740db0b92610abff71e942e8a987df58cd6ca5f25cca86e15f2b00e190704)

DocFiles: COPYING README*

PatchFile: %n.patch
PatchFile-MD5: 31c847bb0bf7666761b9df7a20f15a76
PatchScript: <<
	%{default_script}
	perl -pi -e 's|/sw|%p|g' Makefile.in
<<
SetCPPFLAGS: -MD
CompileScript: <<
	#!/bin/sh -ev
	export PATH=%p/lib/qt5-mac/bin:$PATH
	%{default_script}
	fink-package-precedence --depfile-ext='\.d' .
<<
InstallScript: <<
	make install DESTDIR=%d
	mkdir -p %i/share/%n
	cp -pr style %i/share/%n/
<<