aboutsummaryrefslogtreecommitdiff
path: root/gis/saga-gis/saga-gis.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'gis/saga-gis/saga-gis.SlackBuild')
-rw-r--r--gis/saga-gis/saga-gis.SlackBuild20
1 files changed, 19 insertions, 1 deletions
diff --git a/gis/saga-gis/saga-gis.SlackBuild b/gis/saga-gis/saga-gis.SlackBuild
index e02d2da42176..62a6841dd003 100644
--- a/gis/saga-gis/saga-gis.SlackBuild
+++ b/gis/saga-gis/saga-gis.SlackBuild
@@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=saga-gis
-VERSION=${VERSION:-9.3.2}
+VERSION=${VERSION:-9.4.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -81,6 +81,22 @@ if [[ "$ARCH" = "i586" || "$ARCH" = "i686" ]] ; then
fi
fi
+# if both unixODBCand and libiodbc are installed, SAGA set the
+# first as default driver ODBC. This flag should prevent possible
+# compilation failures since cmake does not find the correct
+# path of unixODBC headers
+ODBC=""
+if pkg-config --exists odbc; then
+ ODBC="-DODBC_INCLUDE_DIR=/usr/include/unixodbc "
+fi
+
+# Look if the system has PDAL installed
+if pkg-config --exists pdal; then
+ WITHPDAL=""
+else
+ WITHPDAL="-DWITH_TOOLS_PDAL=OFF "
+fi
+
if [ -d /usr/share/cmake-3.29 ]; then
# This prevents some cmake warnings in current
CMAKE_POLICY="-DCMAKE_POLICY_DEFAULT_CMP0153=OLD "
@@ -109,6 +125,8 @@ cd build
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_MANDIR=/usr/man \
+ $ODBC \
+ $WITHPDAL \
$CMAKE_POLICY \
-DCMAKE_BUILD_TYPE=Release ..
make