wok-6.x annotate postgis/receipt @ rev 24124

updated transfig (3.2.5d -> 3.2.8b)
author Hans-G?nter Theisgen
date Wed Oct 06 10:26:09 2021 +0100 (2021-10-06)
parents 8e6c7c571c39
children
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@21886 13 DEPENDS="geos proj libpostgresqlclient libxml2 libgdal libpng sqlite"
pascal@18578 14 BUILD_DEPENDS="pkg-config postgresql-dev geos-dev proj-dev libxml2-dev \
pascal@21886 15 gtk+-dev gdal-dev jasper-dev curl-dev libpostgresqlclient tiff sqlite-dev"
erjo@11628 16
pascal@24083 17 current_version()
pascal@24083 18 {
pascal@24083 19 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24083 20 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24083 21 }
pascal@24083 22
erjo@11628 23 # Rules to configure and make the package.
erjo@11628 24 compile_rules()
erjo@11628 25 {
pascal@21885 26 export CFLAGS="$CFLAGS -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"
pascal@21885 27 export CXXFLAGS="$CXXFLAGS -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"
erjo@11628 28 ./configure --with-gui $CONFIGURE_ARGS \
pascal@15642 29 && make -j 1 && make install
erjo@11628 30 }
erjo@11628 31
erjo@11628 32 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@11628 33 genpkg_rules()
erjo@11628 34 {
erjo@11628 35 cp -a $install/* $fs
erjo@11628 36 rm -f $fs/usr/bin/shp2pgsql-gui
erjo@11628 37 }
pascal@20237 38
pascal@20237 39 post_install_example()
pascal@20237 40 {
pascal@20237 41 database=test
pascal@20237 42 chroot "$1/" createdb -U postgres -h localhost $database
pascal@20237 43 chroot "$1/" psql -U postgres $database <<EOT
pascal@20237 44 create extension postgis;
pascal@20237 45 \q
pascal@20237 46 EOT
pascal@20237 47 }