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: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name nco |
---|
7 | version 4.0.0 |
---|
8 | platforms darwin |
---|
9 | revision 1 |
---|
10 | maintainers takeshi |
---|
11 | categories science |
---|
12 | description The netCDF Operators |
---|
13 | master_sites http://${name}.sourceforge.net/src/ |
---|
14 | checksums md5 e849b66166b7df2ff24eccd6c8e02f9f \ |
---|
15 | sha1 3e51a61e93f75666d02a81702c9fa74e896435bb \ |
---|
16 | rmd160 de7eddf392bdb5ed82ab2f3009237064f6e00a30 |
---|
17 | homepage http://nco.sourceforge.net/ |
---|
18 | long_description \ |
---|
19 | Each NCO operator (e.g., ncks) takes netCDF or HDF input file(s), \ |
---|
20 | performs an operation (e.g., averaging, hyperslabbing, or renaming), \ |
---|
21 | and outputs a processed netCDF file. Although most users of netCDF \ |
---|
22 | and HDF data are involved in scientific research, these data formats, \ |
---|
23 | and thus NCO, are generic and are equally useful in fields like finance. \ |
---|
24 | This version is OPeNDAP/DODS enabled, so it can be given \ |
---|
25 | URLs to read remote datasets as if they were local netCDF files. |
---|
26 | |
---|
27 | depends_lib port:curl \ |
---|
28 | port:gettext \ |
---|
29 | port:libdap \ |
---|
30 | port:libiconv \ |
---|
31 | port:libxml2 \ |
---|
32 | port:netcdf \ |
---|
33 | port:openssl \ |
---|
34 | port:udunits \ |
---|
35 | port:zlib \ |
---|
36 | port:antlr \ |
---|
37 | port:gsl |
---|
38 | depends_build port:bison \ |
---|
39 | port:m4 |
---|
40 | depends_run port:wget |
---|
41 | |
---|
42 | configure.env HAVE_ANTLR=yes ANTLR_ROOT=${prefix} |
---|
43 | configure.cppflags-append -I/usr/include/malloc |
---|
44 | configure.args --disable-dependency-tracking \ |
---|
45 | --mandir=${prefix}/share/man \ |
---|
46 | --enable-udunits --disable-udunits2 \ |
---|
47 | --disable-dap-netcdf \ |
---|
48 | --enable-dap-opendap \ |
---|
49 | --disable-netcdf4 |
---|
50 | |
---|
51 | post-destroot { |
---|
52 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} |
---|
53 | foreach f {ANNOUNCE ChangeLog LICENSE NEWS README TODO VERSION *.txt *.pdf} { |
---|
54 | eval xinstall -m 644 [glob ${worksrcpath}/doc/${f}] \ |
---|
55 | ${destroot}${prefix}/share/doc/${name} |
---|
56 | } |
---|
57 | } |
---|
58 | |
---|
59 | variant mpich2 description {enable MPI with mpich2} { |
---|
60 | depends_lib-append port:mpich2 |
---|
61 | configure.args-append --enable-mpi |
---|
62 | } |
---|
63 | |
---|
64 | variant openmpi description {enable MPI with openmpi} { |
---|
65 | depends_lib-append port:openmpi |
---|
66 | configure.args-append --enable-mpi |
---|
67 | } |
---|
68 | |
---|
69 | variant udunits2 description {compile with udunits2} { |
---|
70 | depends_lib-delete port:udunits |
---|
71 | depends_lib-append port:udunits2 |
---|
72 | configure.args-delete --enable-udunits --disable-udunits2 |
---|
73 | configure.args-append --disable-udunits --enable-udunits2 |
---|
74 | } |
---|
75 | |
---|
76 | # variant netcdf4 description {enable netcdf4} { |
---|
77 | # depends_lib-append port:hdf5-18 \ |
---|
78 | # port:szip |
---|
79 | # configure.env-append NETCDF4_ROOT=${prefix} |
---|
80 | # configure.cppflags-append -DHAVE_NETCDF4_H |
---|
81 | # configure.args-delete --disable-dap-netcdf \ |
---|
82 | # --enable-dap-opendap \ |
---|
83 | # --disable-netcdf4 |
---|
84 | # configure.args-append --enable-dap-netcdf \ |
---|
85 | # --disable-dap-opendap \ |
---|
86 | # --enable-netcdf4 |
---|
87 | # } |
---|
88 | |
---|
89 | livecheck.type regex |
---|
90 | livecheck.url ${homepage} |
---|
91 | livecheck.regex {Current NCO version is ([0-9]+\.[0-9]+\.[0-9]+)} |
---|