File: cmake-detect-RISCOS-platform-before-GNU-Hurd.patch

package info (click to toggle)
libsdl3 3.2.22%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 43,172 kB
  • sloc: ansic: 390,638; objc: 12,337; xml: 9,084; cpp: 5,728; perl: 4,589; python: 3,372; sh: 1,032; makefile: 265; cs: 56
file content (31 lines) | stat: -rw-r--r-- 1,156 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From: Anonymous Maarten <anonymous.maarten@gmail.com>
Date: Fri, 8 Aug 2025 04:55:32 +0200
Subject: cmake: detect RISCOS platform before GNU/Hurd

Origin: upstream, 3.4.0, commit:595c37b3a4cb62fee46326cd09efb635e49f2a49
Bug-Debian: https://salsa.debian.org/sdl-team/libsdl3/-/merge_requests/3
---
 cmake/sdlplatform.cmake | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cmake/sdlplatform.cmake b/cmake/sdlplatform.cmake
index c5904be..bdba9c1 100644
--- a/cmake/sdlplatform.cmake
+++ b/cmake/sdlplatform.cmake
@@ -24,6 +24,8 @@ function(SDL_DetectCMakePlatform)
     set(sdl_cmake_platform n3ds)
   elseif(PS2)
     set(sdl_cmake_platform ps2)
+  elseif(RISCOS)
+    set(sdl_cmake_platform RISCOS)
   elseif(VITA)
     set(sdl_cmake_platform Vita)
   elseif(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
@@ -35,6 +37,7 @@ function(SDL_DetectCMakePlatform)
   elseif(CMAKE_SYSTEM_NAME MATCHES "kOpenBSD.*|OpenBSD.*")
     set(sdl_cmake_platform OpenBSD)
   elseif(CMAKE_SYSTEM_NAME STREQUAL "GNU")
+    # GNU/Hurd must be checked AFTER RISCOS
     set(sdl_cmake_platform Hurd)
   elseif(CMAKE_SYSTEM_NAME MATCHES ".*BSDI.*")
     set(sdl_cmake_platform BSDi)