wok annotate postgis/receipt @ rev 21885

Up reptyr (0.7.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 02 17:23:06 2019 +0200 (2019-10-02)
parents 9061651de4e1
children 8e6c7c571c39
rev   line source
erjo@11628 1 # SliTaz package receipt.
erjo@11628 2
erjo@11628 3 PACKAGE="postgis"
pascal@18578 4 VERSION="2.2.0"
erjo@11628 5 CATEGORY="misc"
erjo@11628 6 SHORT_DESC="Support for geographic objects to PostgreSQL"
erjo@11628 7 MAINTAINER="erjo@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
erjo@11628 9 WEB_SITE="http://postgis.refractions.net/"
erjo@11628 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@18578 11 WGET_URL="http://download.osgeo.org/postgis/source/$TARBALL"
erjo@11628 12
pascal@20236 13 DEPENDS="geos proj libpostgresqlclient libxml2 libgdal libpng"
pascal@18578 14 BUILD_DEPENDS="pkg-config postgresql-dev geos-dev proj-dev libxml2-dev \
pascal@18578 15 gtk+-dev gdal-dev jasper-dev curl-dev libpostgresqlclient tiff"
erjo@11628 16
erjo@11628 17 # Rules to configure and make the package.
erjo@11628 18 compile_rules()
erjo@11628 19 {
pascal@21885 20 export CFLAGS="$CFLAGS -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"
pascal@21885 21 export CXXFLAGS="$CXXFLAGS -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"
erjo@11628 22 ./configure --with-gui $CONFIGURE_ARGS \
pascal@15642 23 && make -j 1 && make install
erjo@11628 24 }
erjo@11628 25
erjo@11628 26 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@11628 27 genpkg_rules()
erjo@11628 28 {
erjo@11628 29 cp -a $install/* $fs
erjo@11628 30 rm -f $fs/usr/bin/shp2pgsql-gui
erjo@11628 31 }
pascal@20237 32
pascal@20237 33 post_install_example()
pascal@20237 34 {
pascal@20237 35 database=test
pascal@20237 36 chroot "$1/" createdb -U postgres -h localhost $database
pascal@20237 37 chroot "$1/" psql -U postgres $database <<EOT
pascal@20237 38 create extension postgis;
pascal@20237 39 \q
pascal@20237 40 EOT
pascal@20237 41 }