diff options
Diffstat (limited to 'gis/libspatialite')
-rw-r--r-- | gis/libspatialite/README | 15 | ||||
-rw-r--r-- | gis/libspatialite/libspatialite.SlackBuild | 50 | ||||
-rw-r--r-- | gis/libspatialite/libspatialite.info | 12 |
3 files changed, 42 insertions, 35 deletions
diff --git a/gis/libspatialite/README b/gis/libspatialite/README index 52bbc54ffb..0a58e0d43e 100644 --- a/gis/libspatialite/README +++ b/gis/libspatialite/README @@ -1,9 +1,6 @@ -SpatiaLite is an open source library intended to extend the SQLite core -to support fully fledged Spatial SQL capabilities. SpatiaLite is smoothly -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. +SpatiaLite is an open source library intended to extend the SQLite +core to support fully fledged Spatial SQL capabilities. SpatiaLite +is smoothly 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. diff --git a/gis/libspatialite/libspatialite.SlackBuild b/gis/libspatialite/libspatialite.SlackBuild index db7245e780..ad44b1f1ba 100644 --- a/gis/libspatialite/libspatialite.SlackBuild +++ b/gis/libspatialite/libspatialite.SlackBuild @@ -1,6 +1,8 @@ #!/bin/bash -# Slackware build script for SpatiaLite +# Slackware build script for libspatialite +# +# Copyright 2023-2024 Gregory J. L. Tourte <artourter@gmail.com> # Copyright 2012-2015 Alexander Bruy <alexander.bruy@gmail.com> # All rights reserved. # @@ -24,22 +26,19 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libspatialite -VERSION=${VERSION:-4.3.0} -BUILD=${BUILD:-1} +VERSION=${VERSION:-5.1.0} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -49,12 +48,8 @@ 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" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -77,12 +72,10 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} + -CFLAGS="$SLKCFLAGS -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1" \ +CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ LDFLAGS="-ldl" \ ./configure \ @@ -92,7 +85,22 @@ LDFLAGS="-ldl" \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --disable-static \ --enable-freexl \ - $LWGEOM_SUPPORT \ + --enable-rttopo \ + --enable-mathsql \ + --enable-proj \ + --enable-iconv \ + --enable-epsg \ + --enable-geos \ + --enable-gcp \ + --enable-geosadvanced \ + --enable-geosreentrant \ + --enable-geos370 \ + --enable-geos3100 \ + --enable-geos3100 \ + --enable-libxml2 \ + --enable-minizip \ + --enable-geopackage \ + --enable-examples \ --build=$ARCH-slackware-linux make @@ -102,10 +110,12 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING INSTALL README README.coverage spatialite-sql-latest.html \ +cp -a AUTHORS COPYING README README.coverage spatialite-sql-latest.html \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +rm -f $PKG/usr/lib*/*.la + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc diff --git a/gis/libspatialite/libspatialite.info b/gis/libspatialite/libspatialite.info index f17c92f24a..f5d8039608 100644 --- a/gis/libspatialite/libspatialite.info +++ b/gis/libspatialite/libspatialite.info @@ -1,10 +1,10 @@ PRGNAM="libspatialite" -VERSION="4.3.0" +VERSION="5.1.0" HOMEPAGE="https://www.gaia-gis.it/fossil/libspatialite/index" -DOWNLOAD="http://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-4.3.0.tar.gz" -MD5SUM="59ec162d3e4db2d247945e3a943f64bc" +DOWNLOAD="http://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-5.1.0.tar.gz" +MD5SUM="2db597114bd6ee20db93de3984fd116c" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="proj geos freexl postgis" -MAINTAINER="Alexander Bruy" -EMAIL="alexander.bruy@gmail.com" +REQUIRES="proj librttopo freexl" +MAINTAINER="ArTourter" +EMAIL="artourter@gmail.com" |