Skip to content

Commit

Permalink
adding easyconfigs: HDF-4.2.16-GCCcore-12.3.0.eb
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoldeman committed Oct 21, 2023
1 parent deadea9 commit 128cb36
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions easybuild/easyconfigs/h/HDF/HDF-4.2.16-GCCcore-12.3.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
easyblock = 'ConfigureMake'

name = 'HDF'
version = '4.2.16'

homepage = 'https://www.hdfgroup.org/products/hdf4/'

description = """
HDF (also known as HDF4) is a library and multi-object file format for
storing and managing data between machines.
"""

toolchain = {'name': 'GCCcore', 'version': '12.3.0'}
toolchainopts = {'pic': True}

source_urls = ['http://www.hdfgroup.org/ftp/HDF/releases/HDF%(version)s/src/']
sources = [SOURCELOWER_TAR_GZ]
checksums = ['2bd48dcefb5ab4829fba27dca6fad20b842d495dfd64944b2412b2b0968bf167']

builddependencies = [
('binutils', '2.40'),
('Bison', '3.8.2'),
('flex', '2.6.4'),
]

dependencies = [
('libjpeg-turbo', '2.1.5.1'),
('Szip', '2.1.1'),
('zlib', '1.2.13'),
('libtirpc', '1.3.3'),
]

local_common_configopts = '--with-szlib=$EBROOTSZIP CFLAGS="$CFLAGS -I$EBROOTLIBTIRPC/include/tirpc" '
local_common_configopts += '--includedir=%(installdir)s/include/%(namelower)s '
configopts = [
local_common_configopts,
# netcdf must be disabled to allow HDF to be used by GDAL
local_common_configopts + "--enable-shared --disable-netcdf",
]

modextrapaths = {'CPATH': 'include/hdf'}

sanity_check_paths = {
'files': ['bin/h4cc', 'bin/ncdump', 'lib/libdf.a', 'lib/libhdf4.settings', 'lib/libmfhdf.a',
'lib/libmfhdf.%s' % SHLIB_EXT],
'dirs': ['include/hdf'],
}

sanity_check_commands = [
"h4cc --help",
"ncdump -V",
]

moduleclass = 'data'

0 comments on commit 128cb36

Please sign in to comment.