aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gis/pdal/README12
-rw-r--r--gis/pdal/pdal.SlackBuild31
-rw-r--r--gis/pdal/pdal.info8
3 files changed, 43 insertions, 8 deletions
diff --git a/gis/pdal/README b/gis/pdal/README
index 95f8695aa2..f99fe7d93d 100644
--- a/gis/pdal/README
+++ b/gis/pdal/README
@@ -30,11 +30,21 @@ HDF, ICEBRIDGE do not require optional deps
Other optional dependencies (autodetected) that improve the
functionality of PDAL are jsoncpp and laszip. The installation of
laszip is strongly recommended.
+Zstandard (zstd) is another optional dependency but in Slackware 15.0
+stable it is autodetected if the package zstd-cmake is installed
+(nothing to do in Slackware current).
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
+Warnings:
+
+1. The build of these plugin does not support free platforms
compatible or alternative to MATLAB, like Octave or Scilab.
+
+2. Although tests are disabled in this slackbuild, cmake looks for
+an installation of googletest (gtest) and if not found it tries to
+fetch a bundle googletest from github. So, gtest is required even not
+used in the build.
diff --git a/gis/pdal/pdal.SlackBuild b/gis/pdal/pdal.SlackBuild
index c769510e51..9feb14189a 100644
--- a/gis/pdal/pdal.SlackBuild
+++ b/gis/pdal/pdal.SlackBuild
@@ -27,12 +27,20 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=pdal
SRCNAM=PDAL
-VERSION=${VERSION:-2.8.4}
+VERSION=${VERSION:-2.9.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
# *************************************************************************
+# check if we are in current
+CMAKEVER=$(cmake --version | head -1 | cut -f3 -d" ")
+CMAKEVER=${CMAKEVER:2:2}
+if [ $CMAKEVER = "21" ]; then
+ CURRENT=no
+else
+ CURRENT=yes
+fi
# Build of these plugin is enabled by default since they require netcdf and hdf5
BUILDICEBRIDGE="-DBUILD_PLUGIN_ICEBRIDGE=ON" ; \
@@ -105,6 +113,23 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
sed -i tools/lasdump/CMakeLists.txt -e "s/VERSION 3.5/VERSION 3.10/g"
+sed -i cmake/gtest.cmake -e "s/1.15.0/1.12.1/g"
+
+if [ "$CURRENT" = "yes" ]; then
+ patch -p0 << 'EOF'
+--- ./pdal/util/VSIIO.cpp
++++ ./pdal/util/VSIIO.cpp
+@@ -32,6 +32,7 @@
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
++#include <cstdint>
+ #include <memory>
+ #include <sstream>
+ #include <streambuf>
+
+EOF
+fi
mkdir -p build
cd build
@@ -116,10 +141,10 @@ cd build
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib$LIBDIRSUFFIX \
-DBUILD_PGPOINTCLOUD_TESTS=OFF \
- -DBUILD_PLUGIN_PGPOINTCLOUD=ON \
+ -DBUILD_PLUGIN_PGPOINTCLOUD=OFF \
-DWITH_COMPLETION=ON \
-DWITH_BACKTRACE=OFF \
- -DWITH_TESTS=FALSE \
+ -DWITH_TESTS=OFF \
$BUILDICEBRIDGE \
$BUILDE57 \
$BUILDDRACO \
diff --git a/gis/pdal/pdal.info b/gis/pdal/pdal.info
index c08b862769..dbfbe4b11f 100644
--- a/gis/pdal/pdal.info
+++ b/gis/pdal/pdal.info
@@ -1,10 +1,10 @@
PRGNAM="pdal"
-VERSION="2.8.4"
+VERSION="2.9.0"
HOMEPAGE="https://pdal.io"
-DOWNLOAD="https://github.com/PDAL/PDAL/archive/2.8.4/PDAL-2.8.4.tar.gz"
-MD5SUM="4e6cde9733af88bad23f82e1e2869aca"
+DOWNLOAD="https://github.com/PDAL/PDAL/archive/2.9.0/PDAL-2.9.0.tar.gz"
+MD5SUM="49dc739d2c1aa928ac0d9a362d1a0714"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="gdal libgeotiff netcdf postgresql"
+REQUIRES="gdal gtest libgeotiff netcdf postgresql"
MAINTAINER="Giancarlo Dessi"
EMAIL="slack@giand.it"