wok-next view postgis/receipt @ rev 20143

postgresql: receipt v2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 01 11:18:25 2017 +0100 (2017-11-01)
parents d28893c091dc
children d43bf7aae921
line source
1 # SliTaz package receipt v2.
3 PACKAGE="postgis"
4 VERSION="2.4.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 BUILD_DEPENDS="pkg-config postgresql-dev geos-dev proj-dev libxml2-dev \
14 gtk+-dev gdal-dev jasper-dev curl-dev libpostgresqlclient tiff"
15 SPLIT="postgis-gui"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 touch config.rpath
21 ./configure --with-gui $CONFIGURE_ARGS \
22 && make -j 1 && make install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 case $PACKAGE in
29 postgis)
30 DEPENDS="geos proj libpostgresqlclient libxml2 libgdal"
31 cp -a $install/* $fs
32 rm -f $fs/usr/bin/shp2pgsql-gui
33 ;;
34 postgis-gui)
35 CAT="misc|Support for geographic objects to PostgreSQL"
36 DEPENDS="gtk+ postgis"
37 mkdir -p $fs/usr/bin
38 cp -a $install/usr/bin/shp2pgsql-gui $fs/usr/bin
39 ;;
40 esac
41 }