Source
# -*- 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
PortSystem 1.0
PortGroup mpi 1.0
PortGroup cxx11 1.1
name cdo
version 1.9.8
revision 0
platforms darwin
maintainers {takeshi @tenomoto} openmaintainer
license GPL-2
categories science
description Climate Data Operators
homepage https://code.mpimet.mpg.de/projects/cdo
master_sites https://code.mpimet.mpg.de/attachments/download/20826
checksums rmd160 c26192d80274a193556f924ddbb767e3e9283024 \
sha256 f2660ac6f8bf3fa071cf2a3a196b3ec75ad007deb3a782455e80f28680c5252a \
size 10793380
long_description \
CDO is a collection of command line Operators \
to manipulate and analyse Climate and NWP model Data. \
Supported data formats are GRIB 1/2, netCDF 3/4, SERVICE, \
EXTRA and IEG. There are more than 600 operators available.
fetch.ignore_sslcert yes
compilers.choose cc cxx
mpi.setup
mpi.enforce_variant hdf5
depends_lib port:netcdf \
port:hdf5 \
port:curl \
port:udunits2 \
port:proj \
port:fftw-3
patchfiles patch-skip-nc4-test.diff
configure.args --with-netcdf=${prefix} \
--disable-dependency-tracking \
--disable-openmp \
--with-proj=${prefix}/lib/proj5 \
--with-hdf5=${prefix} \
--with-udunits2=${prefix} \
--with-fftw3 \
--with-curl=${prefix} \
--with-zlib=${prefix}
configure.cppflags-append -I${prefix}/include/udunits2
configure.ldflags-append -lhdf5
test.run yes
test.dir ${worksrcpath}/test
test.args -j1
test.target check
# Setting configure.cc h5pcc has been removed because it causes error
# because -Wl,-headerpad_max_install_names does not work with -pthread.
# See hdfeos5 Portfile to set h5pcc.
post-destroot {