# -*- 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                   github 1.0

#PortGroup                   cmake 1.0
PortGroup                   mpi 1.0

github.setup                Unidata netcdf-cxx4 4.3.2 v
github.tarball_from         archive
revision                    0
maintainers                 nomaintainer
categories                  science
license                     Permissive

description                 NetCDF new C++ library
long_description \
    NetCDF (network Common Data Form) is a set of software libraries \
    and machine-independent data formats that support the creation,  \
    access, and sharing of array-oriented scientific data.

homepage                    https://www.unidata.ucar.edu/software/netcdf/

checksums           rmd160  58e76b4fddc00afef3c59da049481a330c497997 \
                    sha256  f7afc1a69b5d82b3892a2d4cf2823767657a5e51a8c1170bf14b0fc6648cf2b8 \
                    size    6602472

compilers.choose            cc cpp cxx
compiler.cxx_standard       2011
mpi.setup

#cmake.out_of_source         yes

#mpi.enforce_variant         hdf5

depends_lib                 port:netcdf

configure.args              --disable-filter-testing

configure.cppflags-append   -DNDEBUG
configure.cxxflags-append   -fno-common
configure.cflags-append     -fno-common
configure.ldflags-append    -lnetcdf

test.run                    yes
test.target                 check

destroot.destdir            prefix=${destroot}${prefix}
