# -*- 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 75458 2011-01-25 17:05:22Z 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           sha1    e97f949716d786638af7235d7a2979bf50547426 \
                    rmd160  45987878b811f7b146511e859e89d0e28ccc1fb3

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+)+)
