summaryrefslogtreecommitdiffstats
path: root/gis
diff options
context:
space:
mode:
author Giancarlo Dessi2024-01-27 02:01:34 +0100
committer Willy Sudiarto Raharjo2024-01-27 02:22:49 +0100
commit4248022b336e02bb6ac3e3c8b31a7d0b887ced9d (patch)
tree4baf861e91f65c3f6b35b5af05df2c0d05d2a21c /gis
parent372c16bc6848c69505d7a114c3b4c7750f597033 (diff)
downloadslackbuilds-4248022b336e02bb6ac3e3c8b31a7d0b887ced9d.tar.gz
gis/saga-gis: Updated for version 9.3.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'gis')
-rw-r--r--gis/saga-gis/README6
-rw-r--r--gis/saga-gis/saga-gis.SlackBuild16
-rw-r--r--gis/saga-gis/saga-gis.info6
3 files changed, 22 insertions, 6 deletions
diff --git a/gis/saga-gis/README b/gis/saga-gis/README
index 04fe3024e4..25b4b6a1ad 100644
--- a/gis/saga-gis/README
+++ b/gis/saga-gis/README
@@ -34,3 +34,9 @@ WARNINGS:
code of SAGA conflicts with the code of a libiodbc header
(/usr/include/iodbcunix.h) and the build fails. This issue can be
overcome by installing unixODBC from the SBo's slackbuild.
+4) For current users: the build of Python bindings fails since the
+ upgrade of swig package to version 4.2 in current (January 2024).
+ Therefore Saga with support to Python will be disabled in current
+ if the version of swig installed is earlier than 4.0.2. If you
+ require the support to Python you must downgrade swig to the version
+ released in Slackware 15.0.
diff --git a/gis/saga-gis/saga-gis.SlackBuild b/gis/saga-gis/saga-gis.SlackBuild
index 6906f37527..ec9cf3c209 100644
--- a/gis/saga-gis/saga-gis.SlackBuild
+++ b/gis/saga-gis/saga-gis.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for saga-gis
-# Copyright 2023 Giancarlo Dessi, Cagliari, IT
+# Copyright 2023-2024 Giancarlo Dessi, Cagliari, IT
# Copyright 2014-2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
# All rights reserved.
#
@@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=saga-gis
-VERSION=${VERSION:-9.3.0}
+VERSION=${VERSION:-9.3.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -88,6 +88,15 @@ else
CMAKE_POLICY=""
fi
+# Build of Python bindings must be disabled in current
+# since the compilation with swig fails after the upgrade
+# to version 4.2.0
+if [ -d /usr/share/swig/4.0.2 ]; then
+ WITHPYTHON=""
+else
+ WITHPYTHON="-DWITH_PYTHON=OFF "
+fi
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -110,8 +119,9 @@ cd build
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_MANDIR=/usr/man \
$CMAKE_POLICY \
+ $WITHPYTHON \
-DCMAKE_BUILD_TYPE=Release ..
- make -j 10
+ make
make install/strip DESTDIR=$PKG
cd ..
diff --git a/gis/saga-gis/saga-gis.info b/gis/saga-gis/saga-gis.info
index ba33f548ce..901888a107 100644
--- a/gis/saga-gis/saga-gis.info
+++ b/gis/saga-gis/saga-gis.info
@@ -1,8 +1,8 @@
PRGNAM="saga-gis"
-VERSION="9.3.0"
+VERSION="9.3.1"
HOMEPAGE="http://www.saga-gis.org"
-DOWNLOAD="https://sourceforge.net/projects/saga-gis/files/SAGA%20-%209/SAGA%20-%209.3.0/saga-9.3.0.tar.gz/download"
-MD5SUM="40f31791bfc1ea2fe65fb419e96a3325"
+DOWNLOAD="https://sourceforge.net/projects/saga-gis/files/SAGA%20-%209/SAGA%20-%209.3.1/saga-9.3.1.tar.gz/download"
+MD5SUM="977a47f2c6b552c5fbec5479bfb4030c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="wxWidgets"