wok view postgis/receipt @ rev 21309
1) libfm-extra: fix build while using development sources
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Apr 18 17:17:32 2019 +0300 (2019-04-18) |
parents | e2ec3520cf88 |
children | 432dd31a79d5 |
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"
14 BUILD_DEPENDS="pkg-config postgresql-dev geos-dev proj-dev libxml2-dev \
15 gtk+-dev gdal-dev jasper-dev curl-dev libpostgresqlclient tiff"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./configure --with-gui $CONFIGURE_ARGS \
21 && make -j 1 && make install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 cp -a $install/* $fs
28 rm -f $fs/usr/bin/shp2pgsql-gui
29 }
31 post_install_example()
32 {
33 database=test
34 chroot "$1/" createdb -U postgres -h localhost $database
35 chroot "$1/" psql -U postgres $database <<EOT
36 create extension postgis;
37 \q
38 EOT
39 }