git: 8fac410d9ec5 - main - games/hedgewars: prepare for cmake-3.24
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 08 Sep 2022 14:25:06 UTC
The branch main has been updated by tcberner:
URL: https://cgit.FreeBSD.org/ports/commit/?id=8fac410d9ec5c59396fc8eeba9d46a13af06d8de
commit 8fac410d9ec5c59396fc8eeba9d46a13af06d8de
Author: Tobias C. Berner <tcberner@FreeBSD.org>
AuthorDate: 2022-09-08 14:16:36 +0000
Commit: Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2022-09-08 14:18:47 +0000
games/hedgewars: prepare for cmake-3.24
Obtained from: Arch Linux
PR: 265652
---
games/hedgewars/Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/games/hedgewars/Makefile b/games/hedgewars/Makefile
index 927938d2f5f1..5f023a5adc08 100644
--- a/games/hedgewars/Makefile
+++ b/games/hedgewars/Makefile
@@ -59,6 +59,10 @@ VIDEOREC_CMAKE_OFF= -DNOVIDEOREC=1
BUILD_DEPENDS+= ghc:lang/ghc
.endif
+post-extract:
+ # Remove included CMakeFile, which is incompatible with >= cmake-3.24
+ ${RM} ${WRKSRC}/cmake_modules/CMakeSystemSpecificInformation.cmake
+
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/cmake_modules/*.cmake
@${REINPLACE_CMD} -e "s|'liblua'|'liblua-${LUA_VER}'|" ${WRKSRC}/hedgewars/LuaPas.pas