[Scummvm-git-logs] scummvm master -> aeca824339510a289881474621c731a2a5adeb85

lephilousophe noreply at scummvm.org
Mon Jan 2 08:47:08 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
aeca824339 CONFIGURE: Enable Retrowave if it is available and fix it


Commit: aeca824339510a289881474621c731a2a5adeb85
    https://github.com/scummvm/scummvm/commit/aeca824339510a289881474621c731a2a5adeb85
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2023-01-02T09:47:04+01:00

Commit Message:
CONFIGURE: Enable Retrowave if it is available and fix it

Changed paths:
    configure
    ports.mk


diff --git a/configure b/configure
index d5bd876f400..492ee88aded 100755
--- a/configure
+++ b/configure
@@ -143,7 +143,7 @@ _tremolo=no
 _flac=auto
 _mad=auto
 _opl2lpt=no
-_retrowave=no
+_retrowave=auto
 _alsa=auto
 _seq_midi=auto
 _sndio=auto
@@ -4653,18 +4653,18 @@ echo "$_opl2lpt"
 # Check for retrowave for RetroWave OPL3
 #
 echocheck "RetroWave OPL3"
-if test "$_retrowave" = yes ; then
+if test "$_retrowave" = auto ; then
 	_retrowave=no
 	cat > $TMPC << EOF
 #include <RetroWaveLib/RetroWave.h>
 RetroWaveContext context;
 int main(void) { retrowave_init(&context); return 0; }
 EOF
-	cc_check $RETROWAVE_CFLAGS $RETROWAVE_LIBS -lretrowave && \
+	cc_check $RETROWAVE_CFLAGS $RETROWAVE_LIBS -lRetroWave && \
 	_retrowave=yes
 fi
 if test "$_retrowave" = yes; then
-	append_var LIBS "$RETROWAVE_LIBS -lretrowave"
+	append_var LIBS "$RETROWAVE_LIBS -lRetroWave"
 	append_var INCLUDES "$RETROWAVE_CFLAGS"
 fi
 define_in_config_if_yes "$_retrowave" 'USE_RETROWAVE'
diff --git a/ports.mk b/ports.mk
index a518a9ae4e8..03cfc299a6b 100644
--- a/ports.mk
+++ b/ports.mk
@@ -477,6 +477,10 @@ ifdef USE_DISCORD
 OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libdiscord-rpc.a
 endif
 
+ifdef USE_RETROWAVE
+OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libRetroWave.a
+endif
+
 ifdef USE_SPARKLE
 ifdef MACOSX
 ifneq ($(SPARKLEPATH),)




More information about the Scummvm-git-logs mailing list