wok-next annotate postgis/receipt @ rev 20513
A lot of tiny edits; remove wget and pkg-build from $BUILD_DEPENDS and from *-dev packages $DEPENDS.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Mar 21 15:58:17 2018 +0200 (2018-03-21) |
parents | 43650d7c14eb |
children | 9e5dca6702bf |
rev | line source |
---|---|
pascal@20032 | 1 # SliTaz package receipt v2. |
erjo@11628 | 2 |
erjo@11628 | 3 PACKAGE="postgis" |
pascal@20032 | 4 VERSION="2.4.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 |
al@20513 | 13 BUILD_DEPENDS="postgresql-dev geos-dev proj-dev libxml2-dev \ |
pascal@18578 | 14 gtk+-dev gdal-dev jasper-dev curl-dev libpostgresqlclient tiff" |
pascal@20032 | 15 SPLIT="postgis-gui" |
erjo@11628 | 16 |
erjo@11628 | 17 # Rules to configure and make the package. |
erjo@11628 | 18 compile_rules() |
erjo@11628 | 19 { |
pascal@20058 | 20 touch config.rpath |
erjo@11628 | 21 ./configure --with-gui $CONFIGURE_ARGS \ |
pascal@15642 | 22 && make -j 1 && make install |
erjo@11628 | 23 } |
erjo@11628 | 24 |
erjo@11628 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@11628 | 26 genpkg_rules() |
erjo@11628 | 27 { |
pascal@20032 | 28 case $PACKAGE in |
pascal@20032 | 29 postgis) |
pascal@20032 | 30 DEPENDS="geos proj libpostgresqlclient libxml2 libgdal" |
pascal@20032 | 31 cp -a $install/* $fs |
pascal@20032 | 32 rm -f $fs/usr/bin/shp2pgsql-gui |
pascal@20032 | 33 ;; |
pascal@20032 | 34 postgis-gui) |
pascal@20032 | 35 CAT="misc|Support for geographic objects to PostgreSQL" |
pascal@20032 | 36 DEPENDS="gtk+ postgis" |
pascal@20032 | 37 mkdir -p $fs/usr/bin |
pascal@20032 | 38 cp -a $install/usr/bin/shp2pgsql-gui $fs/usr/bin |
pascal@20032 | 39 ;; |
pascal@20032 | 40 esac |
erjo@11628 | 41 } |