# -*- 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
# $Id: Portfile 59722 2009-10-21 00:06:24Z snc@macports.org $

PortSystem      1.0

name            gpsbabel
version         1.3.6
revision        1
categories      textproc comms
license         GPL
maintainers     snc openmaintainer
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.
platforms       darwin
homepage        http://www.gpsbabel.org/
master_sites        ${homepage}plan9.php?dl=
checksums       md5 1571b31f8f06f722995449dbff01ca49

depends_lib     port:expat port:libusb-compat

configure.args  --with-zlib=system --with-expathdr=${prefix}/include --with-libexpat=${prefix}/lib

post-destroot {
        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
        xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING README.contrib README.igc README.magnav \
          README.mapconverter README.psp README.xmapwpt ${destroot}${prefix}/share/doc/${name}
}

livecheck.type  regex
livecheck.url   ${homepage}
livecheck.regex "GPSBabel (\\d\\.\\d\\.\\d) released"
