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

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

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

commit afbbc7bb069e8b480103dac4e5b875648b14f1a6
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2025-09-30 08:53:39 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2025-09-30 08:53:39 +0000

    cad/openroad: 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/openroad/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/cad/openroad/Makefile b/cad/openroad/Makefile
index 62c2269d93fb..f14b52a4279e 100644
--- a/cad/openroad/Makefile
+++ b/cad/openroad/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	openroad
 DISTVERSIONPREFIX=	v
 DISTVERSION=	2.0-20250216
-PORTREVISION=	4
+PORTREVISION=	5
 PORTEPOCH=	1
 CATEGORIES=	cad
 
@@ -73,6 +73,10 @@ post-patch: # override the TCL version to be the same as USES=tcl sets
 		| ${XARGS} ${REINPLACE_CMD} -e ' \
 			s|set(TCL_POSSIBLE_NAMES |set(TCL_POSSIBLE_NAMES tcl$${FREEBSD_TCL_VER} |; \
 			s|PATHS $${TCL_LIB_PARENT1}|PATHS $${FREEBSD_TCL_INCLUDEDIR} $${TCL_LIB_PARENT1}|'
+	@${REINPLACE_CMD} \
+			-e '/^find_package(Boost /s| system||' \
+			-e '/Boost::system/d'  \
+			${WRKSRC}/src/dst/CMakeLists.txt
 
 post-install: # unnecessarily installs bundled OpenSTA project: https://github.com/The-OpenROAD-Project/OpenROAD/issues/597
 	${RM} -r ${STAGEDIR}${PREFIX}/include/sta ${STAGEDIR}${PREFIX}/lib/libOpenSTA.a