# -*- 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 104192 2013-03-20 14:18:41Z snc@macports.org $

PortSystem          1.0

name                gpsbabel
version             1.4.4
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  95a042fb035a5aaa2dcb50d430e36f384a575f4f \
                    sha256  9dd2a06e887cb286c9a07164a8f2ede11aed1147e6419007370c528412321944

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}
