# -*- 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
# $Id: Portfile 116600 2014-01-29 23:18:35Z sean@macports.org $

PortSystem                  1.0
PortGroup                   github 1.0
PortGroup                   mpi 1.0

compilers.choose            cc cpp cxx
mpi.setup

mpi.enforce_variant         hdf5-18

github.setup                Unidata netcdf-cxx4 4.2.1 v
revision                    2
distname                    ${name}-${version}
maintainers                 takeshi openmaintainer
platforms                   darwin
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                    http://www.unidata.ucar.edu/software/netcdf/

checksums           md5     0ee2ee4e352b898c73d31807246e4020 \
                    sha1    0092782f03ce9b0544a29cca9696a4df9791f1f7 \
                    rmd160  f556381012b9ab904b1bc11bfec01a1dec507c0f

depends_lib         port:netcdf

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

test.run                    yes
test.target                 check

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