GDAL: Add support for MKL driver (#12837)

This commit is contained in:
Adam J. Stewart 2019-09-18 13:47:31 -05:00 committed by GitHub
parent 680430df0f
commit 6d7e543cef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,9 +17,9 @@ class Gdal(AutotoolsPackage):
translation and processing. translation and processing.
""" """
homepage = "http://www.gdal.org/" homepage = "https://www.gdal.org/"
url = "http://download.osgeo.org/gdal/3.0.1/gdal-3.0.1.tar.xz" url = "https://download.osgeo.org/gdal/3.0.1/gdal-3.0.1.tar.xz"
list_url = "http://download.osgeo.org/gdal/" list_url = "https://download.osgeo.org/gdal/"
list_depth = 1 list_depth = 1
maintainers = ['adamjstewart'] maintainers = ['adamjstewart']
@ -61,6 +61,7 @@ class Gdal(AutotoolsPackage):
variant('openjpeg', default=False, description='Include JPEG-2000 support via OpenJPEG 2.x library') variant('openjpeg', default=False, description='Include JPEG-2000 support via OpenJPEG 2.x library')
variant('xerces', default=False, description='Use Xerces-C++ parser') variant('xerces', default=False, description='Use Xerces-C++ parser')
variant('expat', default=False, description='Use Expat XML parser') variant('expat', default=False, description='Use Expat XML parser')
variant('libkml', default=False, description='Use Google libkml')
variant('odbc', default=False, description='Include ODBC support') variant('odbc', default=False, description='Include ODBC support')
variant('curl', default=False, description='Include curl') variant('curl', default=False, description='Include curl')
variant('xml2', default=False, description='Include libxml2') variant('xml2', default=False, description='Include libxml2')
@ -118,6 +119,7 @@ class Gdal(AutotoolsPackage):
depends_on('openjpeg', when='+openjpeg') depends_on('openjpeg', when='+openjpeg')
depends_on('xerces-c', when='+xerces') depends_on('xerces-c', when='+xerces')
depends_on('expat', when='+expat') depends_on('expat', when='+expat')
depends_on('libkml@1.3.0:', when='+libkml')
depends_on('unixodbc', when='+odbc') depends_on('unixodbc', when='+odbc')
depends_on('curl@7.10.8:', when='+curl') depends_on('curl@7.10.8:', when='+curl')
depends_on('libxml2', when='+xml2') depends_on('libxml2', when='+xml2')
@ -322,6 +324,13 @@ def configure_args(self):
else: else:
args.append('--with-expat=no') args.append('--with-expat=no')
# https://trac.osgeo.org/gdal/wiki/LibKML
# https://gdal.org/drivers/vector/libkml.html
if '+libkml' in spec:
args.append('--with-libkml={0}'.format(spec['libkml'].prefix))
else:
args.append('--with-libkml=no')
if '+odbc' in spec: if '+odbc' in spec:
args.append('--with-odbc={0}'.format(spec['unixodbc'].prefix)) args.append('--with-odbc={0}'.format(spec['unixodbc'].prefix))
else: else:
@ -430,8 +439,6 @@ def configure_args(self):
'--with-mysql=no', '--with-mysql=no',
# https://trac.osgeo.org/gdal/wiki/Ingres # https://trac.osgeo.org/gdal/wiki/Ingres
'--with-ingres=no', '--with-ingres=no',
# https://trac.osgeo.org/gdal/wiki/LibKML
'--with-libkml=no',
'--with-dods-root=no', '--with-dods-root=no',
'--with-spatialite=no', '--with-spatialite=no',
'--with-idb=no', '--with-idb=no',