summaryrefslogtreecommitdiffstats
path: root/gis/pdal
diff options
context:
space:
mode:
author Giancarlo Dessi <slack@giand.it>2023-11-12 09:50:52 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2023-11-12 12:57:16 +0700
commit241894992471348d79e37fbb7f484f7fb2994a7b (patch)
tree1d2be87fbaf8cae80fe2736c6ec958465db9de34 /gis/pdal
parent8a225ddfed9e9004d9f95c4c3b4a91c032166582 (diff)
downloadslackbuilds-241894992471348d79e37fbb7f484f7fb2994a7b.tar.gz
slackbuilds-241894992471348d79e37fbb7f484f7fb2994a7b.tar.xz
gis/pdal: Enable support for Draco.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'gis/pdal')
-rw-r--r--gis/pdal/README15
-rw-r--r--gis/pdal/README.SBo1
-rw-r--r--gis/pdal/pdal.SlackBuild6
3 files changed, 14 insertions, 8 deletions
diff --git a/gis/pdal/README b/gis/pdal/README
index c6547a6c9c..aa823290c0 100644
--- a/gis/pdal/README
+++ b/gis/pdal/README
@@ -16,24 +16,25 @@ dependencies that are not available here.
If their dependencies (autodetected) are installed, the script enables
by default the build of the supported plugins. You can disable each of
them by passing to the slackwbuild its environment variable set as
-"no" (for example E57=no ./pdal.SlackBuild).
+"no" (for example E57=no ./pdal.SlackBuild).
Plugins enabled by default if their dependencies are installed (see
README.SBo to know what feature they extend):
- E57: requires xerces-c
- OSG: requires OpenSceneGraph
+- DRACO: requires libdraco
HDF, ICEBRIDGE do not require optional deps
-Other optional dependencies (autodetected) that improve the
-functionality of PDAL are jsocpp and laszip. The installation of
+Other optional dependencies (autodetected) that improve the
+functionality of PDAL are jsoncpp and laszip. The installation of
laszip is strongly recommended.
-PDAL can include also the Matlab plugin, that allows to write data to
-a .mat file. Since the standard MATLAB is a proprietary software, the
-build of this plugin is disabled by default. If you need this plugin
+PDAL can include also the Matlab plugin, that allows to write data to
+a .mat file. Since the standard MATLAB is a proprietary software, the
+build of this plugin is disabled by default. If you need this plugin
launch the script with MATLAB=yes ./pdal.SlackBuild
-Warning: the build of these plugin does not support free platforms
+Warning: the build of these plugin does not support free platforms
compatible or alternative to MATLAB, like Octave or Scilab.
diff --git a/gis/pdal/README.SBo b/gis/pdal/README.SBo
index 9020615162..b4680db5a2 100644
--- a/gis/pdal/README.SBo
+++ b/gis/pdal/README.SBo
@@ -4,3 +4,4 @@ Features added by following plugins
- HDF: read data in the HDF format
- ICEBRIDGE: read data in the Icebridge format
- OSG: read and write OpenSceneGraph objects
+- DRACO: compress/decompress 3D meshes and point clouds
diff --git a/gis/pdal/pdal.SlackBuild b/gis/pdal/pdal.SlackBuild
index 15b5286531..5e668ed616 100644
--- a/gis/pdal/pdal.SlackBuild
+++ b/gis/pdal/pdal.SlackBuild
@@ -28,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=pdal
SRCNAM=PDAL
VERSION=${VERSION:-2.6.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -47,6 +47,9 @@ fi
if [ "${E57:-yes}" = "yes" ]; then
BUILDE57="" ; [ -d /usr/include/xercesc ] && BUILDE57="-DBUILD_PLUGIN_E57=ON"
fi
+if [ "${DRACO:-yes}" = "yes" ]; then
+ BUILDDRACO="" ; [ -x /usr/bin/draco_decoder-1.5.6 ] && BUILDDRACO="-DBUILD_PLUGIN_DRACO=ON"
+fi
# *************************************************************************
@@ -132,6 +135,7 @@ cd build
-DWITH_TESTS=FALSE \
$BUILDICEBRIDGE \
$BUILDE57 \
+ $BUILDDRACO \
$BUILDOSG \
$BUILDHDF \
$BUILDMATLAB \