SDL: build-scripts: Include SDL- prefix in SDL_REVISION when built from tarball

From cc681ffeda4f2e7a4663a1674483f2a5ab10f0ac Mon Sep 17 00:00:00 2001
From: Simon McVittie <[EMAIL REDACTED]>
Date: Wed, 3 Dec 2025 15:13:40 +0000
Subject: [PATCH] build-scripts: Include SDL- prefix in SDL_REVISION when built
 from tarball

https://github.com/libsdl-org/SDL/issues/14575

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 build-scripts/pkg-support/source/SDL_revision.h.cmake.in | 4 ++--
 build-scripts/pkg-support/source/SDL_revision.h.in       | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/build-scripts/pkg-support/source/SDL_revision.h.cmake.in b/build-scripts/pkg-support/source/SDL_revision.h.cmake.in
index 99e9f80c9e11b..7c4969e4c405b 100644
--- a/build-scripts/pkg-support/source/SDL_revision.h.cmake.in
+++ b/build-scripts/pkg-support/source/SDL_revision.h.cmake.in
@@ -33,9 +33,9 @@
 #cmakedefine SDL_VENDOR_INFO "@SDL_VENDOR_INFO@"
 
 #if defined(SDL_VENDOR_INFO)
-#define SDL_REVISION "@<@PROJECT_REVISION@>@ (" SDL_VENDOR_INFO ")"
+#define SDL_REVISION "SDL-@<@PROJECT_REVISION@>@ (" SDL_VENDOR_INFO ")"
 #else
-#define SDL_REVISION "@<@PROJECT_REVISION@>@"
+#define SDL_REVISION "SDL-@<@PROJECT_REVISION@>@"
 #endif
 
 #endif /* SDL_revision_h_ */
diff --git a/build-scripts/pkg-support/source/SDL_revision.h.in b/build-scripts/pkg-support/source/SDL_revision.h.in
index 7dd6bc131e335..27ba349243ce4 100644
--- a/build-scripts/pkg-support/source/SDL_revision.h.in
+++ b/build-scripts/pkg-support/source/SDL_revision.h.in
@@ -48,9 +48,9 @@
  */
 #define SDL_REVISION "Some arbitrary string decided at SDL build time"
 #elif defined(SDL_VENDOR_INFO)
-#define SDL_REVISION "@<@PROJECT_REVISION@>@ (" SDL_VENDOR_INFO ")"
+#define SDL_REVISION "SDL-@<@PROJECT_REVISION@>@ (" SDL_VENDOR_INFO ")"
 #else
-#define SDL_REVISION "@<@PROJECT_REVISION@>@"
+#define SDL_REVISION "SDL-@<@PROJECT_REVISION@>@"
 #endif
 
 #endif /* SDL_revision_h_ */