[buildout]
extends =
  ../cmake/buildout.cfg
  ../curl/buildout.cfg
  ../libtiff/buildout.cfg
  ../sqlite3/buildout.cfg

parts =
  proj

[proj]
recipe = slapos.recipe.cmmi
shared = true
version = 9.4.0
url = https://download.osgeo.org/proj/proj-${:version}.tar.gz
md5sum = c33fd24cf4e3a3048c330b1b07e86b4f
configure-command = ${cmake:location}/bin/cmake
configure-options =
  -DCMAKE_BUILD_TYPE=Release
  -DEXE_SQLITE3=${sqlite3:location}/bin/sqlite3
  -DSQLite3_INCLUDE_DIR=${sqlite3:location}/include
  -DSQLite3_LIBRARY=${sqlite3:location}/lib/libsqlite3.so
  -DCURL_INCLUDE_DIR=${curl:location}/include
  -DCURL_LIBRARY=${curl:location}/lib/libcurl.so
  -DTIFF_INCLUDE_DIR=${libtiff:location}/include
  -DTIFF_LIBRARY_RELEASE=${libtiff:location}/lib/libtiff.so
  -DCMAKE_INSTALL_PREFIX=@@LOCATION@@
  -DCMAKE_INSTALL_LIBDIR=lib
  -DCMAKE_INSTALL_RPATH=${curl:location}/lib:${libtiff:location}/lib:${sqlite3:location}/lib
