source $GRIMOIRE/CMAKE_DEPENDS &&
depends zlib    &&
depends tiff    &&
depends -sub CXX gcc &&
depends geos    &&
depends libgeotiff   &&
depends libpng  &&
depends JPEG    &&
depends GIFLIB  &&
depends qhull   &&
depends zstd    &&
depends libxml2 &&
optional_depends curl '' ''    'cURL support' &&
optional_depends SSL '' ''     'crypto' &&
optional_depends poppler '' '' 'PDF support' &&
optional_depends xerces-c '' '' 'xml parsing' &&
optional_depends cfitsio '' ''  'Flexible Image Transport System support' &&
optional_depends netcdf '' ''   'Network Common Data Form support' &&
optional_depends ogdi '' ''     'OGDI Bridge' &&
optional_depends hdf4 '' ''     'Hierarchical Data Format Release 4 support' &&
optional_depends hdf5 '' ''     'Hierarchical Data Format Release 5 support' &&
optional_depends jasper '' ''   'JPEG2000 support' &&

optional_depends python3 ' -DBUILD_PYTHON_BINDINGS=1' ' -DBUILD_PYTHON_BINDINGS=0' 'Enable python bindings' &&

if is_depends_enabled $SPELL python3;then
  depends numpy
fi &&
optional_depends swig '' '' 'various bindings' &&
if is_depends_enabled $SPELL swig;then
  optional_depends perl '' ''   'Enable perl bindings' &&
  optional_depends php '' ''    'Enable php bindings' &&
  optional_depends RUBY '' ''   'Enable Ruby bindings'
fi &&

# database bindings
optional_depends sqlite     '' '' 'Use SQLite 3 library' &&
optional_depends unixodbc   '' '' 'ODBC support' &&
optional_depends postgresql '' '' 'Postgresql OGR support' &&
optional_depends mysql      '' '' 'MySQL support' 
