commit:     1d64c33a6869b2424dd47d7e7a2a30eff05127c5
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 23 15:09:31 2025 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Wed Apr 23 15:10:03 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d64c33a

media-libs/freeglut: Add patch to fix build with cmake-4

Closes: https://bugs.gentoo.org/951617
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 .../freeglut/files/freeglut-3.6.0-cmake4.patch     | 24 ++++++++++++++++++++++
 media-libs/freeglut/freeglut-3.6.0-r1.ebuild       |  1 +
 2 files changed, 25 insertions(+)

diff --git a/media-libs/freeglut/files/freeglut-3.6.0-cmake4.patch 
b/media-libs/freeglut/files/freeglut-3.6.0-cmake4.patch
new file mode 100644
index 000000000000..116a09893038
--- /dev/null
+++ b/media-libs/freeglut/files/freeglut-3.6.0-cmake4.patch
@@ -0,0 +1,24 @@
+From 2294389397912c9a6505a88221abb7dca0a4fb79 Mon Sep 17 00:00:00 2001
+From: John Tsiombikas <[email protected]>
+Date: Thu, 20 Mar 2025 09:28:29 +0200
+Subject: [PATCH] Let cmake know we are aware there are newer versions and we
+ don't care
+
+Closes issue #207
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git ./CMakeLists.txt ./CMakeLists.txt
+index 791771e7..e5903ef4 100644
+--- ./CMakeLists.txt
++++ ./CMakeLists.txt
+@@ -1,4 +1,4 @@
+-CMAKE_MINIMUM_REQUIRED(VERSION 3.1 FATAL_ERROR)
++CMAKE_MINIMUM_REQUIRED(VERSION 3.1...3.5 FATAL_ERROR)
+ PROJECT(freeglut LANGUAGES C)
+ 
+ #######################
+-- 
+2.49.0
+

diff --git a/media-libs/freeglut/freeglut-3.6.0-r1.ebuild 
b/media-libs/freeglut/freeglut-3.6.0-r1.ebuild
index 97c0694706ee..0b8bfa644405 100644
--- a/media-libs/freeglut/freeglut-3.6.0-r1.ebuild
+++ b/media-libs/freeglut/freeglut-3.6.0-r1.ebuild
@@ -27,6 +27,7 @@ BDEPEND="virtual/pkgconfig"
 
 PATCHES=(
        "${FILESDIR}"/${PN}-3.6.0-c23.patch
+       "${FILESDIR}"/${PN}-3.6.0-cmake4.patch
 )
 
 src_configure() {

Reply via email to