mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 06:10:30 -04:00
- Update to 2.1 release - Add LICENSE_FILE for MIT license - Add CCBYv3 license for logo - Add devel/xdg-user-dirs, devel/xdg-utils and x11/xmessage to RUN_DEPENDS - Add xrandr to USE_XORG - Replace USE_OPENSSL=yes with USES+=ssl - Add gl to USE_GL - Remove GLU dependency - glu.h was included from imported glew.h but GLU components are not used - Add DEBUG option and clarify build targets - Replace TOOLS option with devel/godot-tools port, while devel/godot port used as runtime - Allow to build ALSA and PulseAudio drivers independently - Allow to build RtAudio driver with OSS or ALSA or PulseAudio - Set OSS option by default - Add desktop entry for godot-tools - Add sed patch to fix executable paths inside of ${WRKSRC}/platform/x11/os_x11.cpp file - Remove mkdir, because of COPYTREE_SHARE usage, which recreates destination directories - Remove RM command for demos/2d/hexamap/.fscache file, because the file is not available for current version - Add patch to enable OSS usage for RtAudio driver on FreeBSD - Add patch to fix issue(s) with OS_Unix::execute and OS_Unix::get_executable_path functions on FreeBSD - Add patch to fix layout of --help text - Remove pkg-plist and use dynamic package list with PORTDATA and PLIST_FILES - Use current head commit of 2.1 branch from new github repo godotengine/godot-demo-projects to install examples (this was previously part of godot repo) PR: 209742 Submitted by: lightside@gmx.com Approved by: FreeBSD@Shaneware.biz
18 lines
614 B
C++
18 lines
614 B
C++
--- drivers/rtaudio/audio_driver_rtaudio.cpp.orig 2016-08-09 07:52:15 UTC
|
|
+++ drivers/rtaudio/audio_driver_rtaudio.cpp
|
|
@@ -35,8 +35,14 @@ const char* AudioDriverRtAudio::get_name
|
|
|
|
#ifdef OSX_ENABLED
|
|
return "RtAudio-OSX";
|
|
-#elif defined(UNIX_ENABLED)
|
|
+#elif defined(UNIX_ENABLED) && (defined(ALSA_ENABLED) || defined(PULSEAUDIO_ENABLED) || defined(OSS_ENABLED))
|
|
+#if defined(OSS_ENABLED)
|
|
+ return "RtAudio-OSS";
|
|
+#elif defined(ALSA_ENABLED)
|
|
return "RtAudio-ALSA";
|
|
+#elif defined(PULSEAUDIO_ENABLED)
|
|
+ return "RtAudio-PulseAudio";
|
|
+#endif
|
|
#elif defined(WINDOWS_ENABLED)
|
|
return "RtAudio-DirectSound";
|
|
#else
|