name = 'netCDF'
version = '4.4.1.1'
hdf5_ver = '1.8.19'
versionsuffix = '-HDF5-%s' % hdf5_ver

homepage = 'http://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': 'foss', 'version': '2017b'}
toolchainopts = {'pic': True, 'usempi': True}

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

dependencies = [
    ('HDF5', hdf5_ver),
    ('cURL', '7.56.0'),
    ('Szip', '2.1.1'),
]

builddependencies = [
    ('Autotools', '20170619'),
    ('CMake', '3.9.5'),
    ('Doxygen', '1.8.13'),
]

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

moduleclass = 'data'
