games/odamex: Unbreak.

We had missed one place where the SDL versioning had to be changed.

OK thfr@, thanks.
This commit is contained in:
edd 2022-10-26 20:02:40 +00:00
parent 4125b6014d
commit 65c1c37291
3 changed files with 20 additions and 3 deletions

View File

@ -1,11 +1,9 @@
BROKEN = segfaults since SDL2 was updated
COMMENT = online multiplayer doom
V = 0.9.5
DISTNAME = odamex-src-${V}
PKGNAME = odamex-${V}
REVISION = 0
REVISION = 1
CATEGORIES = games
HOMEPAGE = https://odamex.net/

View File

@ -0,0 +1,17 @@
Workaround to build with SDL 2.24.1+ until upstream catches up to new
SDL versioning
https://github.com/odamex/odamex/commit/84b88e156fd81cf74b70bc6c0129bde5d9588e1a
Index: client/sdl/i_sdl.h
--- client/sdl/i_sdl.h.orig
+++ client/sdl/i_sdl.h
@@ -26,7 +26,7 @@
#include <SDL.h>
-#if (SDL_MAJOR_VERSION == 2 && SDL_MINOR_VERSION == 0)
+#if (SDL_MAJOR_VERSION == 2)
#define SDL20
#elif (SDL_MAJOR_VERSION == 1 && SDL_MINOR_VERSION == 2)
#define SDL12

View File

@ -1,6 +1,8 @@
Workaround to build with SDL 2.24.1+ until upstream catches up to new
SDL versioning
https://github.com/odamex/odamex/commit/84b88e156fd81cf74b70bc6c0129bde5d9588e1a
Index: libraries/textscreen/txt_sdl.h
--- libraries/textscreen/txt_sdl.h.orig
+++ libraries/textscreen/txt_sdl.h