diff options
-rw-r--r-- | gis/pdal/README | 31 | ||||
-rw-r--r-- | gis/pdal/README.SBo | 7 | ||||
-rw-r--r-- | gis/pdal/pdal.SlackBuild | 40 | ||||
-rw-r--r-- | gis/pdal/pdal.info | 14 | ||||
-rw-r--r-- | gis/pdal/slack-desc | 2 |
5 files changed, 79 insertions, 15 deletions
diff --git a/gis/pdal/README b/gis/pdal/README index e0451f2b20eb..913d9fdbf11d 100644 --- a/gis/pdal/README +++ b/gis/pdal/README @@ -7,4 +7,33 @@ with multi-dimensional emitted-pulse scanning systems. While PDAL is not explicitly limited to working with LiDAR data formats, its initial rollout is focused in that area. -Optional dependencies: jsoncpp, laszip, hdf5, OpenSceneGraph. +PDAL includes several plugins needed for some extended features or to +write/read data in specific formats. The build of these plugins +requires optional dependencies included in Slackware 15.0 or available +as packages from Slackbuilds.org. Other plugins need third parts +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 I3S=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 + +HDF, I3S, ICEBRIDGE do not require optional deps + +Other optional dependencies (autodetected) that improve the +functionality of PDAL are jsocpp 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 +launch the script with MATLAB=yes ./pdal.SlackBuild + +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 new file mode 100644 index 000000000000..a52a64da401c --- /dev/null +++ b/gis/pdal/README.SBo @@ -0,0 +1,7 @@ +Features added by following plugins + +- E57: read and write data to and from e57 format +- HDF: read data in the HDF format +- I3S: read from a I3S server or from a SLPK file +- ICEBRIDGE: read data in the Icebridge format +- OSG: read and write OpenSceneGraph objects diff --git a/gis/pdal/pdal.SlackBuild b/gis/pdal/pdal.SlackBuild index 39a8caf2c320..9c24dbacad4d 100644 --- a/gis/pdal/pdal.SlackBuild +++ b/gis/pdal/pdal.SlackBuild @@ -2,6 +2,7 @@ # Slackware build script for pdal +# Copyright 2023 Giancarlo Dessi, Cagliari, IT # Copyright 2013-2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net> # All rights reserved. # @@ -26,11 +27,36 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=pdal SRCNAM=PDAL -VERSION=${VERSION:-2.2.0} +VERSION=${VERSION:-2.5.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} +# ************************************************************************* + +# Build of these plugin is enabled by default since they require netcdf and hdf5 +BUILDI3S="-DBUILD_PLUGIN_I3S=ON" ; \ + [ "${I3S:-yes}" = "no" ] && BUILDI3S="" +BUILDICEBRIDGE="-DBUILD_PLUGIN_ICEBRIDGE=ON" ; \ + [ "${ICEBRIDGE:-yes}" = "no" ] && BUILDICEBRIDGE="" +BUILDHDF="-DBUILD_PLUGIN_HDF=ON" ; \ + [ "${HDF:-yes}" = "no" ] && BUILDHDF="" + +# Build of these is enabled by default if their additional optional deps are installed +if [ "${OSG:-yes}" = "yes" ]; then + BUILDOSG="" ; [ -x /usr/bin/osgversion ] && BUILDOSG="-DBUILD_PLUGIN_OPENSCENEGRAPH=ON" +fi +if [ "${E57:-yes}" = "yes" ]; then + BUILDE57="" ; [ -d /usr/include/xercesc ] && BUILDE57="-DBUILD_PLUGIN_E57=ON" +fi + +# ************************************************************************* + +# Users that have a standard installation of proprietary MatLAB would enable +# the build of Matlab plugin. This is disabled by default +BUILDMATLAB="" ; [ "${MATLAB:-no}" = "yes" ] && \ + BUILDMATLAB="-DBUILD_PLUGIN_MATLAB=ON" + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -39,9 +65,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 @@ -91,10 +114,15 @@ cd build -DCMAKE_INSTALL_LIBDIR=lib$LIBDIRSUFFIX \ -DBUILD_PGPOINTCLOUD_TESTS=OFF \ -DBUILD_PLUGIN_PGPOINTCLOUD=ON \ - -DBUILD_PLUGIN_SQLITE=ON \ - -DBUILD_PLUGIN_DELAUNAY=ON \ -DWITH_COMPLETION=ON \ + $BUILDI3S \ + $BUILDICEBRIDGE \ + $BUILDE57 \ + $BUILDOSG \ + $BUILDHDF \ + $BUILDMATLAB \ .. + make make install DESTDIR=$PKG cd .. diff --git a/gis/pdal/pdal.info b/gis/pdal/pdal.info index 4de53039032f..6629ff127797 100644 --- a/gis/pdal/pdal.info +++ b/gis/pdal/pdal.info @@ -1,10 +1,10 @@ PRGNAM="pdal" -VERSION="2.2.0" -HOMEPAGE="http://pointcloud.org" -DOWNLOAD="https://github.com/PDAL/PDAL/archive/2.2.0/PDAL-2.2.0.tar.gz" -MD5SUM="b85ebc55f84821c8c2ed604d2b3b4b1e" +VERSION="2.5.3" +HOMEPAGE="https://pdal.io" +DOWNLOAD="https://github.com/PDAL/PDAL/archive/2.5.3/PDAL-2.5.3.tar.gz" +MD5SUM="620a6d5e5eca84e6df38b21d59c76f32" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="gdal libgeotiff postgresql" -MAINTAINER="Benjamin Trigona-Harany" -EMAIL="slackbuilds@jaxartes.net" +REQUIRES="gdal hdf5 libgeotiff netcdf postgresql" +MAINTAINER="Giancarlo Dessi" +EMAIL="slack@giand.it" diff --git a/gis/pdal/slack-desc b/gis/pdal/slack-desc index 10cf3600ca74..56c1cf23d855 100644 --- a/gis/pdal/slack-desc +++ b/gis/pdal/slack-desc @@ -11,7 +11,7 @@ pdal: pdal: PDAL is a BSD licensed library for translating and manipulating point pdal: cloud data of various formats. pdal: -pdal: Homepage: http://pointcloud.org +pdal: Homepage: https://pdal.io pdal: pdal: pdal: |