Ticket #34960: Portfile

File Portfile, 1.7 KB (added by klee@…, 12 years ago)
Line 
1# -*- 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
2# $Id$
3
4PortSystem          1.0
5
6name                geotrans
7version             3.2
8platforms           darwin
9categories                      gis
10
11license                         NGA
12# http://earth-info.nga.mil/GandG/geotrans/docs/MSP_GeoTrans_Terms_of_Use.pdf
13
14maintainers         openmaintainer mit.edu:klee hadronindustries.com:klee.dienes
15description         MSP GEOTRANS (Geographic Translator)
16long_description    Convert geographic coordinates among a wide variety of coordinate systems, map projections, and datums.
17
18homepage            http://earth-info.nga.mil/GandG/geotrans/
19master_sites        http://earth-info.nga.mil/GandG/geotrans/geotrans3.2/
20
21distfiles                       master.tgz
22
23checksums           rmd160  f748001737becc4ac9e2e6aec00104e06ab17b9d \
24                    sha256  0806d8f492e2698e1617093d4e7eb7b74ad8a28d6581dc6675e36067299e399f
25
26patchfiles          autotools.diff datadir.diff
27worksrcdir                  ${name}${version}
28
29use_autoreconf          yes
30autoreconf.dir          ${worksrcpath}/CCS/autotools
31automake.dir            ${worksrcpath}/CCS/autotools
32autoconf.dir            ${worksrcpath}/CCS/autotools
33configure.dir           ${worksrcpath}/CCS/autotools
34build.dir                       ${worksrcpath}/CCS/autotools
35
36variant debug description { Include debug symbols } {
37configure.args-append --enable-debug
38configure.cflags-append -g
39configure.cxxflags-append -g
40configure.cflags-delete     -O1 -O2 -O3 -mtune=native
41configure.cxxflags-delete   -O1 -O2 -O3 -mtune=native
42post-destroot { 
43    ui_debug "Generating debug symbols: find ${destroot}${prefix} -type f -name '*.dylib' -exec dsymutil {} +" 
44    system -W ${destroot}${prefix} "find . -type f -name *.dylib -exec dsymutil {} +" 
45} 
46}