diff options
author | Giancarlo Dessi <slack@giand.it> | 2024-01-27 08:01:34 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-01-27 08:22:49 +0700 |
commit | 4248022b336e02bb6ac3e3c8b31a7d0b887ced9d (patch) | |
tree | 4baf861e91f65c3f6b35b5af05df2c0d05d2a21c /gis/saga-gis/saga-gis.SlackBuild | |
parent | 372c16bc6848c69505d7a114c3b4c7750f597033 (diff) |
gis/saga-gis: Updated for version 9.3.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'gis/saga-gis/saga-gis.SlackBuild')
-rw-r--r-- | gis/saga-gis/saga-gis.SlackBuild | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/gis/saga-gis/saga-gis.SlackBuild b/gis/saga-gis/saga-gis.SlackBuild index 6906f375279b1..ec9cf3c209cee 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 .. |