git: 66e3c4faeb29 - main - games/openmw: prevent hook up Qt5 buildtools instead of Qt6 in mixed environment (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Wed, 30 Jul 2025 08:24:24 UTC
The branch main has been updated by fluffy:

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

commit 66e3c4faeb2951dbed98416842e7954c6cd563ea
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2025-07-30 08:22:38 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2025-07-30 08:22:38 +0000

    games/openmw: prevent hook up Qt5 buildtools instead of Qt6 in mixed environment (+)
    
    While here, prepare for upcoming Boost.system removal
---
 games/openmw/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/games/openmw/Makefile b/games/openmw/Makefile
index ef831d06890e..e0654383dacc 100644
--- a/games/openmw/Makefile
+++ b/games/openmw/Makefile
@@ -63,6 +63,13 @@ PORTDOCS=	*
 LDFLAGS_i386+=	-Wl,--no-check-dynamic-relocations
 .endif
 
+post-patch:
+	${REINPLACE_CMD} -e 's/Qt6 Qt5/Qt6/' \
+	-e 's/program_options system/program_options/' \
+	${WRKSRC}/CMakeLists.txt
+	${REINPLACE_CMD} -e '/Boost::system/d' \
+	${WRKSRC}/components/CMakeLists.txt
+
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*