git: 2aa8bd9c3342 - main - emulators/joytran: Fix building with CMake 4
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 26 Sep 2026 09:54:25 UTC
The branch main has been updated by arrowd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2aa8bd9c3342eb7a9e6646abbdda5231d17501e0
commit 2aa8bd9c3342eb7a9e6646abbdda5231d17501e0
Author: Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2026-09-26 09:51:47 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2026-09-26 09:53:09 +0000
emulators/joytran: Fix building with CMake 4
PR: 298298
Approved by: portmgr (fixit blanket)
---
emulators/joytran/files/patch-CMakeLists.txt | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/emulators/joytran/files/patch-CMakeLists.txt b/emulators/joytran/files/patch-CMakeLists.txt
index e3b8e55447ce..0a3ec3fe2966 100644
--- a/emulators/joytran/files/patch-CMakeLists.txt
+++ b/emulators/joytran/files/patch-CMakeLists.txt
@@ -1,6 +1,14 @@
--- CMakeLists.txt.orig 2013-05-02 04:53:08 UTC
+++ CMakeLists.txt
-@@ -119,9 +119,9 @@ IF( SDL_LIB STREQUAL "SDL2" )
+@@ -1,6 +1,6 @@ PROJECT(Joytran)
+ ## -*- coding: utf-8 -*-
+ PROJECT(Joytran)
+-CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
++CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
+
+ OPTION(INSTALL_DOCUMENTATION "install documentation" ON) # On is the default
+ OPTION(WITH_SDL_20 "Use SDL 2.0" ON)
+@@ -119,9 +119,9 @@ ENDIF()
SET(CMAKE_CPP_FLAGS "${CMAKE_CPP_FLAGS} -DWITH_SDL2")
ENDIF()
## These work in both clang and gcc