20 | | master_sites ftp://ftp.soest.hawaii.edu/gmt \ |
21 | | ftp://ibis.grdl.noaa.gov/pub/gmt \ |
22 | | ftp://ftp.iris.washington.edu/pub/gmt \ |
23 | | ftp://ftp.iag.usp.br/pub/gmt \ |
24 | | ftp://ftp.geologi.uio.no/pub/gmt \ |
25 | | ftp://gd.tuwien.ac.at/pub/gmt \ |
26 | | ftp://ftp.scc.u-tokai.ac.jp/pub/gmt \ |
27 | | ftp://mirror.geosci.usyd.edu.au/pub/gmt \ |
28 | | ftp://gmt.mirror.ac.za/pub/gmt |
29 | | use_bzip2 yes |
30 | | set gshhsversion 2.1.1 |
31 | | set gmtsrc GMT${version}_src.tar.bz2 |
32 | | set gmtshare GMT${version}_share.tar.bz2 |
33 | | set gmtsuppl GMT${version}_suppl.tar.bz2 |
34 | | set gshhslow GSHHS${gshhsversion}_coast.tar.bz2 |
35 | | distfiles ${gmtsrc} ${gmtshare} ${gmtsuppl} ${gshhslow} |
36 | | checksums ${gmtsrc} \ |
37 | | md5 79cdb798b48c0411483d9b1c60944163 \ |
38 | | sha1 21c947e386368118a9c0f88bba2de0267c6357a6 \ |
39 | | rmd160 284f63b66009b411230fe32315dc3c8d4a8e3f4a \ |
40 | | ${gmtshare} \ |
41 | | md5 9b29e35a0c939345ae593dc6487c8b00 \ |
42 | | sha1 e1883826db21b4b04560a751d1aeeab23f51692d \ |
43 | | rmd160 5c6fa2f08ae3c4c202501b4c053e55b41465608b \ |
44 | | ${gmtsuppl} \ |
45 | | md5 1519e3fdfd337a852d53f5ce819ac3cc \ |
46 | | sha1 fc25a9b13d593dbcc51db5b14f42ec4867df0f1d \ |
47 | | rmd160 f3d355c0e2a0db44bcdbf6d5e892f363808d8ff9 \ |
48 | | ${gshhslow} \ |
49 | | md5 68a3f9eb6605c17b3369b6f6f5e94549 \ |
50 | | sha1 f54899ad197136271cdf17e0b0edc68a08718d0c \ |
51 | | rmd160 d75a9dcce2a36fa418054ab77b315f5595423a96 |
69 | | reinplace "s|-flat_namespace -undefined suppress||" ${worksrcpath}/configure |
70 | | } |
71 | | |
72 | | post-destroot { |
73 | | xinstall -m 755 -d ${destroot}${prefix}/share/${name} |
74 | | eval xinstall -m 644 [glob ${workpath}/share/coast/*] \ |
75 | | ${destroot}${prefix}/share/${name} |
76 | | } |
77 | | |
78 | | if {[variant_isset universal]} { |
79 | | configure.universal_args-delete --disable-dependency-tracking |
80 | | patch { |
81 | | reinplace "s|\$(AR) cvur \$@ \$?|if \[ -f \$@ \]; then \$(RM) \$@; fi;\$(AR) cvur \$@ \$?|" ${worksrcpath}/src/Makefile |
82 | | reinplace "s|-dynamiclib|-dynamiclib ${configure.universal_ldflags}|" ${worksrcpath}/configure |
83 | | } |
84 | | } else { |
85 | | patch { |
86 | | reinplace "s|-dynamiclib|-dynamiclib ${configure.cc_archflags}|" ${worksrcpath}/configure |
87 | | } |
88 | | configure.ldflags-append ${configure.cc_archflags} |
89 | | } |
90 | | |
91 | | variant gshhs description {installs high and full resolution GSHHS coast line data} { |
92 | | set gshhshigh GSHHS${gshhsversion}_high.tar.bz2 |
93 | | set gshhsfull GSHHS${gshhsversion}_full.tar.bz2 |
94 | | distfiles-append ${gshhshigh} ${gshhsfull} |
95 | | checksums-append \ |
96 | | ${gshhshigh} \ |
97 | | md5 78e23d1444452fa8ddc9b67e2ad89a01 \ |
98 | | sha1 599797908ba0258fc00706f634909e1494a55717 \ |
99 | | rmd160 4a3047276ba25bf20ee0310d0c6dcea8aa5f174c \ |
100 | | ${gshhsfull} \ |
101 | | md5 603c802f4408e33db974508ebc647ef9 \ |
102 | | sha1 95b26d901796d8bf8a6d7be0142d10e7f29473fb \ |
103 | | rmd160 63f779f17bb5ed54518aac73f723304bba0d394e \ |
104 | | } |
105 | | |
106 | | variant doc description {installs documentation, examples and tutorial} { |
107 | | set gmtdoc GMT${version}_doc.tar.bz2 |
108 | | distfiles-append ${gmtdoc} |
109 | | checksums-append ${gmtdoc} \ |
110 | | md5 9a7b78d58311beff31d47b42d0d30bad \ |
111 | | sha1 392546398e17910f1f47153e184eb4d8bbcb51e1 \ |
112 | | rmd160 180f74d1886b1693c416a98a06afe199929cb386 \ |
113 | | } |
114 | | |
115 | | variant octave description {compiles Octave interface} { |
116 | | depends_lib-append path:bin/octave:octave |
117 | | configure.args-append --enable-octave |
118 | | configure.args-delete --disable-mex |
119 | | } |
120 | | |
121 | | variant triangle description {use J. Shewchuk's fast, non-GPL triangulation routine} { |
122 | | set gmttri GMT${version}_triangle.tar.bz2 |
123 | | distfiles-append ${gmttri} |
124 | | checksums-append ${gmttri} \ |
125 | | md5 1812713d2e65edea2cabdc35b5867321 \ |
126 | | sha1 dabb2ab065ed214c1a831fbd84a420cc63360b22 \ |
127 | | rmd160 a8fb547530f857ffa8618c49609666d0a7551ebc |
128 | | |
129 | | configure.args-append --enable-triangle |
| 27 | ui_error "Please do not install this port since it has been replaced by 'gmt4'." |
| 28 | return -code error |