git: 20fa112f6789 - main - audio/dragonfly-reverb-lv2: Fix build on 15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Jun 2024 07:49:19 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=20fa112f678951733e4b52b94b1744749a2c5dcf commit 20fa112f678951733e4b52b94b1744749a2c5dcf Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2024-06-24 06:26:31 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2024-06-24 07:49:06 +0000 audio/dragonfly-reverb-lv2: Fix build on 15 Reported by: fallout --- .../patch-dpf_distrho_src_DistrhoPluginVST2.cpp | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/audio/dragonfly-reverb-lv2/files/patch-dpf_distrho_src_DistrhoPluginVST2.cpp b/audio/dragonfly-reverb-lv2/files/patch-dpf_distrho_src_DistrhoPluginVST2.cpp new file mode 100644 index 000000000000..b1860d942a4e --- /dev/null +++ b/audio/dragonfly-reverb-lv2/files/patch-dpf_distrho_src_DistrhoPluginVST2.cpp @@ -0,0 +1,34 @@ +- patch from https://github.com/DISTRHO/DPF/commit/56c106c0fd886a5d29e018807f40adb00f57fe4e +- fixing build on FreeBSD 15 due to VST plugin issues + +--- dpf/distrho/src/DistrhoPluginVST2.cpp.orig 2023-04-15 12:38:30 UTC ++++ dpf/distrho/src/DistrhoPluginVST2.cpp +@@ -1603,11 +1603,7 @@ DISTRHO_PLUGIN_EXPORT + END_NAMESPACE_DISTRHO + + DISTRHO_PLUGIN_EXPORT +-#if defined(DISTRHO_OS_MAC) || defined(DISTRHO_OS_WASM) || defined(DISTRHO_OS_WINDOWS) +-const vst_effect* VSTPluginMain(vst_host_callback audioMaster); +-#else +-const vst_effect* VSTPluginMain(vst_host_callback audioMaster) asm ("main"); +-#endif ++const vst_effect* VSTPluginMain(vst_host_callback); + + DISTRHO_PLUGIN_EXPORT + const vst_effect* VSTPluginMain(const vst_host_callback audioMaster) +@@ -1731,4 +1727,14 @@ const vst_effect* VSTPluginMain(const vst_host_callbac + return effect; + } + +-// ----------------------------------------------------------------------- ++ ++#if !(defined(DISTRHO_OS_MAC) || defined(DISTRHO_OS_WASM) || defined(DISTRHO_OS_WINDOWS)) ++DISTRHO_PLUGIN_EXPORT ++const vst_effect* VSTPluginMainCompat(vst_host_callback) asm ("main"); ++ ++DISTRHO_PLUGIN_EXPORT ++const vst_effect* VSTPluginMainCompat(const vst_host_callback audioMaster) ++{ ++ return VSTPluginMain(audioMaster); ++} ++#endif