# IT4Innovations 2018 easyblock = 'ConfigureMake' name = 'GDAL' version = '2.3.2' versionsuffix = '-Py-2.7' homepage = 'http://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': 'GCC', 'version': '6.3.0-2.27'} source_urls = ['http://download.osgeo.org/gdal/%(version)s/'] sources = [SOURCELOWER_TAR_XZ] dependencies = [ ('Py', '2.7', '', True), ('netCDF', '4.6.1'), ('expat', '2.2.6'), ('GEOS', '3.7.0', versionsuffix), ('SQLite', '3.25.2'), ('libxml2', '2.9.8'), ('libpng', '1.6.29'), ('libjpeg-turbo', '2.0.0'), ('JasPer', '2.0.14'), ('LibTIFF', '4.0.7'), ('zlib', '1.2.11', '', True), ('cURL', '7.61.1'), ('PCRE', '8.42'), ('PROJ_4', '4.9.2'), ] configopts = '--with-expat=$EBROOTEXPAT --with-libz=$EBROOTLIBZ --with-netcdf=$EBROOTNETCDF' configopts += ' --with-xml2=$EBROOTLIBXML2 --with-geos=$EBROOTGEOS/bin/geos-config --with-jpeg=$EBROOTLIBJPEGMINTURBO' configopts += ' --with-png=$EBROOTLIBPNG --with-sqlite3=$EBROOTSQLITE --with-jasper=$EBROOTJASPER' configopts += ' --with-libtiff=$EBROOTLIBTIFF --with-pcre=$EBROOTPCRE --with-python=$EBROOTPYTHON/bin/python --with-static-proj' modextrapaths = {'PYTHONPATH': 'lib/python2.7/site-packages'} sanity_check_paths = { 'files': ['lib/libgdal.a', 'lib/libgdal.%s' % SHLIB_EXT], 'dirs': ['bin', 'include', 'lib/python2.7/site-packages'] } moduleclass = 'data'