diff options
author | Benjamin Trigona-Harany <bosth@alumni.sfu.ca> | 2012-12-28 09:19:14 +0100 |
---|---|---|
committer | Matteo Bernardini <ponce@slackbuilds.org> | 2012-12-28 09:19:31 +0100 |
commit | 729e017b77fe03e16bb2a0416bd64756815aa441 (patch) | |
tree | 6dfb581fc3fd94dbb8d4d564750beb6024035442 | |
parent | 5eb81f8ae1ee5cdd001c5bd3a0114b590f167026 (diff) | |
download | slackbuilds-729e017b77fe03e16bb2a0416bd64756815aa441.tar.gz |
system/postgis: Added GUI component to build.
Added note to README about building JDBC driver,
fixed spelling (I am the one to blame for that ;P --ponce)
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r-- | system/postgis/README | 12 | ||||
-rw-r--r-- | system/postgis/postgis.SlackBuild | 8 |
2 files changed, 17 insertions, 3 deletions
diff --git a/system/postgis/README b/system/postgis/README index 80eac03b71..0a7af70ec1 100644 --- a/system/postgis/README +++ b/system/postgis/README @@ -2,9 +2,17 @@ PostGIS adds support for geographic objects to the PostgreSQL object-relational database. In effect, PostGIS "spatially enables" the PostgreSQL server, allowing it to be used as a backend spatial database for geographic information systems -(GIS), much like ESRI's SDE or Oracle's Spatial extension. +(GIS). To disable raster support and eliminate the gdal dependency, set RASTER=no. If you choose this path, be aware that postgis will still need the two dependencies that gdal -rely on, proj and geos. +relies on, proj and geos. + +To disable the GTK-based graphical interface for shp2pgsql, +set GUI=no. + +This SlackBuild does not build the PostGIS JDBC driver since +the build requires Apache Maven to download dependencies at +build time. The optional dependencies needed to build the +driver are: apache-ant, apache-maven, and postgres-jdbc. diff --git a/system/postgis/postgis.SlackBuild b/system/postgis/postgis.SlackBuild index 5b36cc9655..17f7b774d8 100644 --- a/system/postgis/postgis.SlackBuild +++ b/system/postgis/postgis.SlackBuild @@ -26,7 +26,7 @@ PRGNAM=postgis VERSION=${VERSION:-2.0.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -42,11 +42,16 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} RASTER=${RASTER:-yes} +GUI=${GUI:-yes} if [ "$RASTER" = "no" ] ; then RASTER_EXTENSION="--without-raster" fi +if [ "$GUI" = "yes" ] ; then + SHP2PGSQL_GUI="--with-gui" +fi + if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" LIBDIRSUFFIX="" @@ -86,6 +91,7 @@ CXXFLAGS="$SLKCFLAGS" \ --sysconfdir=/etc \ --localstatedir=/var \ $RASTER_EXTENSION \ + $SHP2PGSQL_GUI \ --build=$ARCH-slackware-linux make |