easyblock = 'ConfigureMake'

name = 'GDAL'
version = "2.1.0"

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': 'foss', 'version': '2015g'}

source_urls = ['http://download.osgeo.org/gdal/']
sources = [SOURCELOWER_TAR_GZ]


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

configopts = '--with-python=/usr/bin/python '

# to avoid libtool error, http://www.michael-joost.de/gdal_install.html
preconfigopts = 'unset CC CPP CXX &&'
prebuildopts = 'unset CC CPP CXX &&'

sanity_check_paths = {
    'files': ['lib/libgdal.so', 'lib/libgdal.a'],
    'dirs': ['bin', 'include']
}

moduleclass = 'data'
