summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorAlexander Bruy <alexander.bruy@gmail.com>2012-12-19 22:11:04 +0100
committerMatteo Bernardini <ponce@slackbuilds.org>2012-12-19 22:11:27 +0100
commitbb69d475f3c6a71eb25523c91bd232e52e15fe8d (patch)
treed3a9e32238aac40513752e10f9c5a1d25e8219a7 /libraries
parent8949a7b29193815bff4b128aca0998be6205d41e (diff)
downloadslackbuilds-bb69d475f3c6a71eb25523c91bd232e52e15fe8d.tar.gz
libraries/libspatialite: Updated for version 4.0.0.
Noted the optional dependency postgis Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/libspatialite/README3
-rw-r--r--libraries/libspatialite/libspatialite.SlackBuild13
-rw-r--r--libraries/libspatialite/libspatialite.info6
3 files changed, 15 insertions, 7 deletions
diff --git a/libraries/libspatialite/README b/libraries/libspatialite/README
index 50bf688a04..52bbc54ffb 100644
--- a/libraries/libspatialite/README
+++ b/libraries/libspatialite/README
@@ -4,3 +4,6 @@ integrated into SQLite to provide a complete and powerful Spatial DBMS
(mostly OGC-SFS compliant). Using SQLite + SpatiaLite you can effectively
deploy an alternative open source Spatial DBMS roughly equivalent to
PostgreSQL + PostGIS.
+
+liblwgeom (postgis) is optional but strongly recommended dependency. To build
+spatialite with liblwgeom support set LWGEOM=yes.
diff --git a/libraries/libspatialite/libspatialite.SlackBuild b/libraries/libspatialite/libspatialite.SlackBuild
index c117f3ef32..42fb76188e 100644
--- a/libraries/libspatialite/libspatialite.SlackBuild
+++ b/libraries/libspatialite/libspatialite.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Slackware build script for FreeXL
+# Slackware build script for SpatiaLite
# Copyright 2012 Alexander Bruy <alexander.bruy@gmail.com>
# All rights reserved.
#
@@ -22,8 +22,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libspatialite
-VERSION=${VERSION:-3.0.1}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-4.0.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -39,6 +39,10 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+if [ "$LWGEOM" = "yes" ] ; then
+ LWGEOM_SUPPORT="--enable-lwgeom"
+fi
+
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
@@ -78,6 +82,7 @@ LDFLAGS="-ldl" \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--disable-static \
--enable-freexl \
+ $LWGEOM_SUPPORT \
--build=$ARCH-slackware-linux
make
@@ -88,7 +93,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS COPYING INSTALL README README.coverage \
+ AUTHORS COPYING INSTALL README README.coverage spatialite-sql-latest.html\
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/libraries/libspatialite/libspatialite.info b/libraries/libspatialite/libspatialite.info
index c0b9b9aaae..415021d702 100644
--- a/libraries/libspatialite/libspatialite.info
+++ b/libraries/libspatialite/libspatialite.info
@@ -1,8 +1,8 @@
PRGNAM="libspatialite"
-VERSION="3.0.1"
+VERSION="4.0.0"
HOMEPAGE="https://www.gaia-gis.it/fossil/libspatialite/index"
-DOWNLOAD="http://www.gaia-gis.it/gaia-sins/libspatialite-3.0.1.tar.gz"
-MD5SUM="450d1a0d9da1bd9f770b7db3f2509f69"
+DOWNLOAD="http://www.gaia-gis.it/gaia-sins/libspatialite-4.0.0.tar.gz"
+MD5SUM="8040ce4e39913e7d284675c0f15d270d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="freexl geos proj"