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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name gmt5 |
---|
7 | version 5.0.0b |
---|
8 | revision 1 |
---|
9 | categories science |
---|
10 | platforms darwin |
---|
11 | maintainers fwobbe |
---|
12 | license LGPL-3 |
---|
13 | description the generic mapping tools |
---|
14 | long_description GMT is an open source collection of ~65 tools \ |
---|
15 | for manipulating geographic and Cartesian data sets and \ |
---|
16 | producing Encapsulated PostScript File (EPS) illustrations \ |
---|
17 | ranging from simple x-y plots via contour maps to \ |
---|
18 | artificially illuminated surfaces and 3-D perspective views. |
---|
19 | conflicts gmt |
---|
20 | homepage http://www.soest.hawaii.edu/gmt5 |
---|
21 | master_sites ftp://ftp.soest.hawaii.edu/gmt5 \ |
---|
22 | ftp://ibis.grdl.noaa.gov/pub/gmt5 \ |
---|
23 | ftp://ftp.iris.washington.edu/pub/gmt5 \ |
---|
24 | ftp://ftp.iag.usp.br/pub/gmt5 \ |
---|
25 | ftp://ftp.geologi.uio.no/pub/gmt5 \ |
---|
26 | ftp://gd.tuwien.ac.at/pub/gmt5 \ |
---|
27 | ftp://ftp.scc.u-tokai.ac.jp/pub/gmt5 |
---|
28 | ftp://mirror.geosci.usyd.edu.au/pub/gmt5 \ |
---|
29 | ftp://gmt.mirror.ac.za/pub/gmt5 |
---|
30 | use_bzip2 yes |
---|
31 | set gshhsversion 2.2.0 |
---|
32 | set gmtsrc gmt-${version}.tar.bz2 |
---|
33 | set gshhs gshhs-${gshhsversion}.tar.bz2 |
---|
34 | distfiles ${gmtsrc} ${gshhs} |
---|
35 | checksums ${gmtsrc} \ |
---|
36 | md5 c5b78de5edab4c42a8a08e7fcfa976b4 \ |
---|
37 | sha1 73b16b25e59fa1cd74bfc01bdeb8170924cbda0c \ |
---|
38 | rmd160 175a752b6a4027454a1163f638f2deb0abf62082 \ |
---|
39 | ${gshhs} \ |
---|
40 | md5 db98bff37adc0d51fdf0ffa3834d45ad \ |
---|
41 | sha1 786d58b9a335d3bacb37f40f21ee3bfbb424cd10 \ |
---|
42 | rmd160 aa744b2fdcdf849cc5c4abce97f1d29f4cdc20a4 |
---|
43 | |
---|
44 | worksrcdir GMT${version} |
---|
45 | |
---|
46 | depends_lib port:netcdf \ |
---|
47 | port:pcre |
---|
48 | post-extract { |
---|
49 | # move GSHHS coastlines to worksrcpath |
---|
50 | system "mv ${workpath}/share/coast ${worksrcpath}/share && rmdir ${workpath}/share" |
---|
51 | system "mv ${workpath}/{LICENSE.TXT,README.TXT} ${worksrcpath}/share/coast" |
---|
52 | } |
---|
53 | |
---|
54 | configure.pre_args --prefix=${prefix}/lib/${name} |
---|
55 | configure.args --datarootdir=${prefix}/share/${name} \ |
---|
56 | --docdir=${prefix}/share/doc/${name} \ |
---|
57 | --mandir=${prefix}/share/doc/${name}/man \ |
---|
58 | --includedir=${prefix}/share/${name}/include \ |
---|
59 | --enable-shared \ |
---|
60 | --enable-flock \ |
---|
61 | --disable-xgrid \ |
---|
62 | --disable-mex |
---|
63 | configure.optflags-delete -O2 |
---|
64 | |
---|
65 | use_parallel_build no |
---|
66 | universal_variant no |
---|
67 | destroot.target install-all |
---|
68 | configure.ldflags-delete -L${prefix}/lib |
---|
69 | |
---|
70 | post-destroot { |
---|
71 | ln -s ../doc/${name} ${destroot}${prefix}/share/${name}/doc |
---|
72 | ln -s ../../share/doc/${name}/man ${destroot}${prefix}/lib/${name}/man |
---|
73 | ln -s ../../share/${name}/include ${destroot}${prefix}/lib/${name}/include |
---|
74 | ln -s ../../share/${name} ${destroot}${prefix}/lib/${name}/share |
---|
75 | } |
---|
76 | |
---|
77 | variant octave description {compiles Octave interface} { |
---|
78 | depends_lib-append path:bin/octave:octave |
---|
79 | configure.args-append --enable-octave |
---|
80 | } |
---|
81 | |
---|
82 | variant gdal description {Experimental GDAL import support} { |
---|
83 | depends_lib-append port:gdal |
---|
84 | configure.args-append --enable-gdal |
---|
85 | } |
---|
86 | |
---|
87 | variant triangle description {use J. Shewchuk's fast, non-GPL triangulation routine} { |
---|
88 | configure.args-append --enable-triangle |
---|
89 | } |
---|
90 | |
---|
91 | livecheck.type regex |
---|
92 | livecheck.url http://www.soest.hawaii.edu/gmt5/gmt/gmt_home.html |
---|
93 | livecheck.regex {Current version is [^0-9 ]*([0-9]+\.[0-9]+\.[0-9a-z]+)} |
---|
94 | |
---|