# -*- 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 87243 2011-11-14 23:04:37Z snc@macports.org $

PortSystem          1.0

name                gpsbabel
version             1.4.2
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/

depends_lib         port:expat port:libusb-compat port:zlib

master_sites        http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/distfiles/

checksums           rmd160  45987878b811f7b146511e859e89d0e28ccc1fb3 \
                    sha256  e93d7a6620d4048a781e82c26e287db3e1dc525d4b293479546cf9887bc2800a

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}/download.html
livecheck.regex     ${name}-(\\d+(\\.\\d+)+)${extract.suffix}
