git: bf09746b742d - main - science/paraview: fix build against pdal 2.6.3

From: Loïc Bartoletti <lbartoletti_at_FreeBSD.org>
Date: Sat, 24 Feb 2024 05:24:12 UTC
The branch main has been updated by lbartoletti:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bf09746b742d1fbdeb5235f848c5823c87b51339

commit bf09746b742d1fbdeb5235f848c5823c87b51339
Author:     Loïc Bartoletti <lbartoletti@FreeBSD.org>
AuthorDate: 2024-02-22 21:06:33 +0000
Commit:     Loïc Bartoletti <lbartoletti@FreeBSD.org>
CommitDate: 2024-02-24 05:23:52 +0000

    science/paraview: fix build against pdal 2.6.3
---
 science/paraview/Makefile                              |  4 ++--
 .../paraview/files/patch-VTK_IO_PDAL_CMakeLists.txt    | 18 ++++++++++++++++++
 2 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/science/paraview/Makefile b/science/paraview/Makefile
index 93330f5fd840..54ef4f21c32e 100644
--- a/science/paraview/Makefile
+++ b/science/paraview/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	paraview
 DISTVERSION=	${PARAVIEW_VER}.2
-PORTREVISION=	6
+PORTREVISION=	7
 CATEGORIES=	science graphics
 MASTER_SITES=	http://www.paraview.org/files/v${PARAVIEW_VER}/
 DISTNAME=	ParaView-v${PORTVERSION}
@@ -38,7 +38,7 @@ LIB_DEPENDS=	libhdf5.so:science/hdf5 \
 		libgeos.so:graphics/geos \
 		libhpdf.so:print/libharu \
 		libproj.so:graphics/proj \
-		libpdal_base.so:math/pdal \
+		libpdalcpp.so:math/pdal \
 		libdrm.so:graphics/libdrm \
 		libcgns.so:science/cgnslib \
 		liblz4.so:archivers/liblz4 \
diff --git a/science/paraview/files/patch-VTK_IO_PDAL_CMakeLists.txt b/science/paraview/files/patch-VTK_IO_PDAL_CMakeLists.txt
new file mode 100644
index 000000000000..a42187e0f819
--- /dev/null
+++ b/science/paraview/files/patch-VTK_IO_PDAL_CMakeLists.txt
@@ -0,0 +1,18 @@
+--- VTK/IO/PDAL/CMakeLists.txt.orig	2024-02-22 20:32:51 UTC
++++ VTK/IO/PDAL/CMakeLists.txt
+@@ -3,14 +3,7 @@ set(classes
+ set(classes
+   vtkPDALReader)
+ 
+-set(pdal_libraries pdal_util)
+-if (APPLE OR WIN32)
+-  list(APPEND pdal_libraries
+-    pdalcpp)
+-else()
+-  list(APPEND pdal_libraries
+-    pdal_base)
+-endif()
++set(pdal_libraries pdalcpp)
+ 
+ vtk_module_add_module(VTK::IOPDAL
+   CLASSES ${classes})