summaryrefslogtreecommitdiffstats
path: root/gis/libspatialite/libspatialite.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'gis/libspatialite/libspatialite.SlackBuild')
-rw-r--r--gis/libspatialite/libspatialite.SlackBuild50
1 files changed, 30 insertions, 20 deletions
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