git: 85ae1a8a222e - main - games/freeorion: unbreak with Boost-1.89

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Mon, 20 Oct 2025 14:40:11 UTC
The branch main has been updated by fluffy:

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

commit 85ae1a8a222e5965c07c185452fb127c71373a0a
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2025-10-20 14:39:09 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2025-10-20 14:39:09 +0000

    games/freeorion: unbreak with Boost-1.89
---
 games/freeorion/Makefile | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/games/freeorion/Makefile b/games/freeorion/Makefile
index 41a605daed28..3384157f60f0 100644
--- a/games/freeorion/Makefile
+++ b/games/freeorion/Makefile
@@ -49,6 +49,15 @@ CLIENT_GG_LIB_DEPENDS=	libfreetype.so:print/freetype2 \
 CMAKE_ARGS+=	-DBoost_NO_BOOST_CMAKE:BOOL=YES
 .endif
 
+post-patch:
+	@${REINPLACE_CMD} -e '/        system/d' \
+		${WRKSRC}/CMakeLists.txt
+	@${REINPLACE_CMD} -e '/^find_package(Boost /s| system||' \
+		${WRKSRC}/GG/CMakeLists.txt
+	@${REINPLACE_CMD} -e '/Boost::system/d' \
+		${WRKSRC}/GG/test/unit/CMakeLists.txt \
+		${WRKSRC}/test/UI/CMakeLists.txt
+
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for f in ${PORTDOCS}