GDAL-3.3.0-intel-2021.02.eb 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. easyblock = 'ConfigureMake'
  2. name = 'GDAL'
  3. version = '3.3.0'
  4. homepage = 'https://www.gdal.org'
  5. description = """GDAL is a translator library for raster geospatial data formats that is released under an X/MIT style
  6. Open Source license by the Open Source Geospatial Foundation. As a library, it presents a single abstract data model
  7. to the calling application for all supported formats. It also comes with a variety of useful commandline utilities for
  8. data translation and processing."""
  9. toolchain = {'name': 'intel', 'version': '2021a'}
  10. toolchainopts = {'usempi': True}
  11. source_urls = ['https://download.osgeo.org/gdal/%(version)s/']
  12. sources = [SOURCELOWER_TAR_XZ]
  13. patches = ['GDAL-3.0.0_fix-python-CC-CXX.patch']
  14. checksums = [
  15. '190c8f4b56afc767f43836b2a5cd53cc52ee7fdc25eb78c6079c5a244e28efa7', # gdal-3.3.0.tar.xz
  16. '223a0ed1afb245527d546bb19e4f80c00f768516ab106d82e53cf36b5a1a2381', # GDAL-3.0.0_fix-python-CC-CXX.patch
  17. ]
  18. builddependencies = [
  19. ('pkg-config', '0.29.2'),
  20. ]
  21. dependencies = [
  22. ('Python', '3.9.5'),
  23. ('netCDF', '4.8.0'),
  24. ('expat', '2.2.9'),
  25. ('GEOS', '3.9.1'),
  26. ('SQLite', '3.35.4'),
  27. ('libxml2', '2.9.10'),
  28. ('libpng', '1.6.37'),
  29. ('libjpeg-turbo', '2.0.6'),
  30. ('JasPer', '2.0.28'),
  31. ('LibTIFF', '4.2.0'),
  32. ('zlib', '1.2.11'),
  33. ('cURL', '7.76.0'),
  34. ('PCRE2', '10.36'),
  35. ('PROJ', '8.0.1'),
  36. ('libgeotiff', '1.6.0'),
  37. ('SciPy-bundle', '2021.05'),
  38. ('HDF5', '1.10.7'),
  39. ('HDF', '4.2.15'),
  40. ]
  41. preconfigopts = "sed -e 's/-llapack/\$LIBLAPACK/g' -i.eb configure && "
  42. configopts = '--with-expat=$EBROOTEXPAT --with-libz=$EBROOTLIBZ'
  43. configopts += ' --with-hdf5=$EBROOTHDF5 --with-netcdf=$EBROOTNETCDF'
  44. configopts += ' --with-xml2=yes --with-geos=$EBROOTGEOS/bin/geos-config --with-jpeg=$EBROOTLIBJPEGMINTURBO'
  45. configopts += ' --with-png=$EBROOTLIBPNG --with-sqlite3=$EBROOTSQLITE --with-jasper=$EBROOTJASPER'
  46. configopts += ' --with-libtiff=$EBROOTLIBTIFF --with-pcre=$EBROOTPCRE2 --with-python=$EBROOTPYTHON/bin/python'
  47. configopts += ' --with-geotiff=$EBROOTLIBGEOTIFF --with-hdf4=$EBROOTHDF'
  48. modextrapaths = {'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages'}
  49. sanity_check_paths = {
  50. 'files': ['lib/libgdal.a', 'lib/libgdal.%s' % SHLIB_EXT],
  51. 'dirs': ['bin', 'include', 'lib/python%(pyshortver)s/site-packages']
  52. }
  53. sanity_check_commands = ["python -c 'import osgeo.gdal'"]
  54. moduleclass = 'data'