git: e9b52f7cb8d5 - main - games/openclonk: Fix building with CMake 4

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Tue, 22 Sep 2026 16:33:02 UTC
The branch main has been updated by arrowd:

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

commit e9b52f7cb8d50840a20d523b047091f2b5949e17
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2026-09-22 16:31:12 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2026-09-22 16:31:46 +0000

    games/openclonk: Fix building with CMake 4
    
    Approved by:    portmgr (fixit blanket)
---
 games/openclonk/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/games/openclonk/Makefile b/games/openclonk/Makefile
index 58c44d920e52..cf998ccbc4f2 100644
--- a/games/openclonk/Makefile
+++ b/games/openclonk/Makefile
@@ -27,7 +27,8 @@ USES=		cmake:noninja compiler:c++14-lang desktop-file-utils gl gnome jpeg openal
 USE_GL=		gl glew glu
 USE_SDL=	sdl2
 USE_XORG=	x11 xpm
-CMAKE_ARGS=	-DAudio_TK:STRING="OpenAL"
+CMAKE_ARGS=	-DAudio_TK:STRING="OpenAL" \
+		-DCMAKE_POLICY_VERSION_MINIMUM=3.5
 LDFLAGS_i386=	-Wl,-znotext
 WRKSRC=		${WRKDIR}/openclonk-release-${PORTVERSION}-src