wok-next view gdal/receipt @ rev 20533

cairo-clock, grub4dos: fix CFLAGS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 27 12:50:45 2018 +0200 (2018-03-27)
parents d43bf7aae921
children 757d032c55c7
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gdal"
4 VERSION="2.2.2"
5 CATEGORY="meta"
6 SHORT_DESC="Geospatial Data Abstraction Library"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://www.gdal.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="http://download.osgeo.org/gdal/$VERSION/$TARBALL"
14 BUILD_DEPENDS="python-dev postgresql-dev geos-dev proj-dev curl-dev \
15 swig tiff-dev jasper-dev jpeg-dev perl-dev"
16 SPLIT="gdal gdal-dev gdal-bin gdal-datas libgdal"
18 compile_rules() {
19 fix math
20 ./configure \
21 --sysconfdir=/etc \
22 --localstatedir=/var \
23 --datadir=/usr/share/gdal \
24 --with-threads \
25 --with-perl \
26 --with-python \
27 --with-geos \
28 --with-sqlite3=no \
29 --with-ogr &&
30 make && make install BINDINGS="perl python"
31 }
33 genpkg_rules() {
34 case $PACKAGE in
35 gdal)
36 DEPENDS="libgdal gdal-bin gdal-datas"
37 ;;
38 gdal-dev)
39 copy @dev
40 DEPENDS="libgdal"
41 ;;
42 gdal-bin)
43 copy bin/ @rm # remove dev gdal-config
44 CAT="misc|tools"
45 DEPENDS="libgdal"
46 ;;
47 gdal-datas)
48 copy usr/share/gdal/
49 CAT="misc|datas"
50 DEPENDS="libgdal"
51 ;;
52 libgdal)
53 copy *.so*
54 CAT="misc|library"
55 DEPENDS="geos proj libcurl jasper libpostgresqlclient tiff"
56 ;;
57 esac
58 }