name = 'HDF5'
# Note: Odd minor releases are only RCs and should not be used.
version = '1.12.2'

homepage = 'https://portal.hdfgroup.org/display/support'
description = """HDF5 is a data model, library, and file format for storing and managing data.
 It supports an unlimited variety of datatypes, and is designed for flexible
 and efficient I/O and for high volume and complex data."""

toolchain = {'name': 'iompi', 'version': '2022.05'}
toolchainopts = {'pic': True, 'usempi': True}

source_urls = ['https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-%(version_major_minor)s/hdf5-%(version)s/src']
sources = [SOURCELOWER_TAR_GZ]
checksums = ['2a89af03d56ce7502dcae18232c241281ad1773561ec00c0f0e8ee2463910f14']

dependencies = [
    ('zlib', '1.2.12'),
    ('Szip', '2.1.1'),
]

#buildopts = 'CFLAGS="$CFLAGS -march=core-avx2" CXXFLAGS="$CXXFLAGS -march=core-avx2" FCFLAGS="$FCFLAGS -march=core-avx2" F90FLAGS="$F90FLAGS -march=core-avx2" FFLAGS="$FFLAGS -march=core-avx2"'

moduleclass = 'data'
