diff options
Diffstat (limited to 'gis/pdal/pdal.SlackBuild')
-rw-r--r-- | gis/pdal/pdal.SlackBuild | 40 |
1 files changed, 34 insertions, 6 deletions
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 .. |