Commit bccd4ad6 authored by Carlos Ramos Carreño's avatar Carlos Ramos Carreño

Update GDAL dependencies.

GDAL now uses cmake instead of autotools, so we change the config
options accordingly.
Jasper is no longer a dependency, and openjpeg is used instead.
Proj4 was renamed to proj and also upgraded.
parent 3b741074
[buildout]
extends =
../numpy/buildout.cfg
../cmake/buildout.cfg
../curl/buildout.cfg
../geos/buildout.cfg
../giflib/buildout.cfg
../jasper/buildout.cfg
../libexpat/buildout.cfg
../libjpeg/buildout.cfg
../libtiff/buildout.cfg
../openjpeg/buildout.cfg
../pcre/buildout.cfg
../proj4/buildout.cfg
../proj/buildout.cfg
../sqlite3/buildout.cfg
../xz-utils/buildout.cfg
......@@ -19,24 +22,48 @@ recipe = slapos.recipe.cmmi
version = 3.9.0
url = http://download.osgeo.org/gdal/${:version}/gdal-${:version}.tar.xz
md5sum = 03717a7af435f89fa1e33d1c79af50dc
configure-command = ${cmake:location}/bin/cmake
configure-options =
--with-curl=${curl:location}/bin/curl-config
--with-expat=${libexpat:location}
--with-geos=${geos:location}/bin/geos-config
--with-gif=${giflib:location}
--with-jasper=${jasper:location}
--with-jpeg=${libjpeg:location}
--with-libtiff=${libtiff:location}
--with-libz=${zlib:location}
--with-png=${libpng:location}
--with-static-proj4=${proj4:location}
--with-sqlite3=${sqlite3:location}
--with-xml2=${libxml2:location}/bin/xml2-config
--without-webp
-DGDAL_USE_CURL=ON
-DCURL_INCLUDE_DIR=${curl:location}/include
-DCURL_LIBRARY_RELEASE=${curl:location}/lib/libcurl.so
-DGDAL_USE_EXPAT=ON
-DEXPAT_INCLUDE_DIR=${libexpat:location}/include
-DEXPAT_LIBRARY=${libexpat:location}/lib/libexpat.so
-DGDAL_USE_GEOS=ON
-DGEOS_INCLUDE_DIR=${geos:location}/include
-DGEOS_LIBRARY=${geos:location}/lib/libgeos.so
-DGDAL_USE_GIF=ON
-DGIF_INCLUDE_DIR=${giflib:location}/include
-DGIF_LIBRARY=${giflib:location}/lib/libgif.so
-DGDAL_USE_OPENJPEG=ON
-DOPENJPEG_INCLUDE_DIR=${openjpeg:location}/include
-DOPENJPEG_LIBRARY=${openjpeg:location}/lib/libopenjp2.so
-DGDAL_USE_JPEG=ON
-DJPEG_INCLUDE_DIR=${libjpeg:location}/include
-DJPEG_LIBRARY_RELEASE=${libjpeg:location}/lib/libjpeg.so
-DGDAL_USE_TIFF=ON
-DTIFF_INCLUDE_DIR=${libtiff:location}/include
-DTIFF_LIBRARY_RELEASE=${libtiff:location}/lib/libtiff.so
-DGDAL_USE_ZLIB=ON
-DZLIB_INCLUDE_DIR=${zlib:location}/include
-DZLIB_LIBRARY_RELEASE=${zlib:location}/lib/libz.so
-DGDAL_USE_PNG=ON
-DPNG_INCLUDE_DIR=${libpng:location}/include
-DPNG_LIBRARY_RELEASE=${libpng:location}/lib/libpng.so
-DPROJ_INCLUDE_DIR=${proj:location}/include
-DPROJ_LIBRARY_RELEASE=${proj:location}/lib/libproj.a
-DGDAL_USE_SQLITE3=ON
-DSQLite3_INCLUDE_DIR=${sqlite3:location}/include
-DSQLite3_LIBRARY=${sqlite3:location}/include/lib/libsqlite3.so
-DGDAL_USE_LIBXML2=ON
-DLIBXML2_INCLUDE_DIR=${libxml2:location}/include
-DLIBXML2_LIBRARY=${libxml2:location}/lib/libxml2.so
-DGDAL_USE_WEBP=OFF
environment =
PATH=${xz-utils:location}/bin:%(PATH)s
CPPFLAGS=-I${pcre:location}/include
LDFLAGS=-L${pcre:location}/lib -Wl,-rpath=${buildout:parts-directory}/${:_buildout_section_name_}/lib -Wl,-rpath=${curl:location}/lib -Wl,-rpath=${geos:location}/lib -Wl,-rpath=${giflib:location}/lib -Wl,-rpath=${jasper:location}/lib -Wl,-rpath=${jbigkit:location}/lib -Wl,-rpath=${libexpat:location}/lib -Wl,-rpath=${libjpeg:location}/lib -Wl,-rpath=${libpng:location}/lib -Wl,-rpath=${libtiff:location}/lib -Wl,-rpath=${libxml2:location}/lib -Wl,-rpath=${openssl:location}/lib -Wl,-rpath=${pcre:location}/lib -Wl,-rpath=${sqlite3:location}/lib -Wl,-rpath=${zlib:location}/lib
LDFLAGS=-L${pcre:location}/lib -Wl,-rpath=${buildout:parts-directory}/${:_buildout_section_name_}/lib -Wl,-rpath=${curl:location}/lib -Wl,-rpath=${geos:location}/lib -Wl,-rpath=${giflib:location}/lib -Wl,-rpath=${openjpeg:location}/lib -Wl,-rpath=${jbigkit:location}/lib -Wl,-rpath=${libexpat:location}/lib -Wl,-rpath=${libjpeg:location}/lib -Wl,-rpath=${libpng:location}/lib -Wl,-rpath=${libtiff:location}/lib -Wl,-rpath=${libxml2:location}/lib -Wl,-rpath=${openssl:location}/lib -Wl,-rpath=${pcre:location}/lib -Wl,-rpath=${sqlite3:location}/lib -Wl,-rpath=${zlib:location}/lib
[gdal-python]
recipe = zc.recipe.egg:custom
......
[buildout]
extends =
../cmake/buildout.cfg
parts =
openjpeg
[openjpeg]
recipe = slapos.recipe.cmmi
version = 2.5.2
url = https://github.com/uclouvain/openjpeg/archive/refs/tags/v${:version}.tar.gz
md5sum = f9ee64845881a15109ed0aa73a12202f
configure-command = ${cmake:location}/bin/cmake
configure-options =
-DCMAKE_BUILD_TYPE=Release
[buildout]
parts =
proj4
proj
[proj4]
[proj]
recipe = slapos.recipe.cmmi
version = 4.8.0
version = 9.4.0
url = http://download.osgeo.org/proj/proj-${:version}.tar.gz
md5sum = d815838c92a29179298c126effbb1537
md5sum = c33fd24cf4e3a3048c330b1b07e86b4f
configure-options =
--disable-dependency-tracking
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment