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 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup mpi 1.0 |
---|
5 | PortGroup cxx11 1.0 |
---|
6 | |
---|
7 | name cdo |
---|
8 | version 1.9.1 |
---|
9 | platforms darwin |
---|
10 | maintainers takeshi openmaintainer |
---|
11 | license GPL-2 |
---|
12 | categories science |
---|
13 | description Climate Data Operators |
---|
14 | homepage https://code.zmaw.de/projects/cdo |
---|
15 | master_sites https://code.mpimet.mpg.de/attachments/download/15653 |
---|
16 | checksums rmd160 19571f411157737f5dd2707cde36a94029ddf003 \ |
---|
17 | sha256 33cba3cfcc27e5896769143c5f8e2f300ca14c7a40d1f19ffd1ed24b49ea3d55 |
---|
18 | |
---|
19 | long_description \ |
---|
20 | CDO is a collection of command line Operators \ |
---|
21 | to manipulate and analyse Climate Data files. \ |
---|
22 | Supported data formats are GRIB, netCDF, SERVICE, EXTRA and IEG. \ |
---|
23 | There are more than 600 operators available. |
---|
24 | |
---|
25 | fetch.ignore_sslcert yes |
---|
26 | |
---|
27 | compilers.choose cc cxx |
---|
28 | mpi.setup -dragonegg |
---|
29 | mpi.enforce_variant hdf5 |
---|
30 | |
---|
31 | depends_lib port:netcdf \ |
---|
32 | port:hdf5 \ |
---|
33 | port:curl \ |
---|
34 | port:udunits2 \ |
---|
35 | port:proj \ |
---|
36 | port:fftw-3 |
---|
37 | |
---|
38 | configure.args --with-netcdf=${prefix} \ |
---|
39 | --disable-dependency-tracking \ |
---|
40 | --disable-openmp \ |
---|
41 | --with-proj=${prefix} \ |
---|
42 | --with-hdf5=${prefix} \ |
---|
43 | --with-udunits2=${prefix} \ |
---|
44 | --with-fftw3 \ |
---|
45 | --with-curl=${prefix} \ |
---|
46 | --with-zlib=${prefix} |
---|
47 | configure.cppflags-append -I${prefix}/include/udunits2 |
---|
48 | configure.ldflags-append -lhdf5 |
---|
49 | |
---|
50 | # Setting configure.cc h5pcc has been removed because it causes error |
---|
51 | # because -Wl,-headerpad_max_install_names does not work with -pthread. |
---|
52 | # See hdfeos5 Portfile to set h5pcc. |
---|
53 | |
---|
54 | post-destroot { |
---|
55 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} |
---|
56 | eval xinstall -m 644 [glob ${worksrcpath}/doc/*.pdf] ${destroot}${prefix}/share/doc/${name} |
---|
57 | foreach f {AUTHORS ChangeLog NEWS OPERATORS README} { |
---|
58 | eval xinstall -m 644 [glob ${worksrcpath}/${f}] ${destroot}${prefix}/share/doc/${name} |
---|
59 | } |
---|
60 | } |
---|
61 | |
---|
62 | if {[gcc_variant_isset]} { |
---|
63 | configure.args-delete --disable-openmp |
---|
64 | configure.args-append --enable-openmp |
---|
65 | } |
---|
66 | |
---|
67 | if {[clang_variant_isset]} { |
---|
68 | configure.args-delete --disable-openmp |
---|
69 | configure.args-append --enable-openmp |
---|
70 | } |
---|
71 | |
---|
72 | if {[variant_isset magicspp]} { |
---|
73 | default_variants +grib_api |
---|
74 | } |
---|
75 | |
---|
76 | variant grib2 description {obsoleted by grib_api variant} { |
---|
77 | default_variants +grib_api |
---|
78 | } |
---|
79 | |
---|
80 | variant grib_api description {enable grib2 support} { |
---|
81 | depends_lib-append port:grib_api |
---|
82 | configure.args-append --with-jasper=${prefix} \ |
---|
83 | --with-grib_api=${prefix} |
---|
84 | configure.ldflags-append -lpng -lopenjpeg |
---|
85 | } |
---|
86 | |
---|
87 | variant szip description {compile with szip support} { |
---|
88 | depends_lib-append port:szip |
---|
89 | configure.args-append --with-szlib=${prefix} |
---|
90 | } |
---|
91 | |
---|
92 | variant magicspp description {compile with ECMWF magics support} { |
---|
93 | depends_lib-append port:libxml2 \ |
---|
94 | port:magicspp |
---|
95 | configure.args-append --with-libxml2=${prefix} \ |
---|
96 | --with-magics=${prefix} |
---|
97 | } |
---|
98 | |
---|
99 | variant cdi description {build, install and link to a CDI library} { |
---|
100 | configure.args-append --enable-cdi-lib |
---|
101 | } |
---|
102 | |
---|
103 | livecheck.type regex |
---|
104 | livecheck.url ${homepage} |
---|
105 | livecheck.regex {Version ([0-9]+\.[0-9]+\.[0-9]+\.*[0-9]*)} |
---|