wok view postgis/receipt @ rev 24170
updated otf-gfs
author | Hans-G?nter Theisgen |
---|---|
date | Wed Dec 29 07:55:54 2021 +0100 (2021-12-29) |
parents | 8e6c7c571c39 |
children |
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 current_version()
18 {
19 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
20 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 export CFLAGS="$CFLAGS -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"
27 export CXXFLAGS="$CXXFLAGS -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"
28 ./configure --with-gui $CONFIGURE_ARGS \
29 && make -j 1 && make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cp -a $install/* $fs
36 rm -f $fs/usr/bin/shp2pgsql-gui
37 }
39 post_install_example()
40 {
41 database=test
42 chroot "$1/" createdb -U postgres -h localhost $database
43 chroot "$1/" psql -U postgres $database <<EOT
44 create extension postgis;
45 \q
46 EOT
47 }