# -*- 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
# Still using configure/make system because CMakeLists.txt does not install nf-config.
# netcdf-fortran does not require the fortran interface of hdf5.
# enforcing hdf5 variant does not allow installation of
# hdf5+cxx (w/o a fortran variant) and netcdf-fortran.
#mpi.enforce_variant hdf5
github.setup Unidata netcdf-fortran 4.5.2 v
maintainers {takeshi @tenomoto} openmaintainer
description NetCDF Fortran Library
The Unidata network Common Data Form (netCDF) is an interface \
for scientific data access and a set of freely-distributed \
software libraries that provide an implementation of the interface. \
The netCDF library also defines a machine-independent format for \
representing scientific data. Together, the interface, library, \
and format support the creation, access, and sharing of scientific data. \
This software package provides Fortran application interfaces \
for accessing netCDF data.
checksums rmd160 f2660e976135b5db239a93aca167b96e28806765 \
sha256 f39f7c902d4db4d6a5ecdf6d13e400b23d67619fcea9af6313fb0f351d25cfe9 \
compilers.choose f77 f90 fc
mpi.setup require_fortran
# Fortran compilers can not cross-compile
if {${os.arch} eq "i386"} {
set universal_archs_supported "i386 x86_64"
set universal_archs_supported "ppc ppc64"
if {[variant_isset universal]} {
patchfiles-append patch-Makefile.in.diff
if {[variant_isset g95]} {
reinplace "s|lt_cv_ld_force_load=yes|lt_cv_ld_force_load=no|" ${worksrcpath}/configure
configure.cppflags-append -DNDEBUG \
configure.cflags-append -fno-common
if {[variant_isset g95]} {
configure.fflags-append -fno-second-underscore
configure.fcflags-append -fno-second-underscore