aboutsummaryrefslogtreecommitdiff
path: root/gis/pdal/pdal.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'gis/pdal/pdal.SlackBuild')
-rw-r--r--gis/pdal/pdal.SlackBuild32
1 files changed, 27 insertions, 5 deletions
diff --git a/gis/pdal/pdal.SlackBuild b/gis/pdal/pdal.SlackBuild
index 571b257dc4237..15b5286531f20 100644
--- a/gis/pdal/pdal.SlackBuild
+++ b/gis/pdal/pdal.SlackBuild
@@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=pdal
SRCNAM=PDAL
-VERSION=${VERSION:-2.5.6}
+VERSION=${VERSION:-2.6.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -35,8 +35,6 @@ 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" ; \
@@ -52,7 +50,7 @@ fi
# *************************************************************************
-# Users that have a standard installation of proprietary MatLAB would enable
+# 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"
@@ -103,6 +101,21 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# This patch prevents build failure caused by Libunwind
+# in pdal version 2.6.0 if is found in the system
+patch -p0 << 'EOF'
+--- ./cmake/unwind.cmake
++++ ./cmake/unwind.cmake
+@@ -4,5 +4,5 @@
+
+ set(FPHSA_NAME_MISMATCHED 1) # Suppress warnings, see https://cmake.org/cmake/help/v3.17/module/FindPackageHandleStandardArgs.html
+-find_package(Libunwind QUIET)
++find_package(Libunwind QUIET NO_MODULE)
+ set(FPHSA_NAME_MISMATCHED 0)
+
+
+EOF
+
mkdir -p build
cd build
cmake \
@@ -115,7 +128,8 @@ cd build
-DBUILD_PGPOINTCLOUD_TESTS=OFF \
-DBUILD_PLUGIN_PGPOINTCLOUD=ON \
-DWITH_COMPLETION=ON \
- $BUILDI3S \
+ -DWITH_BACKTRACE=OFF \
+ -DWITH_TESTS=FALSE \
$BUILDICEBRIDGE \
$BUILDE57 \
$BUILDOSG \
@@ -129,6 +143,14 @@ cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | \
grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+# Remove empty directories and fix permissions (issues found by sbopkglint)
+rmdir $PKG/usr/include/pdal/filters/private/csf
+rmdir $PKG/usr/include/pdal/filters/private/miniball
+chmod 644 $PKG/usr/include/pdal/*.hpp
+chmod 644 $PKG/usr/include/pdal/*/*.hpp
+chmod 644 $PKG/usr/include/pdal/*/*/*.hpp
+chmod 644 $PKG/usr/include/pdal/*/*/*/*.hpp
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS.txt CITATION LICENSE.txt README.md RELEASENOTES.txt \