PROJECT_MOVED -> https://lab.nexedi.com/nexedi/slapos
[slapos.git] / component / gdal / buildout.cfg
1 [buildout]
2 extends =
3   ../numpy/buildout.cfg
4   ../curl/buildout.cfg
5   ../geos/buildout.cfg
6   ../giflib/buildout.cfg
7   ../jasper/buildout.cfg
8   ../libexpat/buildout.cfg
9   ../pcre/buildout.cfg
10   ../proj4/buildout.cfg
11   ../sqlite3/buildout.cfg
12   ../webp/buildout.cfg
13
14 parts =
15   gdal-python
16
17 [gdal]
18 recipe = slapos.recipe.cmmi
19 version = 1.11.1
20 url = http://download.osgeo.org/gdal/${:version}/gdal-${:version}.tar.xz
21 md5sum = 2e126d7c6605691d38f3e71b945f5c73
22 configure-options =
23   --with-curl=${curl:location}/bin/curl-config
24   --with-expat=${libexpat:location}
25   --with-geos=${geos:location}/bin/geos-config
26   --with-gif=${giflib:location}
27   --with-jasper=${jasper:location}
28   --with-jpeg=${libjpeg:location}
29   --with-libtiff=${libtiff:location}
30   --with-libz=${zlib:location}
31   --with-png=${libpng:location}
32   --with-static-proj4=${proj4:location}
33   --with-sqlite3=${sqlite3:location}
34   --with-wepb=${webp:location}
35   --with-xml2=${libxml2:location}/bin/xml2-config
36 environment =
37   CPPFLAGS=-I${pcre:location}/include
38   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=${webp:location}/lib -Wl,-rpath=${zlib:location}/lib
39
40 [gdal-python]
41 recipe = zc.recipe.egg:custom
42 egg = GDAL ==${gdal:version}
43 setup-eggs = ${numpy:egg}
44 rpath = ${:library-dirs}
45 include-dirs =
46   ${gdal:location}/include
47 library-dirs =
48   ${gdal:location}/lib
49 environment = gdal-python-env
50
51 [gdal-python-env]
52 PATH = ${gdal:location}/bin:%(PATH)s