aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias C. Berner <tcberner@FreeBSD.org>2022-09-08 14:16:36 +0000
committerTobias C. Berner <tcberner@FreeBSD.org>2022-09-08 14:18:47 +0000
commit8fac410d9ec5c59396fc8eeba9d46a13af06d8de (patch)
tree9d87e954bd6bbc6a1ca8df757cf070ab63874fb4
parent136a6b01d28d42af48130ed231c302e104f52ec2 (diff)
downloadports-8fac410d9ec5c59396fc8eeba9d46a13af06d8de.tar.gz
ports-8fac410d9ec5c59396fc8eeba9d46a13af06d8de.zip
games/hedgewars: prepare for cmake-3.24
Obtained from: Arch Linux PR: 265652
-rw-r--r--games/hedgewars/Makefile4
1 files changed, 4 insertions, 0 deletions
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