mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
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>
This commit is contained in:
parent
2cb945c2a9
commit
8e394e4c9c
4 changed files with 102 additions and 19 deletions
|
@ -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.
|
||||
|
|
86
gis/qgis/README.Slackware
Normal file
86
gis/qgis/README.Slackware
Normal file
|
@ -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.
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue