# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
github.setup gpsbabel gpsbabel 1_5_4 gpsbabel_
# some tricks because version at github is x_y_z
version [join [lrange [split ${version} _] 0 2] .]
if {${subport} eq ${name}} {
categories textproc comms
description GPSBabel converts/uploads GPS waypoints, tracks, and routes
long_description GPSBabel converts GPS waypoints, tracks, and routes \
from one format to another, whether that format is a \
common mapping format like Delorme, Streets and \
Trips, or even a serial upload or download to a GPS \
unit such as those from Garmin and Magellan.
homepage https://www.gpsbabel.org
depends_lib-append port:expat \
checksums rmd160 b38b81b38cd50cc4d1c36faa962afb02edb72cd3 \
sha256 fbec8cc36ff4b361e3eada286d3018d34579f919ac5398988e5e85061153fa22
compiler.cxx_standard 2011
if {${subport} eq ${name}} {
patchfiles-append patch-delbin.cc.diff
# see https://gitweb.gentoo.org/repo/gentoo.git/tree/sci-geosciences/gpsbabel
patchfiles-append patch-macports_libs.diff
# see https://github.com/gpsbabel/gpsbabel/commit/15f8b8b6ec5145a56d06d509b2e90076f75dd867
# see https://github.com/gpsbabel/gpsbabel/commit/30a345577a644125502f6e4f8b58ea3077ec8dad
patchfiles-append patch-qt5.diff
# avoid error: ordered comparison between pointer and zero ('const char *' and 'int')
patchfiles-append patch-bushnell.cc.diff
configure.universal_args-delete \
--disable-dependency-tracking
LRELEASE=${qt_lrelease_cmd} \
LUPDATE=${qt_lupdate_cmd}