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

Closes: https://bugs.gentoo.org/951617
Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
Matt Turner
2025-04-23 11:09:31 -04:00
parent 9305f5dd28
commit 1d64c33a68
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
From 2294389397912c9a6505a88221abb7dca0a4fb79 Mon Sep 17 00:00:00 2001
From: John Tsiombikas <nuclear@member.fsf.org>
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

View File

@@ -27,6 +27,7 @@ BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${PN}-3.6.0-c23.patch
"${FILESDIR}"/${PN}-3.6.0-cmake4.patch
)
src_configure() {