SDL_mixer: cmake: rename 'SDL3MIXER_' prefix to 'SDLMIXER_'

From e2cdd8088be9a2fa176af0d640fc931f0c9df6c6 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Thu, 15 Aug 2024 23:56:45 +0200
Subject: [PATCH] cmake: rename 'SDL3MIXER_' prefix to 'SDLMIXER_'

---
 .github/workflows/main.yml                    |  32 +-
 CMakeLists.txt                                | 612 +++++++++---------
 README.txt                                    |   2 +-
 .../pkg-support/cmake/sdl3_mixer-config.cmake |  44 +-
 .../resources/CMake/sdl3_mixer-config.cmake   |  44 +-
 build-scripts/android-prefab.sh               |  28 +-
 cmake/SDL3_mixerConfig.cmake.in               |  80 +--
 external/libgme                               |   2 +-
 .../pkg-support/cmake/sdl3_mixer-config.cmake |   2 +-
 9 files changed, 423 insertions(+), 423 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index bc985965..46eded91 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -15,12 +15,12 @@ jobs:
       fail-fast: false
       matrix:
         platform:
-        - { name: Windows (MSVC),       os: windows-2019, shell: sh,   cmake: '-DPerl_ROOT=C:/Strawberry/perl/bin/ -DSDL3MIXER_VENDORED=ON -GNinja', msvc: 1, shared: 1, static: 0 }
+        - { name: Windows (MSVC),       os: windows-2019, shell: sh,   cmake: '-DPerl_ROOT=C:/Strawberry/perl/bin/ -DSDLMIXER_VENDORED=ON -GNinja', msvc: 1, shared: 1, static: 0 }
         - { name: Windows (mingw64),    os: windows-latest, shell: 'msys2 {0}', msystem: mingw64, msys-env: mingw-w64-x86_64, shared: 1, static: 0,
-            cmake: '-DSDL3MIXER_VENDORED=OFF -G "Ninja Multi-Config"' }
-        - { name: Linux,                os: ubuntu-20.04,   shell: sh, cmake: '-DSDL3MIXER_VENDORED=ON -GNinja', shared: 1, static: 0 }
-        - { name: 'Linux (static)',     os: ubuntu-20.04,   shell: sh, cmake: '-DSDL3MIXER_VENDORED=ON -DBUILD_SHARED_LIBS=OFF -GNinja', shared: 0, static: 1 }
-        - { name: Macos,                os: macos-latest,   shell: sh, cmake: '-DSDL3MIXER_VENDORED=ON -GNinja', shared: 1, static: 0 }
+            cmake: '-DSDLMIXER_VENDORED=OFF -G "Ninja Multi-Config"' }
+        - { name: Linux,                os: ubuntu-20.04,   shell: sh, cmake: '-DSDLMIXER_VENDORED=ON -GNinja', shared: 1, static: 0 }
+        - { name: 'Linux (static)',     os: ubuntu-20.04,   shell: sh, cmake: '-DSDLMIXER_VENDORED=ON -DBUILD_SHARED_LIBS=OFF -GNinja', shared: 0, static: 1 }
+        - { name: Macos,                os: macos-latest,   shell: sh, cmake: '-DSDLMIXER_VENDORED=ON -GNinja', shared: 1, static: 0 }
 
 
     steps:
@@ -91,7 +91,7 @@ jobs:
           ninja-build \
           pkg-config \
           ${NULL+}
-    - uses: actions/checkout@v3
+    - uses: actions/checkout@v4
       with:
         submodules: recursive
 
@@ -112,16 +112,16 @@ jobs:
         set -- \
           -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
           -DCMAKE_BUILD_TYPE=Release \
-          -DSDL3MIXER_FLAC=ON \
-          -DSDL3MIXER_FLAC_LIBFLAC=ON \
-          -DSDL3MIXER_GME=ON \
-          -DSDL3MIXER_MOD_XMP=ON \
-          -DSDL3MIXER_MP3_MPG123=ON \
-          -DSDL3MIXER_OPUS=ON \
-          -DSDL3MIXER_VORBIS=VORBISFILE \
-          -DSDL3MIXER_STRICT=ON \
-          -DSDL3MIXER_WERROR=ON \
-          -DSDL3MIXER_INSTALL_MAN=ON \
+          -DSDLMIXER_FLAC=ON \
+          -DSDLMIXER_FLAC_LIBFLAC=ON \
+          -DSDLMIXER_GME=ON \
+          -DSDLMIXER_MOD_XMP=ON \
+          -DSDLMIXER_MP3_MPG123=ON \
+          -DSDLMIXER_OPUS=ON \
+          -DSDLMIXER_VORBIS=VORBISFILE \
+          -DSDLMIXER_STRICT=ON \
+          -DSDLMIXER_WERROR=ON \
+          -DSDLMIXER_INSTALL_MAN=ON \
           -DCMAKE_INSTALL_PREFIX=prefix_cmake \
           ${NULL+}
 
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7012e006..34401114 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -25,14 +25,14 @@ sdl_calculate_derived_version_variables(${MAJOR_VERSION} ${MINOR_VERSION} ${MICR
 message(STATUS "Configuring ${PROJECT_NAME} ${PROJECT_VERSION}")
 
 if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
-    set(SDL3MIXER_ROOTPROJECT ON)
+    set(SDLMIXER_ROOTPROJECT ON)
 else()
-    set(SDL3MIXER_ROOTPROJECT OFF)
+    set(SDLMIXER_ROOTPROJECT OFF)
 endif()
 
-set(SDL3MIXER_SAMPLES_DEFAULT ${SDL3MIXER_ROOTPROJECT})
+set(SDLMIXER_SAMPLES_DEFAULT ${SDLMIXER_ROOTPROJECT})
 if(ANDROID)
-    set(SDL3MIXER_SAMPLES_DEFAULT OFF)
+    set(SDLMIXER_SAMPLES_DEFAULT OFF)
 endif()
 
 # option() honors normal variables.
@@ -85,138 +85,138 @@ endif()
 option(CMAKE_POSITION_INDEPENDENT_CODE "Build static libraries with -fPIC" ${PLATFORM_SUPPORTS_SHARED})
 cmake_dependent_option(BUILD_SHARED_LIBS "Build the library as a shared library" ON PLATFORM_SUPPORTS_SHARED OFF)
 
-cmake_dependent_option(SDL3MIXER_INSTALL "Enable SDL3mixer install target" ${SDL3MIXER_ROOTPROJECT} "${sdl3mixer_install_enableable}" OFF)
-cmake_dependent_option(SDL3MIXER_INSTALL_MAN "Install man pages for SDL3_mixer" OFF "SDL3MIXER_INSTALL" OFF)
-cmake_dependent_option(SDL3MIXER_DEPS_SHARED "Load dependencies dynamically" ON PLATFORM_SUPPORTS_SHARED OFF)
-option(SDL3MIXER_VENDORED "Use vendored third-party libraries" ${vendored_default})
-option(SDL3MIXER_WERROR "Treat warnings as errors" OFF)
+cmake_dependent_option(SDLMIXER_INSTALL "Enable SDL3mixer install target" ${SDLMIXER_ROOTPROJECT} "${sdl3mixer_install_enableable}" OFF)
+cmake_dependent_option(SDLMIXER_INSTALL_MAN "Install man pages for SDL3_mixer" OFF "SDLMIXER_INSTALL" OFF)
+cmake_dependent_option(SDLMIXER_DEPS_SHARED "Load dependencies dynamically" ON PLATFORM_SUPPORTS_SHARED OFF)
+option(SDLMIXER_VENDORED "Use vendored third-party libraries" ${vendored_default})
+option(SDLMIXER_WERROR "Treat warnings as errors" OFF)
 
-option(SDL3MIXER_STRICT "Fail when a dependency could not be found" OFF)
+option(SDLMIXER_STRICT "Fail when a dependency could not be found" OFF)
 set(required "")
 set(fatal_error "STATUS")
-if(SDL3MIXER_STRICT)
+if(SDLMIXER_STRICT)
   set(required "REQUIRED")
   set(fatal_error "FATAL_ERROR")
 endif()
 
-option(SDL3MIXER_SAMPLES "Build the SDL3_mixer sample program(s)" ${SDL3MIXER_SAMPLES_DEFAULT})
-cmake_dependent_option(SDL3MIXER_SAMPLES_INSTALL "Install the SDL3_mixer sample program(s)" OFF "SDL3MIXER_SAMPLES;SDL3MIXER_INSTALL" OFF)
+option(SDLMIXER_SAMPLES "Build the SDL3_mixer sample program(s)" ${SDLMIXER_SAMPLES_DEFAULT})
+cmake_dependent_option(SDLMIXER_SAMPLES_INSTALL "Install the SDL3_mixer sample program(s)" OFF "SDLMIXER_SAMPLES;SDLMIXER_INSTALL" OFF)
 
 if(UNIX AND NOT APPLE)
     set(sdl3mixer_cmd_default ON)
 else()
     set(sdl3mixer_cmd_default OFF)
 endif()
-option(SDL3MIXER_CMD "Support an external music player" ${sdl3mixer_cmd_default})
+option(SDLMIXER_CMD "Support an external music player" ${sdl3mixer_cmd_default})
 
-option(SDL3MIXER_SNDFILE "Support loading sounds via libsndfile" OFF)
-option(SDL3MIXER_SNDFILE_SHARED "Dynamically load libsndfile" "${SDL3MIXER_DEPS_SHARED}")
+option(SDLMIXER_SNDFILE "Support loading sounds via libsndfile" OFF)
+option(SDLMIXER_SNDFILE_SHARED "Dynamically load libsndfile" "${SDLMIXER_DEPS_SHARED}")
 
-option(SDL3MIXER_FLAC "Enable FLAC music" ON)
+option(SDLMIXER_FLAC "Enable FLAC music" ON)
 
-cmake_dependent_option(SDL3MIXER_FLAC_LIBFLAC "Enable FLAC music using libFLAC" OFF SDL3MIXER_FLAC OFF)
-cmake_dependent_option(SDL3MIXER_FLAC_LIBFLAC_SHARED "Dynamically load LIBFLAC" "${SDL3MIXER_DEPS_SHARED}" SDL3MIXER_FLAC_LIBFLAC OFF)
+cmake_dependent_option(SDLMIXER_FLAC_LIBFLAC "Enable FLAC music using libFLAC" OFF SDLMIXER_FLAC OFF)
+cmake_dependent_option(SDLMIXER_FLAC_LIBFLAC_SHARED "Dynamically load LIBFLAC" "${SDLMIXER_DEPS_SHARED}" SDLMIXER_FLAC_LIBFLAC OFF)
 
-cmake_dependent_option(SDL3MIXER_FLAC_DRFLAC "Enable FLAC music using drflac" ON SDL3MIXER_FLAC OFF)
+cmake_dependent_option(SDLMIXER_FLAC_DRFLAC "Enable FLAC music using drflac" ON SDLMIXER_FLAC OFF)
 
-option(SDL3MIXER_GME "Support loading GME music via game-music-emu" ON)
-option(SDL3MIXER_GME_SHARED "Dynamically load libgme" "${SDL3MIXER_DEPS_SHARED}")
+option(SDLMIXER_GME "Support loading GME music via game-music-emu" ON)
+option(SDLMIXER_GME_SHARED "Dynamically load libgme" "${SDLMIXER_DEPS_SHARED}")
 
-option(SDL3MIXER_MOD "Support loading MOD music" ON)
+option(SDLMIXER_MOD "Support loading MOD music" ON)
 
-cmake_dependent_option(SDL3MIXER_MOD_MODPLUG "Support loading MOD music via modplug" OFF SDL3MIXER_MOD OFF)
-cmake_dependent_option(SDL3MIXER_MOD_MODPLUG_SHARED "Dynamically load modplug" "${SDL3MIXER_DEPS_SHARED}" SDL3MIXER_MOD_MODPLUG OFF)
+cmake_dependent_option(SDLMIXER_MOD_MODPLUG "Support loading MOD music via modplug" OFF SDLMIXER_MOD OFF)
+cmake_dependent_option(SDLMIXER_MOD_MODPLUG_SHARED "Dynamically load modplug" "${SDLMIXER_DEPS_SHARED}" SDLMIXER_MOD_MODPLUG OFF)
 
-cmake_dependent_option(SDL3MIXER_MOD_XMP "Support loading MOD music via libxmp" ON SDL3MIXER_MOD OFF)
-cmake_dependent_option(SDL3MIXER_MOD_XMP_LITE "Use libxmp-lite instead of libxmp" OFF "SDL3MIXER_MOD_XMP;NOT SDL3MIXER_VENDORED" OFF)
-cmake_dependent_option(SDL3MIXER_MOD_XMP_SHARED "Dynamically load libxmp(-lite)" "${SDL3MIXER_DEPS_SHARED}" SDL3MIXER_MOD_XMP OFF)
+cmake_dependent_option(SDLMIXER_MOD_XMP "Support loading MOD music via libxmp" ON SDLMIXER_MOD OFF)
+cmake_dependent_option(SDLMIXER_MOD_XMP_LITE "Use libxmp-lite instead of libxmp" OFF "SDLMIXER_MOD_XMP;NOT SDLMIXER_VENDORED" OFF)
+cmake_dependent_option(SDLMIXER_MOD_XMP_SHARED "Dynamically load libxmp(-lite)" "${SDLMIXER_DEPS_SHARED}" SDLMIXER_MOD_XMP OFF)
 
-if(SDL3MIXER_MOD AND NOT (SDL3MIXER_MOD_MODPLUG OR SDL3MIXER_MOD_XMP))
-    message(FATAL_ERROR "MOD support was enabled (SDL3MIXER_MOD) but neither modplug (SDL3MIXER_MOD_MODPLUG) or xmp (SDL3MIXER_MOD_XMP) was enabled.")
+if(SDLMIXER_MOD AND NOT (SDLMIXER_MOD_MODPLUG OR SDLMIXER_MOD_XMP))
+    message(FATAL_ERROR "MOD support was enabled (SDLMIXER_MOD) but neither modplug (SDLMIXER_MOD_MODPLUG) or xmp (SDLMIXER_MOD_XMP) was enabled.")
 endif()
 
-option(SDL3MIXER_MP3 "Enable MP3 music" ON)
+option(SDLMIXER_MP3 "Enable MP3 music" ON)
 
-cmake_dependent_option(SDL3MIXER_MP3_MINIMP3 "Support loading MP3 music via minimp3" ON SDL3MIXER_MP3 OFF)
+cmake_dependent_option(SDLMIXER_MP3_MINIMP3 "Support loading MP3 music via minimp3" ON SDLMIXER_MP3 OFF)
 
-cmake_dependent_option(SDL3MIXER_MP3_MPG123 "Support loading MP3 music via MPG123" OFF SDL3MIXER_MP3 OFF)
-cmake_dependent_option(SDL3MIXER_MP3_MPG123_SHARED "Dynamically load mpg123" "${SDL3MIXER_DEPS_SHARED}" SDL3MIXER_MP3_MPG123 OFF)
+cmake_dependent_option(SDLMIXER_MP3_MPG123 "Support loading MP3 music via MPG123" OFF SDLMIXER_MP3 OFF)
+cmake_dependent_option(SDLMIXER_MP3_MPG123_SHARED "Dynamically load mpg123" "${SDLMIXER_DEPS_SHARED}" SDLMIXER_MP3_MPG123 OFF)
 
-if(SDL3MIXER_MP3 AND NOT (SDL3MIXER_MP3_MINIMP3 OR SDL3MIXER_MP3_MPG123))
-    message(FATAL_ERROR "MP3 support was enabled (SDL3MIXER_MP3) but neither minimp3 (SDL3MIXER_MP3_MINIMP3) or mpg123 (SDL3MIXER_MP3_MPG123) were enabled.")
+if(SDLMIXER_MP3 AND NOT (SDLMIXER_MP3_MINIMP3 OR SDLMIXER_MP3_MPG123))
+    message(FATAL_ERROR "MP3 support was enabled (SDLMIXER_MP3) but neither minimp3 (SDLMIXER_MP3_MINIMP3) or mpg123 (SDLMIXER_MP3_MPG123) were enabled.")
 endif()
 
-option(SDL3MIXER_MIDI "Enable MIDI music" ON)
+option(SDLMIXER_MIDI "Enable MIDI music" ON)
 
-cmake_dependent_option(SDL3MIXER_MIDI_FLUIDSYNTH "Support FluidSynth MIDI output" ON "SDL3MIXER_MIDI;NOT SDL3MIXER_VENDORED" OFF)
-cmake_dependent_option(SDL3MIXER_MIDI_FLUIDSYNTH_SHARED "Dynamically load libfluidsynth" "${SDL3MIXER_DEPS_SHARED}" SDL3MIXER_MIDI_FLUIDSYNTH OFF)
+cmake_dependent_option(SDLMIXER_MIDI_FLUIDSYNTH "Support FluidSynth MIDI output" ON "SDLMIXER_MIDI;NOT SDLMIXER_VENDORED" OFF)
+cmake_dependent_option(SDLMIXER_MIDI_FLUIDSYNTH_SHARED "Dynamically load libfluidsynth" "${SDLMIXER_DEPS_SHARED}" SDLMIXER_MIDI_FLUIDSYNTH OFF)
 
 if(WIN32 OR APPLE OR HAIKU)
-    cmake_dependent_option(SDL3MIXER_MIDI_NATIVE "Support native MIDI output" ON SDL3MIXER_MIDI OFF)
+    cmake_dependent_option(SDLMIXER_MIDI_NATIVE "Support native MIDI output" ON SDLMIXER_MIDI OFF)
 else()
-    set(SDL3MIXER_MIDI_NATIVE OFF)
+    set(SDLMIXER_MIDI_NATIVE OFF)
 endif()
 
-cmake_dependent_option(SDL3MIXER_MIDI_TIMIDITY "Support timidity MIDI output" ON SDL3MIXER_MIDI OFF)
+cmake_dependent_option(SDLMIXER_MIDI_TIMIDITY "Support timidity MIDI output" ON SDLMIXER_MIDI OFF)
 
-if(SDL3MIXER_MIDI AND NOT (SDL3MIXER_MIDI_TIMIDITY OR SDL3MIXER_MIDI_NATIVE OR SDL3MIXER_MIDI_FLUIDSYNTH))
-    message(FATAL_ERROR "MIDI support was enabled (SDL3MIXER_MIDI) but neither FluidSynth (SDL3MIXER_MIDI_FLUIDSYNTH), native (SDL3MIXER_MIDI_NATIVE) or timidity (SDL3MIXER_MIDI_TIMIDITY) was enabled")
+if(SDLMIXER_MIDI AND NOT (SDLMIXER_MIDI_TIMIDITY OR SDLMIXER_MIDI_NATIVE OR SDLMIXER_MIDI_FLUIDSYNTH))
+    message(FATAL_ERROR "MIDI support was enabled (SDLMIXER_MIDI) but neither FluidSynth (SDLMIXER_MIDI_FLUIDSYNTH), native (SDLMIXER_MIDI_NATIVE) or timidity (SDLMIXER_MIDI_TIMIDITY) was enabled")
 endif()
 
-option(SDL3MIXER_OPUS "Enable Opus music" ON)
-cmake_dependent_option(SDL3MIXER_OPUS_SHARED "Dynamically load libopus" "${SDL3MIXER_DEPS_SHARED}" SDL3MIXER_OPUS OFF)
+option(SDLMIXER_OPUS "Enable Opus music" ON)
+cmake_dependent_option(SDLMIXER_OPUS_SHARED "Dynamically load libopus" "${SDLMIXER_DEPS_SHARED}" SDLMIXER_OPUS OFF)
 
 set(sdl3mixer_vorbis_strings STB TREMOR VORBISFILE)
-set(SDL3MIXER_VORBIS "STB" CACHE STRING "Enable OGG Vorbis music")
-set_property(CACHE SDL3MIXER_VORBIS PROPERTY STRINGS "${sdl3mixer_vorbis_strings}")
-if(SDL3MIXER_VORBIS)
-    if(NOT SDL3MIXER_VORBIS IN_LIST sdl3mixer_vorbis_strings)
-        message(FATAL_ERROR "SDL3MIXER_VORBIS contains an invalid value (=${SDL3MIXER_VORBIS}). It must be one of ${sdl3mixer_vorbis_strings}.")
+set(SDLMIXER_VORBIS "STB" CACHE STRING "Enable OGG Vorbis music")
+set_property(CACHE SDLMIXER_VORBIS PROPERTY STRINGS "${sdl3mixer_vorbis_strings}")
+if(SDLMIXER_VORBIS)
+    if(NOT SDLMIXER_VORBIS IN_LIST sdl3mixer_vorbis_strings)
+        message(FATAL_ERROR "SDLMIXER_VORBIS contains an invalid value (=${SDLMIXER_VORBIS}). It must be one of ${sdl3mixer_vorbis_strings}.")
     endif()
 endif()
-set(SDL3MIXER_VORBIS_STB OFF)
-set(SDL3MIXER_VORBIS_TREMOR OFF)
-set(SDL3MIXER_VORBIS_VORBISFILE OFF)
-if(SDL3MIXER_VORBIS STREQUAL "STB")
-    set(SDL3MIXER_VORBIS_STB ON)
+set(SDLMIXER_VORBIS_STB OFF)
+set(SDLMIXER_VORBIS_TREMOR OFF)
+set(SDLMIXER_VORBIS_VORBISFILE OFF)
+if(SDLMIXER_VORBIS STREQUAL "STB")
+    set(SDLMIXER_VORBIS_STB ON)
 endif()
-if(SDL3MIXER_VORBIS STREQUAL "TREMOR")
-    set(SDL3MIXER_VORBIS_TREMOR ON)
+if(SDLMIXER_VORBIS STREQUAL "TREMOR")
+    set(SDLMIXER_VORBIS_TREMOR ON)
 endif()
-if(SDL3MIXER_VORBIS STREQUAL "VORBISFILE")
-    set(SDL3MIXER_VORBIS_VORBISFILE ON)
+if(SDLMIXER_VORBIS STREQUAL "VORBISFILE")
+    set(SDLMIXER_VORBIS_VORBISFILE ON)
 endif()
-cmake_dependent_option(SDL3MIXER_VORBIS_TREMOR_SHARED "Dynamically load tremor library" "${SDL3MIXER_DEPS_SHARED}" SDL3MIXER_VORBIS_TREMOR OFF)
-cmake_dependent_option(SDL3MIXER_VORBIS_VORBISFILE_SHARED "Dynamically load vorbisfile library" "${SDL3MIXER_DEPS_SHARED}" SDL3MIXER_VORBIS_VORBISFILE OFF)
+cmake_dependent_option(SDLMIXER_VORBIS_TREMOR_SHARED "Dynamically load tremor library" "${SDLMIXER_DEPS_SHARED}" SDLMIXER_VORBIS_TREMOR OFF)
+cmake_dependent_option(SDLMIXER_VORBIS_VORBISFILE_SHARED "Dynamically load vorbisfile library" "${SDLMIXER_DEPS_SHARED}" SDLMIXER_VORBIS_VORBISFILE OFF)
 
-option(SDL3MIXER_WAVE "Enable streaming WAVE music" ON)
+option(SDLMIXER_WAVE "Enable streaming WAVE music" ON)
 
-option(SDL3MIXER_WAVPACK "Enable WavPack music" ON)
-cmake_dependent_option(SDL3MIXER_WAVPACK_DSD "Enable WavPack DSD music support" OFF SDL3MIXER_WAVPACK OFF)
-cmake_dependent_option(SDL3MIXER_WAVPACK_SHARED "Dynamically load WavPack library" "${SDL3MIXER_DEPS_SHARED}" SDL3MIXER_WAVPACK OFF)
+option(SDLMIXER_WAVPACK "Enable WavPack music" ON)
+cmake_dependent_option(SDLMIXER_WAVPACK_DSD "Enable WavPack DSD music support" OFF SDLMIXER_WAVPACK OFF)
+cmake_dependent_option(SDLMIXER_WAVPACK_SHARED "Dynamically load WavPack library" "${SDLMIXER_DEPS_SHARED}" SDLMIXER_WAVPACK OFF)
 
-if(SDL3MIXER_VORBIS_TREMOR OR SDL3MIXER_VORBIS_VORBISFILE OR SDL3MIXER_FLAC_LIBFLAC OR SDL3MIXER_OPUS)
-    set(SDL3MIXER_OGG TRUE)
-    set(SDL3MIXER_OGG_install FALSE)
-    if(SDL3MIXER_VORBIS_VORBISFILE_SHARED OR SDL3MIXER_FLAC_SHARED OR SDL3MIXER_OPUS_SHARED)
-        set(SDL3MIXER_OGG_SHARED TRUE)
-        set(SDL3MIXER_OGG_install TRUE)
+if(SDLMIXER_VORBIS_TREMOR OR SDLMIXER_VORBIS_VORBISFILE OR SDLMIXER_FLAC_LIBFLAC OR SDLMIXER_OPUS)
+    set(SDLMIXER_OGG TRUE)
+    set(SDLMIXER_OGG_install FALSE)
+    if(SDLMIXER_VORBIS_VORBISFILE_SHARED OR SDLMIXER_FLAC_SHARED OR SDLMIXER_OPUS_SHARED)
+        set(SDLMIXER_OGG_SHARED TRUE)
+        set(SDLMIXER_OGG_install TRUE)
     else()
-        set(SDL3MIXER_OGG_SHARED FALSE)
-        if(NOT SDL3MIXER_BUILD_SHARED_LIBS)
-            set(SDL3MIXER_OGG_install TRUE)
+        set(SDLMIXER_OGG_SHARED FALSE)
+        if(NOT SDLMIXER_BUILD_SHARED_LIBS)
+            set(SDLMIXER_OGG_install TRUE)
         endif()
     endif()
 else()
-    set(SDL3MIXER_OGG FALSE)
+    set(SDLMIXER_OGG FALSE)
 endif()
 
 # Save BUILD_SHARED_LIBS variable
-set(SDL3MIXER_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})
+set(SDLMIXER_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})
 
 set(sdl_required_components Headers)
 
-if(SDL3MIXER_BUILD_SHARED_LIBS)
+if(SDLMIXER_BUILD_SHARED_LIBS)
     set(sdl3_mixer_target_name SDL3_mixer-shared)
     set(sdl3_target_name SDL3::SDL3-shared)
 
@@ -230,7 +230,7 @@ if(NOT TARGET SDL3::Headers OR NOT TARGET ${sdl3_target_name})
     find_package(SDL3 ${SDL_REQUIRED_VERSION} REQUIRED COMPONENTS ${sdl_required_components})
 endif()
 
-set(BUILD_SHARED_LIBS ${SDL3MIXER_BUILD_SHARED_LIBS})
+set(BUILD_SHARED_LIBS ${SDLMIXER_BUILD_SHARED_LIBS})
 add_library(${sdl3_mixer_target_name}
     src/codecs/load_aiff.c
     src/codecs/load_voc.c
@@ -278,10 +278,10 @@ target_compile_definitions(${sdl3_mixer_target_name} PRIVATE
     SDL_BUILD_MICRO_VERSION=${MICRO_VERSION}
 )
 target_link_libraries(${sdl3_mixer_target_name} PUBLIC SDL3::Headers)
-if(SDL3MIXER_BUILD_SHARED_LIBS)
+if(SDLMIXER_BUILD_SHARED_LIBS)
     target_link_libraries(${sdl3_mixer_target_name} PRIVATE SDL3::SDL3-shared)
 endif()
-sdl_add_warning_options(${sdl3_mixer_target_name} WARNING_AS_ERROR ${SDL3MIXER_WERROR})
+sdl_add_warning_options(${sdl3_mixer_target_name} WARNING_AS_ERROR ${SDLMIXER_WERROR})
 if(WIN32 AND BUILD_SHARED_LIBS)
     target_sources(${sdl3_mixer_target_name} PRIVATE
         src/version.rc
@@ -306,7 +306,7 @@ if(NOT ANDROID)
         )
     endif()
 endif()
-if(SDL3MIXER_BUILD_SHARED_LIBS)
+if(SDLMIXER_BUILD_SHARED_LIBS)
     if(WIN32)
         set_target_properties(${sdl3_mixer_target_name} PROPERTIES
             PREFIX ""
@@ -322,18 +322,18 @@ else()
 endif()
 
 # Use `Compatible Interface Properties` to ensure a shared SDL3_mixer is linked to a shared SDL3 library
-if(SDL3MIXER_BUILD_SHARED_LIBS)
-    set_property(TARGET ${sdl3_mixer_target_name} PROPERTY INTERFACE_SDL3_SHARED ${SDL3MIXER_BUILD_SHARED_LIBS})
+if(SDLMIXER_BUILD_SHARED_LIBS)
+    set_property(TARGET ${sdl3_mixer_target_name} PROPERTY INTERFACE_SDL3_SHARED ${SDLMIXER_BUILD_SHARED_LIBS})
     set_property(TARGET ${sdl3_mixer_target_name} APPEND PROPERTY COMPATIBLE_INTERFACE_BOOL SDL3_SHARED)
 endif()
 
-if(SDL3MIXER_BUILD_SHARED_LIBS)
+if(SDLMIXER_BUILD_SHARED_LIBS)
     sdl_target_link_options_no_undefined(${sdl3_mixer_target_name})
 endif()
 
 sdl_target_link_option_version_file(${sdl3_mixer_target_name} "${CMAKE_CURRENT_SOURCE_DIR}/src/SDL_mixer.sym")
 
-if(SDL3MIXER_BUILD_SHARED_LIBS)
+if(SDLMIXER_BUILD_SHARED_LIBS)
     # Make sure static library dependencies are built with -fPIC when building a shared SDL3_mixer
     set(CMAKE_POSITION_INDEPENDENT_CODE ON)
 endif()
@@ -341,53 +341,53 @@ endif()
 set(INSTALL_EXTRA_TARGETS)
 set(PC_LIBS)
 set(PC_REQUIRES)
-set(SDL3MIXER_BACKENDS)
+set(SDLMIXER_BACKENDS)
 
-list(APPEND SDL3MIXER_BACKENDS CMD)
-set(SDL3MIXER_CMD_ENABLED FALSE)
-if(SDL3MIXER_CMD)
+list(APPEND SDLMIXER_BACKENDS CMD)
+set(SDLMIXER_CMD_ENABLED FALSE)
+if(SDLMIXER_CMD)
     target_compile_definitions(${sdl3_mixer_target_name} PRIVATE MUSIC_CMD)
     set(fork_found OFF)
     if(NOT fork_found)
         check_symbol_exists(fork unistd.h HAVE_FORK)
         if(HAVE_FORK)
-            set(SDL3MIXER_CMD_ENABLED TRUE)
+            set(SDLMIXER_CMD_ENABLED TRUE)
             target_compile_definitions(${sdl3_mixer_target_name} PRIVATE HAVE_FORK)
         endif()
     endif()
     if(NOT fork_found)
         check_symbol_exists(vfork unistd.h HAVE_VFORK)
         if(HAVE_VFORK)
-            set(SDL3MIXER_CMD_ENABLED TRUE)
+            set(SDLMIXER_CMD_ENABLED TRUE)
             target_compile_definitions(${sdl3_mixer_target_name} PRIVATE HAVE_VFORK)
         endif()
     endif()
-    if(NOT SDL3MIXER_CMD_ENABLED)
-        message(${fatal_error} "Neither fork() nor vfork() or available on this platform. Reconfigure with -DSDL3MIXER_CMD=OFF.")
+    if(NOT SDLMIXER_CMD_ENABLED)
+        message(${fatal_error} "Neither fork() nor vfork() or available on this platform. Reconfigure with -DSDLMIXER_CMD=OFF.")
     endif()
 endif()
 
-list(APPEND SDL3MIXER_BACKENDS SNDFILE)
-set(SDL3MIXER_SNDFILE_ENABLED FALSE)
-if(SDL3MIXER_SNDFILE)
-    if(SDL3MIXER_VENDORED)
+list(APPEND SDLMIXER_BACKENDS SNDFILE)
+set(SDLMIXER_SNDFILE_ENABLED FALSE)
+if(SDLMIXER_SNDFILE)
+    if(SDLMIXER_VENDORED)
         message(STATUS "Using vendored libsndfile")
         message(${fatal_error} "libsndfile is not vendored.")
     else()
         find_package(SndFile ${required})
         if(SndFile_FOUND)
-            set(SDL3MIXER_SNDFILE_ENABLED TRUE)
+            set(SDLMIXER_SNDFILE_ENABLED TRUE)
             message(STATUS "Using system libsndfile")
-            if(NOT SDL3MIXER_SNDFILE_SHARED)
+            if(NOT SDLMIXER_SNDFILE_SHARED)
                 list(APPEND PC_REQUIRES sndfile)
             endif()
         else()
             message(${fatal_error} "libsndfile NOT found")
         endif()
     endif()
-    if(SDL3MIXER_SNDFILE_ENABLED)
+    if(SDLMIXER_SNDFILE_ENABLED)
         target_compile_definitions(${sdl3_mixer_target_name} PRIVATE LOAD_SNDFILE)
-        if(SDL3MIXER_SNDFILE_SHARED)
+        if(SDLMIXER_SNDFILE_SHARED)
             target_include_directories(${sdl3_mixer_target_name} PRIVATE
                 $<TARGET_PROPERTY:SndFile::sndfile,INCLUDE_DIRECTORIES>
                 $<TARGET_PROPERTY:SndFile::sndfile,INTERFACE_INCLUDE_DIRECTORIES>
@@ -396,7 +396,7 @@ if(SDL3MIXER_SNDFILE)
             target_get_dynamic_library(dynamic_sndfile SndFile::sndfile)
             message(STATUS "Dynamic libsndfile: ${dynamic_sndfile}")
             target_compile_definitions(${sdl3_mixer_target_name} PRIVATE "SNDFILE_DYNAMIC=\"${dynamic_sndfile}\"")
-            if(SDL3MIXER_VENDORED)
+            if(SDLMIXER_VENDORED)
                 add_dependencies(${sdl3_mixer_target_name} SndFile::sndfile)
             endif()
         else()
@@ -405,42 +405,42 @@ if(SDL3MIXER_SNDFILE)
     endif()
 endif()
 
-if(SDL3MIXER_OGG)
+if(SDLMIXER_OGG)
     # libogg is a requirement of libflac, libtremor and libvorbisfile, so only need this library when vendoring
-    if(SDL3MIXER_VENDORED)
+    if(SDLMIXER_VENDORED)
         message(STATUS "Using vendored libogg")
-        set(BUILD_SHARED_LIBS ${SDL3MIXER_OGG_SHARED})
+        set(BUILD_SHARED_LIBS ${SDLMIXER_OGG_SHARED})
         set(INSTALL_CMAKE_PACKAGE_MODULE FALSE)
         set(BUILD_TESTING OFF)
-        sdl_check_project_in_subfolder(external/ogg ogg SDL3MIXER_VENDORED)
+        sdl_check_project_in_subfolder(external/ogg ogg SDLMIXER_VENDORED)
         add_subdirectory(external/ogg EXCLUDE_FROM_ALL)
-        if(SDL3MIXER_OGG_install)
+        if(SDLMIXER_OGG_install)
             list(APPEND INSTALL_EXTRA_TARGETS ogg)
         endif()
     endif()
 endif()
 
-list(APPEND SDL3MIXER_BACKENDS OPUS)
-set(SDL3MIXER_OPUS_ENABLED FALSE)
-if(SDL3MIXER_OPUS)
-    if(SDL3MIXER_VENDORED)
-        set(SDL3MIXER_OPUS_ENABLED TRUE)
+list(APPEND SDLMIXER_BACKENDS OPUS)
+set(SDLMIXER_OPUS_ENABLED FALSE)
+if(SDLMIXER_OPUS)
+    if(SDLMIXER_VENDORED)
+        set(SDLMIXER_OPUS_ENABLED TRUE)
         # vendored libogg already handled
         if(NOT TARGET ogg)
             message(FATAL_ERROR "ogg target not present")
         endif()
         message(STATUS "Using vendored opus")
-        set(BUILD_SHARED_LIBS ${SDL3MIXER_OPUS_SHARED})
+        set(BUILD_SHARED_LIBS ${SDLMIXER_OPUS_SHARED})
         set(BUILD_PROGRAMS OFF)
-        sdl_check_project_in_subfolder(external/opus opus SDL3MIXER_VENDORED)
+        sdl_check_project_in_subfolder(external/opus opus SDLMIXER_VENDORED)
         add_subdirectory(external/opus EXCLUDE_FROM_ALL)
 
         set(OP_DISABLE_DOCS TRUE)
         set(OP_DISABLE_EXAMPLES TRUE)
         set(OP_DISABLE_HTTP TRUE)
         message(STATUS "Using vendored opusfile")
-        set(BUILD_SHARED_LIBS ${SDL3MIXER_OPUS_SHARED})
-        sdl_check_project_in_subfolder(external/opusfile opusfile SDL3MIXER_VENDORED)
+        set(BUILD_SHARED_LIBS ${SDLMIXER_OPUS_SHARED})
+        sdl_check_project_in_subfolder(external/opusfile opusfile SDLMIXER_VENDORED)
         add_subdirectory(external/opusfile EXCLUDE_FROM_ALL)
         if(MSVC)
             set_property(TARGET opusfile PROPERTY WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
@@ -456,27 +456,27 @@ if(SDL3MIXER_OPUS)
         if(NOT TARGET OpusFile::opusfile)
             add_library(OpusFile::opusfile ALIAS opusfile)
         endif()
-        if(SDL3MIXER_OPUS_SHARED OR NOT SDL3MIXER_BUILD_SHARED_LIBS)
+        if(SDLMIXER_OPUS_SHARED OR NOT SDLMIXER_BUILD_SHARED_LIBS)
             list(APPEND INSTALL_EXTRA_TARGETS opus opusfile)
         endif()
-        if(NOT SDL3MIXER_OPUS_SHARED)
+        if(NOT SDLMIXER_OPUS_SHARED)
             list(APPEND PC_LIBS -l$<TARGET_FILE_BASE_NAME:opusfile> -l$<TARGET_FILE_BASE_NAME:opus> -l$<TARGET_FILE_BASE_NAME:ogg>)
         endif()
     else()
         find_package(OpusFile ${required})
         if(OpusFile_FOUND AND Ogg_FOUND)
-            set(SDL3MIXER_OPUS_ENABLED TRUE)
+            set(SDLMIXER_OPUS_ENABLED TRUE)
             message(STATUS "Using system opusfile")
-            if(NOT SDL3MIXER_OPUS_SHARED)
+            if(NOT SDLMIXER_OPUS_SHARED)
                 list(APPEND PC_REQUIRES opusfile)
             endif()
         else()
             message(${fatal_error} "opusfile NOT found")
         endif()
     endif()
-    if(SDL3MIXER_OPUS_ENABLED)
+    if(SDLMIXER_OPUS_ENABLED)
         target_compile_definitions(${sdl3_mixer_target_name} PRIVATE MUSIC_OPUS)
-        if(SDL3MIXER_OPUS_SHARED)
+        if(SDLMIXER_OPUS_SHARED)
             target_include_directories(${sdl3_mixer_target_name} PRIVATE
                 $<TARGET_PROPERTY:OpusFile::opusfile,INCLUDE_DIRECTORIES>
                 $<TARGET_PROPERTY:OpusFile::opusfile,INTERFACE_INCLUDE_DIRECTORIES>
@@ -485,7 +485,7 @@ if(SDL3MIXER_OPUS)
             target_get_dynamic_library(dynamic_opusfile OpusFile::opusfile)
             message(STATUS "Dynamic opus (opusfile): ${dynamic_opusfile}")
             target_compile_definitions(${sdl3_mixer_target_name} PRIVATE "OPUS_DYNAMIC=\"${dynamic_opusfile}\"")
-            if(SDL3MIXER_VENDORED)
+            if(SDLMIXER_VENDORED)
                 add_dependencies(${sdl3_mixer_target_name} OpusFile::opusfile)
             endif()
         else()
@@ -494,27 +494,27 @@ if(SDL3MIXER_OPUS)
     endif()
 endif()
 
-list(APPEND SDL3MIXER_BACKENDS VORBIS_STB)
-set(SDL3MIXER_VORBIS_STB_ENABLED FALSE)
-if(SDL3MIXER_VORBIS_STB)
-    set(SDL3MIXER_VORBIS_STB_ENABLED TRUE)
+list(APPEND SDLMIXER_BACKENDS VORBIS_STB)
+set(SDLMIXER_VORBIS_STB_ENABLED FALSE)
+if(SDLMIXER_VORBIS_STB)
+    set(SDLMIXER_VORBIS_STB_ENABLED TRUE)
     message(STATUS "Enabled ogg music: using stb_vorbis")
     target_compile_definitions(${sdl3_mixer_target_name} PRIVATE MUSIC_OGG)
     target_compile_definitions(${sdl3_mixer_target_name} PRIVATE OGG_USE_STB)
 endif()
 
-list(APPEND SDL3MIXER_BACKENDS VORBIS_TREMOR)
-set(SDL3MIXER_VORBIS_TREMOR_ENABLED FALSE)
-if(SDL3MIXER_VORBIS_TREMOR)
-    if(SDL3MIXER_VENDORED)
-        set(SDL3MIXER_VORBIS_TREMOR_ENABLED TRUE)
+list(APPEND SDLMIXER_BACKENDS VORBIS_TREMOR)
+set(SDLMIXER_VORBIS_TREMOR_ENABLED FALSE)
+if(SDLMIXER_VORBIS_TREMOR)
+    if(SDLMIXER_VENDORED)
+        set(SDLMIXER_VORBIS_TREMOR_ENABLED TRUE)
         # vendored libogg already handled
         if(NOT TARGET ogg)
             message(FATAL_ERROR "ogg target not present")
         endif()
         message(STATUS "Using vendored tremor")
-        set(BUILD_SHARED_LIBS ${SDL3MIXER_VORBIS_TREMOR_SHARED})
-        sdl_check_project_in_subfolder(external/tremor tremor SDL3MIXER_VENDORED)
+        set(BUILD_SHARED_LIBS ${SDLMIXER_VORBIS_TREMOR_SHARED})
+        sdl_check_project_in_subfolder(external/tremor tremor SDLMIXER_VENDORED)
         add_subdirectory(external/tremor EXCLUDE_FROM_ALL)
         if(NOT TARGET tremor::tremor)
             add_library(tremor::tremor ALIAS vorbisidec)
@@ -526,27 +526,27 @@ if(SDL3MIXER_VORBIS_TREMOR)
             COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${CMAKE_CURRENT_BINARY_DIR}/ivorbisfile.h" "${CMAKE_CURRENT_BINARY_DIR}/tremor/ivorbisfile.h"
         )
         target_include_directories(${sdl3_mixer_target_name} PRIVATE "${CMAKE_CURRENT_BINARY_DIR}")
-        if(SDL3MIXER_VORBIS_TREMOR_SHARED OR NOT SDL3MIXER_BUILD_SHARED_LIBS)
+        if(SDLMIXER_VORBIS_TREMOR_SHARED OR NOT SDLMIXER_BUILD_SHARED_LIBS)
             list(APPEND INSTALL_EXTRA_TARGETS vorbisidec)
         endif()
-        if(NOT SDL3MIXER_VORBIS_TREMOR_SHARED)
+        if(NOT SDLMIXER_VORBIS_TREMOR_SHARED)
             list(APPEND PC_LIBS -l$<TARGET_FILE_BASE_NAME:vorbisidec> -l$<TARGET_FILE_BASE_NAME:ogg>)
         endif()
     else()
         message(STATUS "Using system tremor")
         find_package(tremor ${required})
         if(tremor_FOUND)
-            if(NOT SDL3MIXER_VORBIS_TREMOR_SHARED)
+            if(NOT SDLMIXER_VORBIS_TREMOR_SHARED)
                 list(APPEND PC_REQUIRES tremor)
             endif()
-            set(SDL3MIXER_VORBIS_TREMOR_ENABLED TRUE)
+            set(SDLMIXER_VORBIS_TREMOR_ENABLED TRUE)
         else()
             message(${fatal_error} "tremor NOT found")
         endif()
     endif()
-    if(SDL3MIXER_VORBIS_TREMOR_ENABLED)
+    if(SDLMIXER_VORBIS_TREMOR_ENABLED)
         target_compile_definitions(${sdl3_mixer_target_name} PRIVATE MUSIC_OGG OGG_USE_TREMOR)
-        if(SDL3MIXER_VORBIS_TREMOR_SHARED)
+        if(SDLMIXER_VORBIS_TREMOR_SHARED)
             target_include_directories(${sdl3_mixer_target_name} PRIVATE
                 $<TARGET_PROPERTY:tremor::tremor,INCLUDE_DIRECTORIES>
                 $<TARGET_PROPERTY:tremor::tremor,INTERFACE_INCLUDE_DIRECTORIES>
@@ -555,7 +555,7 @@ if(SDL3MIXER_VORBIS_TREMOR)
             target_get_dynamic_library(dynamic_tremor tremor::tremor)
             message(STATUS "Dynamic vorbis (tremor): ${dynamic_tremor}")
             target_compile_definitions(${sdl3_mixer_target_name} PRIVATE "OGG_DYNAMIC=\"${dynamic_tremor}\"")
-            if(SDL3MIXER_VENDORED)
+            if(SDLMIXER_VENDORED)
                 add_dependencies(${sdl3_mixer_target_name} tremor::tremor)
             endif()
         else()
@@ -564,43 +564,43 @@ if(SDL3MIXER_VORBIS_TREMOR)
     endif()
 endif()
 
-list(APPEND SDL3MIXER_BACKENDS VORBIS_VORBISFILE)
-set(SDL3MIXER_VORBIS_VORBISFILE_ENABLED FALSE)
-if(SDL3MIXER_VORBIS_VORBISFILE)
-    if(SDL3MIXER_VENDORED)
-        set(SDL3MIXER_VORBIS_VORBISFILE_ENABLED TRUE)
+list(APPEN

(Patch may be truncated, please check the link at the top of this post.)