name = 'HDF5'
version = '1.8.16'
versionsuffix = '-threadsafe'

homepage = 'http://www.hdfgroup.org/HDF5/'
description = """HDF5 is a unique technology suite that makes possible the management of
 extremely large and local_complex data collections.

This is a thread-safe version, not necessarily thread-effecient. See https://gamma.hdfgroup.org/papers/features/mthdf/index.html
 """

toolchain = {'name': 'intel', 'version': '2015b'}
toolchainopts = {'optarch': True, 'pic': True, 'usempi': True}

source_urls = [
    'http://www.hdfgroup.org/ftp/HDF5/releases/hdf5-%(version)s/src']
sources = [SOURCELOWER_TAR_GZ]

patches = [
    'HDF5-1.8.15_configure_intel.patch',
    'configure_libtool.patch',
]

configopts = '--enable-threadsafe'
buildopts = 'CXXFLAGS="$CXXFLAGS -DMPICH_IGNORE_CXX_SEEK"'

dependencies = [
    ('zlib', '1.2.8'),
    ('Szip', '2.1'),
]

moduleclass = 'data'
