summaryrefslogtreecommitdiffstats
path: root/gis
diff options
context:
space:
mode:
author Giancarlo Dessi2023-09-13 16:57:25 +0200
committer Willy Sudiarto Raharjo2023-09-13 16:57:25 +0200
commit5f0d0dfd8da5072b9c3fdf05a2561421f33d608a (patch)
tree65acc40e5c4c82c9834c70564ee92555d7235cb1 /gis
parent1cacb005d131946cb9224470652ece877d91a4ef (diff)
downloadslackbuilds-5f0d0dfd8da5072b9c3fdf05a2561421f33d608a.tar.gz
gis/qgis: Updated for version 3.32.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'gis')
-rw-r--r--gis/qgis/README6
-rw-r--r--gis/qgis/qgis.SlackBuild22
-rw-r--r--gis/qgis/qgis.info12
3 files changed, 26 insertions, 14 deletions
diff --git a/gis/qgis/README b/gis/qgis/README
index 6bc92be69d..c6a0cc6578 100644
--- a/gis/qgis/README
+++ b/gis/qgis/README
@@ -14,3 +14,9 @@ Optional run-time dependencies:
- R
- saga-gis
- TauDEM
+
+Support to OpenCL is enabled by default but the build could fail in
+systems with old drivers/graphic cards. If you want to prevent this
+pass to the slackbuild the environment variable
+
+ OPENCL=no ./qgis.SlackBuild
diff --git a/gis/qgis/qgis.SlackBuild b/gis/qgis/qgis.SlackBuild
index a212f6e66a..ace7ff17dd 100644
--- a/gis/qgis/qgis.SlackBuild
+++ b/gis/qgis/qgis.SlackBuild
@@ -4,6 +4,7 @@
# Copyright 2011 David Spencer, Baildon, West Yorkshire, U.K.
# Copyright 2013-2021 Benjamin Trigona-Harany
+# Copyright 2023 Giancarlo Dessi, Cagliari, IT
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,7 +27,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=qgis
-VERSION=${VERSION:-3.24.3}
+VERSION=${VERSION:-3.32.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -39,9 +40,6 @@ if [ -z "$ARCH" ]; then
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
@@ -80,8 +78,14 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+if pkg-config --exists OpenCL; then
+ OCL="-DUSE_OPENCL=OFF " ; [ "${OPENCL:-yes}" = "yes" ] && OCL="-DUSE_OPENCL=ON "
+else
+ OCL="-DUSE_OPENCL=OFF "
+fi
+
if pkg-config --exists grass; then
- WITHGRASS="-DGRASS_PREFIX=$(pkg-config --variable=prefix grass)"
+ WITHGRASS="-DGRASS_PREFIX=$(pkg-config --variable=prefix grass) "
else
WITHGRASS=""
fi
@@ -92,7 +96,7 @@ mkdir -p build
cd build
cmake .. \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -pthread" \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DQGIS_LIB_SUBDIR=lib${LIBDIRSUFFIX} \
@@ -106,9 +110,10 @@ cd build
-DENABLE_TESTS=FALSE \
-DWITH_3D=TRUE \
-Wno-dev \
+ $OCL \
$WITHGRASS
- make || make -j1
+ make
make install DESTDIR=$PKG
cd -
@@ -123,8 +128,9 @@ cp debian/qgis.xml $PKG/usr/share/mime/packages
mkdir -p $PKG/usr/doc
mv $PKG/usr/share/$PRGNAM/doc $PKG/usr/doc/$PRGNAM-$VERSION
+rm -f $PKG/usr/doc/$PRGNAM-$VERSION/INSTALL.md
cp -a \
- ChangeLog Exception_to_GPL_for_Qt.txt NEWS.md \
+ COPYING ChangeLog Exception_to_GPL_for_Qt.txt NEWS.md \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/gis/qgis/qgis.info b/gis/qgis/qgis.info
index e589f378e6..ca601d009b 100644
--- a/gis/qgis/qgis.info
+++ b/gis/qgis/qgis.info
@@ -1,10 +1,10 @@
PRGNAM="qgis"
-VERSION="3.24.3"
+VERSION="3.32.2"
HOMEPAGE="https://qgis.org/"
-DOWNLOAD="https://qgis.org/downloads/qgis-3.24.3.tar.bz2"
-MD5SUM="ec21996593f3155565c3eeb60fb52800"
+DOWNLOAD="https://qgis.org/downloads/qgis-3.32.2.tar.bz2"
+MD5SUM="cd3cbc4892590d3c2a0f36edd2cae18b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="postgis libspatialite libspatialindex python3-numpy qwt protobuf3 OWSLib python3-psycopg2"
-MAINTAINER="Benjamin Trigona-Harany"
-EMAIL="slackbuilds@jaxartes.net"
+REQUIRES="libspatialite libspatialindex OWSLib postgis python3-numpy qwt python3-psycopg2 termcolor"
+MAINTAINER="Giancarlo Dessi"
+EMAIL="slack@giand.it"