summaryrefslogtreecommitdiffstats
path: root/gis
diff options
context:
space:
mode:
author Giancarlo Dessi2023-09-18 03:23:32 +0200
committer Willy Sudiarto Raharjo2023-09-23 06:33:30 +0200
commit8e394e4c9c7f968314ba764a9cd96a2ee3a2dda3 (patch)
tree0e950bdc31d694466fd3db46a935d213e9fd2188 /gis
parent2cb945c2a943f8e8845277f93cf142e34604ad91 (diff)
downloadslackbuilds-8e394e4c9c7f968314ba764a9cd96a2ee3a2dda3.tar.gz
gis/qgis: Updated for version 3.32.2.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'gis')
-rw-r--r--gis/qgis/README23
-rw-r--r--gis/qgis/README.Slackware86
-rw-r--r--gis/qgis/qgis.SlackBuild10
-rw-r--r--gis/qgis/qgis.info2
4 files changed, 102 insertions, 19 deletions
diff --git a/gis/qgis/README b/gis/qgis/README
index c6a0cc6578..72d371f3fa 100644
--- a/gis/qgis/README
+++ b/gis/qgis/README
@@ -2,21 +2,10 @@ QGIS is a user friendly Geographic Information System that lets you
view and manipulate spatial data on your computer. It supports many
common spatial data formats (e.g. PostGIS, ShapeFile and geotiff).
-Optional compile-time dependencies:
- - postgis: for PostGIS support
- - gpsbabel: for the GPS plugin
- - grass: for the Grass plugin
- - gsl: for georeferencing support
- - fcgi: for the QGIS server (see README.server)
+The installation of QGIS from sources can result strongly different
+depending on the optional/required packages installed and enabled. This
+slackbuild is based on basic and some optional settings that require
+the dependencies (and related nested deps) reported in the REQUIRES
+field of qgis.info.
-Optional run-time dependencies:
- - OTB
- - 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
+For further information see the README.Slackware file.
diff --git a/gis/qgis/README.Slackware b/gis/qgis/README.Slackware
new file mode 100644
index 0000000000..46564687ea
--- /dev/null
+++ b/gis/qgis/README.Slackware
@@ -0,0 +1,86 @@
+Table of contents
+
+1. BUILD-TIME DEPENDENCIES
+2. PYTHON BINDINGS AND DEPENDENCIES
+3. RUNTIME DEPENDENCIES AND FORMATS
+4. ISSUES
+
+1. BUILD-TIME DEPENDENCIES
+Regardless of settings in this slackbuild, a basic installation of QGIS
+requires these compile-time dependencies:
+ - proj
+ - geos
+ - libspatialite
+ - libspatialindex
+ - gdal
+ - qwt
+The slackbuilds of these are available in this repository. The packages
+gdal, proj, and geos are not reported in REQUIRES field of qgis.info
+because should be installed as dependencies of others.
+Other dependencies must be already installed in your system with a
+full installation of Slackware (for example, Qt5, QScintilla, qca,
+Python 3, qtkeychain, eccetera).
+
+Optional dependencies that are enabled as strictly required in this
+slackbuild are the following:
+ - postgis: needed for PostGIS
+
+Other optional dependencies are enabled by default if found in the
+system. These are the following
+ - gpsbabel: for the GPS plugin
+ - grass: for the Grass plugin
+ - pdal: for support to PDAL
+ - gsl: for georeferencing support
+ - fcgi: for the QGIS server functionality
+
+The build install as optional dependencies - autodetected - also
+hdf5 and netcdf. If it is installed, the support of PDAL can be
+disabled also by setting to "no" the environment variable
+ PDAL=no ./qgis.SlackBuild
+
+2. PYTHON BINDINGS AND DEPENDENCIES
+The functionality of QGIS is strongly enhanced by a lot of plugins that
+can be installed in runtime. Since these plugins are based on Python
+modules, the support of Python is enabled by default. This requires
+some Python dependencies that are available in a full installation of
+Slackware or as slackbuilds in this repository. For a full support of
+Python in QGIS you have to install the following packages (as reported
+in REQUIRES field of qgis.info):
+ - OWSLib
+ - python3-numpy
+ - python3-psycopg2
+ - termcolor
+Other python modules are required as nested dependencies. The lack of
+some of these modules could not affect the build/runtime of QGIS but
+could affect the part or the entire functionality of the Python
+support.
+
+3. RUNTIME DEPENDENCIES AND FORMATS
+Optional run-time dependencies are:
+ - OTB
+ - R
+ - saga-gis
+ - TauDEM
+
+QGIS supports indirectly several formats that depends on the GDAL
+support in build-time (usually autodetected). For example, the support
+of the proprietary format ECW is enabled in QGIS if gdal has been build
+with this support (this requires the package libecwj2 installed before
+build gdal).
+
+4. ISSUES
+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
+
+It has reported that QGIS shows runtime warnings about 'osgeo' unless
+the Python GDAL library is installed. If you encounter this issue you
+can solve by installing via pip the Python GDAL library as simple user
+(not root!) as following
+ $ pip install GDAL
+
+Other issues not noticed may be encountered depending on various
+system settings. If you found any problem please contact the
+maintainer.
diff --git a/gis/qgis/qgis.SlackBuild b/gis/qgis/qgis.SlackBuild
index ace7ff17dd..07840b4085 100644
--- a/gis/qgis/qgis.SlackBuild
+++ b/gis/qgis/qgis.SlackBuild
@@ -28,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=qgis
VERSION=${VERSION:-3.32.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -84,6 +84,13 @@ else
OCL="-DUSE_OPENCL=OFF "
fi
+if pkg-config --exists pdal; then
+ WITHPDAL="-DWITH_PDAL=OFF "; [ "${PDAL:-yes}" = "yes" ] && WITHPDAL="-DWITH_PDAL=ON "
+else
+ WITHPDAL="-DWITH_PDAL=OFF "
+fi
+
+
if pkg-config --exists grass; then
WITHGRASS="-DGRASS_PREFIX=$(pkg-config --variable=prefix grass) "
else
@@ -111,6 +118,7 @@ cd build
-DWITH_3D=TRUE \
-Wno-dev \
$OCL \
+ $WITHPDAL \
$WITHGRASS
make
diff --git a/gis/qgis/qgis.info b/gis/qgis/qgis.info
index ca601d009b..2ec27aa97c 100644
--- a/gis/qgis/qgis.info
+++ b/gis/qgis/qgis.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://qgis.org/downloads/qgis-3.32.2.tar.bz2"
MD5SUM="cd3cbc4892590d3c2a0f36edd2cae18b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="libspatialite libspatialindex OWSLib postgis python3-numpy qwt python3-psycopg2 termcolor"
+REQUIRES="libspatialite libspatialindex OWSLib postgis python3-numpy python3-psycopg2 qwt termcolor"
MAINTAINER="Giancarlo Dessi"
EMAIL="slack@giand.it"