diff options
Diffstat (limited to 'audio/sfizz/files')
7 files changed, 24 insertions, 72 deletions
diff --git a/audio/sfizz/files/patch-external_atomic__queue_include_atomic__queue_defs.h b/audio/sfizz/files/patch-external_atomic__queue_include_atomic__queue_defs.h deleted file mode 100644 index a60be28c6744..000000000000 --- a/audio/sfizz/files/patch-external_atomic__queue_include_atomic__queue_defs.h +++ /dev/null @@ -1,23 +0,0 @@ ---- external/atomic_queue/include/atomic_queue/defs.h.orig 2023-02-07 02:20:07 UTC -+++ external/atomic_queue/include/atomic_queue/defs.h -@@ -36,8 +36,19 @@ static inline void spin_loop_pause() noexcept { - #endif - } - } // namespace atomic_queue -+#elif defined(__ppc64__) || defined(__powerpc64__) -+namespace atomic_queue { -+constexpr int CACHE_LINE_SIZE = 128; // TODO: Review that this is the correct value. -+static inline void spin_loop_pause() noexcept { -+ asm volatile("or 31,31,31 # very low priority"); // TODO: Review and benchmark that this is the right instruction. -+} -+} // namespace atomic_queue - #else --#error "Unknown CPU architecture." -+#warning "Unknown CPU architecture. Using L1 cache line size of 64 bytes and no spinloop pause instruction." -+namespace atomic_queue { -+constexpr int CACHE_LINE_SIZE = 64; // TODO: Review that this is the correct value. -+static inline void spin_loop_pause() noexcept {} -+} // namespace atomic_queue - #endif - - //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/audio/sfizz/files/patch-plugins_editor_external_vstgui4_vstgui_lib_platform_linux_x11fileselector.cpp b/audio/sfizz/files/patch-plugins_editor_external_vstgui4_vstgui_lib_platform_linux_x11fileselector.cpp deleted file mode 100644 index ac363b6a766e..000000000000 --- a/audio/sfizz/files/patch-plugins_editor_external_vstgui4_vstgui_lib_platform_linux_x11fileselector.cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- plugins/editor/external/vstgui4/vstgui/lib/platform/linux/x11fileselector.cpp.orig 2022-07-27 03:15:46 UTC -+++ plugins/editor/external/vstgui4/vstgui/lib/platform/linux/x11fileselector.cpp -@@ -14,6 +14,8 @@ - #include <cassert> - extern "C" { extern char **environ; } - -+#define execvpe(a, b, c) execvp(a, b) -+ - //------------------------------------------------------------------------ - namespace VSTGUI { - namespace X11 { diff --git a/audio/sfizz/files/patch-plugins_editor_external_vstgui4_vstgui_lib_vstguibase.h b/audio/sfizz/files/patch-plugins_editor_external_vstgui4_vstgui_lib_vstguibase.h deleted file mode 100644 index 20c193a42f23..000000000000 --- a/audio/sfizz/files/patch-plugins_editor_external_vstgui4_vstgui_lib_vstguibase.h +++ /dev/null @@ -1,11 +0,0 @@ ---- plugins/editor/external/vstgui4/vstgui/lib/vstguibase.h.orig 2022-07-27 03:11:58 UTC -+++ plugins/editor/external/vstgui4/vstgui/lib/vstguibase.h -@@ -134,7 +134,7 @@ - using std::min; - using std::max; - --#elif defined(__linux__) -+#elif defined(__linux__) || defined(__FreeBSD__) - #include <cstdint> - #include <type_traits> - #include <algorithm> diff --git a/audio/sfizz/files/patch-plugins_vst_external_VST__SDK_VST3__SDK_pluginterfaces_base_fplatform.h b/audio/sfizz/files/patch-plugins_vst_external_VST__SDK_VST3__SDK_pluginterfaces_base_fplatform.h deleted file mode 100644 index 0c1f40ef5cd4..000000000000 --- a/audio/sfizz/files/patch-plugins_vst_external_VST__SDK_VST3__SDK_pluginterfaces_base_fplatform.h +++ /dev/null @@ -1,23 +0,0 @@ ---- plugins/vst/external/VST_SDK/VST3_SDK/pluginterfaces/base/fplatform.h.orig 2022-07-27 05:18:10 UTC -+++ plugins/vst/external/VST_SDK/VST3_SDK/pluginterfaces/base/fplatform.h -@@ -95,7 +95,7 @@ - //----------------------------------------------------------------------------- - // LINUX - //----------------------------------------------------------------------------- --#elif __gnu_linux__ || __linux__ -+#elif __gnu_linux__ || __linux__ || __FreeBSD__ - #define SMTG_OS_LINUX 1 - #define SMTG_OS_MACOS 0 - #define SMTG_OS_WINDOWS 0 -@@ -107,7 +107,11 @@ - #define SMTG_CPU_ARM __arm__ - #define SMTG_CPU_ARM_64 __aarch64__ - -+# ifdef __FreeBSD__ -+ #include <sys/endian.h> -+# else - #include <endian.h> -+# endif - #if __BYTE_ORDER == __LITTLE_ENDIAN - #define BYTEORDER kLittleEndian - #else diff --git a/audio/sfizz/files/patch-src_external_cpuid_platform_src_platform_config.hpp b/audio/sfizz/files/patch-src_external_cpuid_platform_src_platform_config.hpp index ca4ef91f2027..4fc2177075df 100644 --- a/audio/sfizz/files/patch-src_external_cpuid_platform_src_platform_config.hpp +++ b/audio/sfizz/files/patch-src_external_cpuid_platform_src_platform_config.hpp @@ -1,4 +1,4 @@ ---- src/external/cpuid/platform/src/platform/config.hpp.orig 2022-07-27 00:05:49 UTC +--- src/external/cpuid/platform/src/platform/config.hpp.orig 2024-11-05 10:07:15 UTC +++ src/external/cpuid/platform/src/platform/config.hpp @@ -11,7 +11,7 @@ // http://sourceforge.net/p/predef/wiki/Architectures/ @@ -6,6 +6,6 @@ // Detect operating systems -#if defined(__linux__) +#if defined(__linux__) || defined(__FreeBSD__) - #define PLATFORM_LINUX 1 - #if defined(__ANDROID__) - #define PLATFORM_ANDROID 1 + #define PLATFORM_LINUX 1 + #if defined(__ANDROID__) + #define PLATFORM_ANDROID 1 diff --git a/audio/sfizz/files/patch-src_sfizz_Synth.cpp b/audio/sfizz/files/patch-src_sfizz_Synth.cpp new file mode 100644 index 000000000000..187933b30f23 --- /dev/null +++ b/audio/sfizz/files/patch-src_sfizz_Synth.cpp @@ -0,0 +1,10 @@ +--- src/sfizz/Synth.cpp.orig 2024-11-05 10:32:04 UTC ++++ src/sfizz/Synth.cpp +@@ -33,6 +33,7 @@ + #include "parser/Parser.h" + #include <absl/algorithm/container.h> + #include <absl/memory/memory.h> ++#include <absl/strings/str_cat.h> + #include <absl/strings/str_replace.h> + #include <absl/types/optional.h> + #include <absl/types/span.h> diff --git a/audio/sfizz/files/patch-src_sfizz_modulations_ModMatrix.cpp b/audio/sfizz/files/patch-src_sfizz_modulations_ModMatrix.cpp new file mode 100644 index 000000000000..9cc44b66ee12 --- /dev/null +++ b/audio/sfizz/files/patch-src_sfizz_modulations_ModMatrix.cpp @@ -0,0 +1,10 @@ +--- src/sfizz/modulations/ModMatrix.cpp.orig 2024-11-08 05:26:15 UTC ++++ src/sfizz/modulations/ModMatrix.cpp +@@ -13,6 +13,7 @@ + #include "SIMDHelpers.h" + #include "utility/Debug.h" + #include <absl/container/flat_hash_map.h> ++#include <absl/strings/str_cat.h> + #include <absl/strings/string_view.h> + #include <vector> + #include <algorithm> |