diff --git a/easybuild/easyconfigs/g/GDAL/GDAL-3.6.2-foss-2022b.eb b/easybuild/easyconfigs/g/GDAL/GDAL-3.6.2-foss-2022b.eb new file mode 100644 index 00000000000..aac67f80329 --- /dev/null +++ b/easybuild/easyconfigs/g/GDAL/GDAL-3.6.2-foss-2022b.eb @@ -0,0 +1,80 @@ +easyblock = 'CMakeMake' + +name = 'GDAL' +version = '3.6.2' + +homepage = 'https://www.gdal.org' +description = """GDAL is a translator library for raster geospatial data formats that is released under an X/MIT style + Open Source license by the Open Source Geospatial Foundation. As a library, it presents a single abstract data model + to the calling application for all supported formats. It also comes with a variety of useful commandline utilities for + data translation and processing.""" + +toolchain = {'name': 'foss', 'version': '2022b'} +toolchainopts = {'usempi': True} + +source_urls = ['https://download.osgeo.org/gdal/%(version)s/'] +sources = [SOURCELOWER_TAR_XZ] +patches = ['GDAL-3.6.2_fix-python-CC-CXX.patch'] +checksums = [ + {'gdal-3.6.2.tar.xz': '35f40d2e08061b342513cdcddc2b997b3814ef8254514f0ef1e8bc7aa56cf681'}, + {'GDAL-3.6.2_fix-python-CC-CXX.patch': '859b874b0c8ff7626a76d51f008bf05b7f89a35b325bdd1d126d2364154acc63'}, +] + +builddependencies = [ + ('CMake', '3.24.3'), + ('pkgconf', '1.9.3'), + ('Bison', '3.8.2'), +] + +dependencies = [ + ('Python', '3.10.8'), + ('netCDF', '4.9.0'), + ('expat', '2.4.9'), + ('GEOS', '3.11.1'), + ('SQLite', '3.39.4'), + ('libxml2', '2.10.3'), + ('libpng', '1.6.38'), + ('libjpeg-turbo', '2.1.4'), + ('JasPer', '4.0.0'), + ('LibTIFF', '4.4.0'), + ('zlib', '1.2.12'), + ('cURL', '7.86.0'), + ('PCRE', '8.45'), + ('PROJ', '9.1.1'), + ('libgeotiff', '1.7.1'), + ('SciPy-bundle', '2023.02'), + ('HDF5', '1.14.0'), + ('HDF', '4.2.15'), + ('Armadillo', '11.4.3'), + ('CFITSIO', '4.2.0'), + ('zstd', '1.5.2'), + ('giflib', '5.2.1'), + ('json-c', '0.16'), + ('Xerces-C++', '3.2.4'), + ('PCRE2', '10.40'), + ('OpenEXR', '3.1.5'), + ('Brunsli', '0.1'), + ('Qhull', '2020.2'), + ('LERC', '4.0.0'), +] + +# common configopts for static, shared library builds +_base_configopts = ' '.join([ + '-DGDAL_USE_INTERNAL_LIBS=OFF', + '-DArrow_DIR=$EBROOTARROW', + '-DGEOTIFF_INCLUDE_DIR=$EBROOTLIBGEOTIFF/include', +]) + +# iterative build for both static and shared libraries +configopts = [' '.join([_base_configopts, x]) for x in ['-DBUILD_SHARED_LIBS=OFF', '']] + +modextrapaths = {'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages'} + +sanity_check_paths = { + 'files': ['lib/libgdal.a', 'lib/libgdal.%s' % SHLIB_EXT], + 'dirs': ['bin', 'include', 'lib/python%(pyshortver)s/site-packages'] +} + +sanity_check_commands = ["python -c 'import osgeo.gdal'"] + +moduleclass = 'data' diff --git a/easybuild/easyconfigs/g/GDAL/GDAL-3.6.2_fix-python-CC-CXX.patch b/easybuild/easyconfigs/g/GDAL/GDAL-3.6.2_fix-python-CC-CXX.patch new file mode 100644 index 00000000000..58528a793e6 --- /dev/null +++ b/easybuild/easyconfigs/g/GDAL/GDAL-3.6.2_fix-python-CC-CXX.patch @@ -0,0 +1,18 @@ +to ensure that correct compiler commands are used +Kenneth Hoste (HPC-UGent), updated for v3.6.2 by Jasper Grimm (UoY) +diff -ruN gdal-3.6.2.orig/swig/python/setup.py.in gdal-3.6.2/swig/python/setup.py.in +--- gdal-3.6.2.orig/swig/python/setup.py.in 2023-01-24 10:50:11.000000000 +0000 ++++ gdal-3.6.2/swig/python/setup.py.in 2023-01-02 14:38:17.000000000 +0000 +@@ -16,6 +16,12 @@ + from setuptools import find_packages + from setuptools import Extension + ++for key in ['CC', 'CXX']: ++ seqkey = '%s_SEQ' % key ++ if seqkey in os.environ: ++ os.environ[key] = os.environ[seqkey] ++ print('$%s set to %s (via $%s)' % (key, os.environ[key], seqkey)) ++ + # If CXX is defined in the environment, it will be used to link the .so + # but setuptools will be confused if it is made of several words like 'ccache g++' + # and it will try to use only the first word. diff --git a/easybuild/easyconfigs/l/libgeotiff/libgeotiff-1.7.1-GCCcore-12.2.0.eb b/easybuild/easyconfigs/l/libgeotiff/libgeotiff-1.7.1-GCCcore-12.2.0.eb new file mode 100644 index 00000000000..75956eab50a --- /dev/null +++ b/easybuild/easyconfigs/l/libgeotiff/libgeotiff-1.7.1-GCCcore-12.2.0.eb @@ -0,0 +1,36 @@ +easyblock = 'ConfigureMake' + +name = 'libgeotiff' +version = '1.7.1' + +homepage = 'https://directory.fsf.org/wiki/Libgeotiff' +description = """Library for reading and writing coordinate system information from/to GeoTIFF files""" + +toolchain = {'name': 'GCCcore', 'version': '12.2.0'} + +source_urls = ['https://download.osgeo.org/geotiff/libgeotiff'] +sources = [SOURCE_TAR_GZ] +checksums = ['05ab1347aaa471fc97347d8d4269ff0c00f30fa666d956baba37948ec87e55d6'] + +builddependencies = [ + ('binutils', '2.39'), +] + +dependencies = [ + ('PROJ', '9.1.1'), + ('libjpeg-turbo', '2.1.4'), + ('zlib', '1.2.12'), + ('SQLite', '3.39.4'), + ('LibTIFF', '4.4.0'), + ('cURL', '7.86.0'), +] + +configopts = ' --with-libtiff=$EBROOTLIBTIFF --with-proj=$EBROOTPROJ --with-zlib=$EBROOTZLIB' +configopts += ' --with-jpeg=$EBROOTLIBJPEGMINTURBO' + +sanity_check_paths = { + 'files': ['bin/listgeo', 'lib/libgeotiff.a', 'lib/libgeotiff.%s' % SHLIB_EXT], + 'dirs': ['include', 'share'], +} + +moduleclass = 'lib'