gis/saga-gis: Updated for version 9.3.1.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Giancarlo Dessi 2024-01-27 08:01:34 +07:00 committed by Willy Sudiarto Raharjo
parent 372c16bc68
commit 4248022b33
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
3 changed files with 22 additions and 6 deletions

View File

@ -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.

View File

@ -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 ..

View File

@ -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"