wok-current view postgis/receipt @ rev 22374

updated ilmbase and ilmbase-dev again (2.2.0 -> 2.3.0)
author Hans-G?nter Theisgen
date Wed Nov 27 16:47:30 2019 +0100 (2019-11-27)
parents 432dd31a79d5
children a3c45ab9082e
line source
1 # SliTaz package receipt.
3 PACKAGE="postgis"
4 VERSION="2.2.0"
5 CATEGORY="misc"
6 SHORT_DESC="Support for geographic objects to PostgreSQL"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://postgis.refractions.net/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="http://download.osgeo.org/postgis/source/$TARBALL"
13 DEPENDS="geos proj libpostgresqlclient libxml2 libgdal libpng sqlite"
14 BUILD_DEPENDS="pkg-config postgresql-dev geos-dev proj-dev libxml2-dev \
15 gtk+-dev gdal-dev jasper-dev curl-dev libpostgresqlclient tiff sqlite-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 export CFLAGS="$CFLAGS -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"
21 export CXXFLAGS="$CXXFLAGS -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"
22 ./configure --with-gui $CONFIGURE_ARGS \
23 && make -j 1 && make install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 cp -a $install/* $fs
30 rm -f $fs/usr/bin/shp2pgsql-gui
31 }
33 post_install_example()
34 {
35 database=test
36 chroot "$1/" createdb -U postgres -h localhost $database
37 chroot "$1/" psql -U postgres $database <<EOT
38 create extension postgis;
39 \q
40 EOT
41 }