Ticket #2244: gpsbabel-Portfile

File gpsbabel-Portfile, 1.3 KB (added by thomas+opendarwin@…, 20 years ago)

textproc/gpsbabel Portfile

Line 
1# $Id: Portfile,v 1.4 2004/01/18 04:54:50 toby Exp $
2
3PortSystem 1.0
4name            gpsbabel
5version         1.2.3
6categories      textproc comms
7maintainers     thomas+darwinports@stromberg.org
8description     GPSBabel converts and or uploads GPS waypoints, tracks, and routes
9long_description        GPSBabel converts GPS waypoints, tracks, and routes from \
10                        one format to another, whether that format is a common \
11                        mapping format like Delorme, Streets and Trips, or even \
12                        a serial upload or download to a GPS unit such as those \
13                        from Garmin and Magellan.
14homepage        http://gpsbabel.sourceforge.net
15platforms       darwin
16master_sites    sourceforge
17checksums       md5 bd818aba946f3956cad4ccef154abb47
18
19depends_lib     lib:libexpat.0:expat
20use_configure   no
21build.env       EXTRA_CFLAGS="-I${prefix}/include -L${prefix}/lib"
22
23
24configure {
25    cd ${worksrcpath}
26    reinplace "s|/usr/local|${destroot}|g" ${worksrcpath}/Makefile
27}
28
29destroot {
30        xinstall -m 755 -d ${destroot}/${prefix}/bin
31        xinstall -m 755 -W ${worksrcpath} gpsbabel ${destroot}/${prefix}/bin/
32        xinstall -m 755 -d ${destroot}/${prefix}/share/doc/${name}
33        xinstall -m 644 -W ${worksrcpath} README README.contrib README.magnav \
34               README.mapconverter README.psp README.xmapwpt \
35                ${destroot}/${prefix}/share/doc/${name}
36}
37
38#destroot.destdir       prefix=${destroot}${prefix}