git: f8fb96fe8660 - main - cad/PrusaSlicer: prepare for Boost-1.89, do not link with stub Boost::system (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Tue, 30 Sep 2025 15:04:15 UTC
The branch main has been updated by fluffy:

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

commit f8fb96fe8660ba7df2a867093e65fd32637502d7
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2025-09-30 15:03:56 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2025-09-30 15:03:56 +0000

    cad/PrusaSlicer: prepare for Boost-1.89, do not link with stub Boost::system (+)
    
    Get rid of overlinking on empty stub library Boost::system, it is header-only since boost-1.70
    
    With hat: office/boost
---
 cad/PrusaSlicer/Makefile                                    | 6 +++++-
 cad/PrusaSlicer/files/patch-cmake_modules_FindOpenVDB.cmake | 7 ++++---
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/cad/PrusaSlicer/Makefile b/cad/PrusaSlicer/Makefile
index 8af495340343..e1ce04fab6a4 100644
--- a/cad/PrusaSlicer/Makefile
+++ b/cad/PrusaSlicer/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	PrusaSlicer
 DISTVERSIONPREFIX=version_
 DISTVERSION=	2.9.2
-PORTREVISION=	6
+PORTREVISION=	7
 CATEGORIES=	cad
 DIST_SUBDIR=	PrusaSlicer
 
@@ -65,7 +65,11 @@ CMAKE_ARGS+=	-DwxWidgets_CONFIG_EXECUTABLE="${WX_CONFIG}" \
 		-Wno-dev
 
 PORTDATA=	*
+
 post-patch:
 	${MKDIR} ${WRKSRC}/bundled_deps/hidapi/libusb
 	${CP} ${FILESDIR}/hid.c ${WRKSRC}/bundled_deps/hidapi/libusb/hid.c
+	@${REINPLACE_CMD} -e '/_boost_/s|system;||' \
+		${WRKSRC}/CMakeLists.txt
+
 .include <bsd.port.mk>
diff --git a/cad/PrusaSlicer/files/patch-cmake_modules_FindOpenVDB.cmake b/cad/PrusaSlicer/files/patch-cmake_modules_FindOpenVDB.cmake
index 142237d5aafd..ed9e56e6f1f3 100644
--- a/cad/PrusaSlicer/files/patch-cmake_modules_FindOpenVDB.cmake
+++ b/cad/PrusaSlicer/files/patch-cmake_modules_FindOpenVDB.cmake
@@ -39,7 +39,7 @@
  endif()
  
  if(OpenVDB_USES_EXR)
-@@ -463,7 +451,7 @@ endif()
+@@ -463,15 +451,15 @@ endif()
  endif()
  
  # Set deps. Note that the order here is important. If we're building against
@@ -48,10 +48,11 @@
  # users chosen namespaced headers are correctly prioritized. Otherwise other
  # include paths from shared installs (including houdini) may pull in the wrong
  # headers
-@@ -471,7 +459,7 @@ set(_OPENVDB_VISIBLE_DEPENDENCIES
+ 
  set(_OPENVDB_VISIBLE_DEPENDENCIES
++  Boost::filesystem
    Boost::iostreams
-   Boost::system
+-  Boost::system
 -  IlmBase::Half
 +  Imath::Imath
  )