SDL_mixer: cmake: switched vorbis option to use libvorbis instead of tremor.

From 996712ae50e50ec41f7e8e3e4d02ba0d9a864e95 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Mon, 9 May 2022 22:33:10 +0300
Subject: [PATCH] cmake: switched vorbis option to use libvorbis instead of
 tremor.

TODO: make an option to enable/disable tremor
---
 CMakeLists.txt | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 06dd28bf..af88a92d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,7 +18,7 @@ set(FULL_VERSION "${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}")
 
 option(SUPPORT_WAV "Support loading WAVE music" ON)
 option(SUPPORT_FLAC "Support loading FLAC music with libFLAC" OFF)
-option(SUPPORT_OGG "Support loading OGG Vorbis music via Tremor" OFF)
+option(SUPPORT_OGG "Support loading OGG Vorbis music via libvorbis" OFF)
 option(SUPPORT_MP3_MPG123 "Support loading MP3 music via MPG123" OFF)
 option(SUPPORT_MOD_MODPLUG "Support loading MOD music via modplug" OFF)
 option(SUPPORT_MID_TIMIDITY "Support loading MIDI music via TiMidity" ON)
@@ -137,10 +137,10 @@ if (SUPPORT_FLAC)
 endif()
 
 if (SUPPORT_OGG)
-    target_compile_definitions(SDL2_mixer PRIVATE -DMUSIC_OGG -DOGG_USE_TREMOR -DOGG_HEADER=<ivorbisfile.h>)
-    add_subdirectory(external/tremor)
-    target_include_directories(SDL2_mixer PRIVATE external/tremor)
-    target_link_libraries(SDL2_mixer PRIVATE vorbisidec ogg)
+    target_compile_definitions(SDL2_mixer PRIVATE -DMUSIC_OGG)
+    add_subdirectory(external/vorbis)
+    target_include_directories(SDL2_mixer PRIVATE external/vorbis/include)
+    target_link_libraries(SDL2_mixer PRIVATE vorbisfile vorbis ogg)
 endif()
 
 if (SUPPORT_MP3_MPG123)