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