wok-6.x annotate postgis/receipt @ rev 23742
updated xapian and xapian-dev (1.4.13 -> 1.4.15)
author | Hans-G?nter Theisgen |
---|---|
date | Fri May 01 13:17:09 2020 +0100 (2020-05-01) |
parents | 432dd31a79d5 |
children | a3c45ab9082e |
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 |
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 } |