wok-next view gdal/receipt @ rev 20200
libgnomeprint: add bison 3 patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 03 17:38:15 2017 +0100 (2017-11-03) |
parents | fa0726833541 |
children | d43bf7aae921 |
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/"
10 TARBALL="$PACKAGE-$VERSION.tar.xz"
11 WGET_URL="http://download.osgeo.org/gdal/$VERSION/$TARBALL"
13 BUILD_DEPENDS="python-dev postgresql-dev geos-dev proj-dev curl-dev \
14 swig tiff-dev jasper-dev jpeg-dev perl-dev"
15 SPLIT="gdal-bin gdal-datas gdal-dev gdal libgdal"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./configure --sysconfdir=/etc \
21 --localstatedir=/var \
22 --datadir=/usr/share/gdal \
23 --with-threads \
24 --with-perl \
25 --with-python \
26 --with-geos \
27 --with-sqlite3=no \
28 --with-ogr 2>&1 | grep -v config.rpath &&
29 make && make install BINDINGS="perl python"
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 case $PACKAGE in
36 gdal)
37 DEPENDS="libgdal gdal-bin gdal-datas"
38 mkdir $fs/usr
39 ;;
40 gdal-bin)
41 CAT="misc|GDAL Tools."
42 DEPENDS="libgdal"
43 mkdir -p $fs/usr
44 cp -a $install/usr/bin $fs/usr
45 rm -f $fs/usr/bin/gdal-config
46 ;;
47 gdal-datas)
48 CAT="misc|GDAL datas."
49 DEPENDS="libgdal"
50 mkdir -p $fs/usr/share
51 cp -a $install/usr/share/gdal $fs/usr/share
52 ;;
53 gdal-dev)
54 CAT="development|GDAL development headers."
55 DEPENDS="libgdal"
56 mkdir -p $fs/usr/bin $fs/usr/lib
57 cp -a $install/usr/include $fs/usr
58 cp -a $install/usr/lib/*.*a $fs/usr/lib
59 cp -a $install/usr/bin/gdal-config $fs/usr/bin
60 ;;
61 libgdal)
62 CAT="misc|Geospatial Data Abstraction Library."
63 DEPENDS="geos proj libcurl jasper libpostgresqlclient tiff"
64 mkdir -p $fs/usr/lib
65 cp -a $install/usr/lib/*.so* $fs/usr/lib
66 ;;
67 esac
68 }