mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
Update SDL3 to 3.2.28 (#13368)
This commit is contained in:
@@ -6,15 +6,16 @@ software, emulators, and popular games."
|
||||
HOMEPAGE="https://www.libsdl.org/"
|
||||
COPYRIGHT="1997-2025 Sam Lantinga"
|
||||
LICENSE="Zlib"
|
||||
REVISION="2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://www.libsdl.org/release/SDL3-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="13388fabb361de768ecdf2b65e52bb27d1054cae6ccb6942ba926e378e00db03"
|
||||
CHECKSUM_SHA256="1330671214d146f8aeb1ed399fc3e081873cdb38b5189d1f8bb6ab15bbc04211"
|
||||
PATCHES="libsdl3-$portVersion.patchset"
|
||||
SOURCE_DIR="SDL3-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="0.2.4"
|
||||
libVersion="0.2.28"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
@@ -50,7 +51,7 @@ BUILD_PREREQUIRES="
|
||||
BUILD()
|
||||
{
|
||||
cmake . -Bbuild -GNinja $cmakeDirArgs \
|
||||
-DSDL_STATIC=OFF \
|
||||
-DSDL_STATIC=OFF -DSDL_RPATH=OFF \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DSDL_TESTS=ON
|
||||
ninja -C build
|
||||
41
media-libs/libsdl3/patches/libsdl3-3.2.28.patchset
Normal file
41
media-libs/libsdl3/patches/libsdl3-3.2.28.patchset
Normal file
@@ -0,0 +1,41 @@
|
||||
From 73e260b8ae185d41adc293a22bc6cf261def5e43 Mon Sep 17 00:00:00 2001
|
||||
From: Peppersawce <michaelpeppers89@yahoo.it>
|
||||
Date: Sat, 13 Dec 2025 17:56:10 +0100
|
||||
Subject: Make BUrl not 'ambiguous' again
|
||||
|
||||
|
||||
diff --git a/src/misc/haiku/SDL_sysurl.cc b/src/misc/haiku/SDL_sysurl.cc
|
||||
index 1ce5955..86f269a 100644
|
||||
--- a/src/misc/haiku/SDL_sysurl.cc
|
||||
+++ b/src/misc/haiku/SDL_sysurl.cc
|
||||
@@ -25,7 +25,11 @@
|
||||
|
||||
bool SDL_SYS_OpenURL(const char *url)
|
||||
{
|
||||
+#if B_HAIKU_VERSION <= B_HAIKU_VERSION_1_BETA_5
|
||||
BUrl burl(url);
|
||||
+#else
|
||||
+ BUrl burl(url, true);
|
||||
+#endif
|
||||
const status_t rc = burl.OpenWithPreferredApplication(false);
|
||||
if (rc != B_NO_ERROR) {
|
||||
return SDL_SetError("URL open failed (err=%d)", (int)rc);
|
||||
diff --git a/src/video/haiku/SDL_bvideo.cc b/src/video/haiku/SDL_bvideo.cc
|
||||
index e9e9376..5d194c8 100644
|
||||
--- a/src/video/haiku/SDL_bvideo.cc
|
||||
+++ b/src/video/haiku/SDL_bvideo.cc
|
||||
@@ -313,7 +313,11 @@ void HAIKU_VideoQuit(SDL_VideoDevice *_this)
|
||||
extern "C"
|
||||
bool HAIKU_OpenURL(const char *url)
|
||||
{
|
||||
+#if B_HAIKU_VERSION <= B_HAIKU_VERSION_1_BETA_5
|
||||
BUrl burl(url);
|
||||
+#else
|
||||
+ BUrl burl(url, true);
|
||||
+#endif
|
||||
const status_t rc = burl.OpenWithPreferredApplication(false);
|
||||
if (rc != B_NO_ERROR) {
|
||||
return SDL_SetError("URL open failed (err=%d)", (int)rc);
|
||||
--
|
||||
2.51.0
|
||||
|
||||
Reference in New Issue
Block a user