name = 'netCDF'
version = '4.8.0'
versionsuffix = '-test'

homepage = 'https://www.unidata.ucar.edu/software/netcdf/'
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."""

toolchain = {'name': 'gompi', 'version': '2021a'}
toolchainopts = {'usempi': True, 'pic': True}

source_urls = ['https://github.com/Unidata/%(namelower)s-c/archive/']
sources = ['v%(version)s.tar.gz']
checksums = ['aff58f02b1c3e91dc68f989746f652fe51ff39e6270764e484920cb8db5ad092']

builddependencies = [
    ('Autotools', '20210128', '', ('GCCcore', '10.3.0')),
    ('CMake', '3.20.1', '-test', ('GCCcore', '10.3.0')),
    ('Doxygen', '1.9.1', '', ('GCCcore', '10.3.0')),
]
dependencies = [
    ('HDF5', '1.10.7'),
    ('cURL', '7.76.0', '-test', ('GCCcore', '10.3.0')),
    ('Szip', '2.1.1', '', ('GCCcore', '10.3.0')),
]

# make sure both static and shared libs are built
configopts = [
    "-DBUILD_SHARED_LIBS=OFF -DHDF5_VERSION=$EBVERSIONHDF5 ",
    "-DBUILD_SHARED_LIBS=ON -DHDF5_VERSION=$EBVERSIONHDF5 ",
]


moduleclass = 'data'