git: b39ae635bf27 - main - audio/dpf-plugins-lv2: Fix build on 15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 22 Jun 2024 16:37:55 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=b39ae635bf272fe51b230eab19ac5207f8a414e3 commit b39ae635bf272fe51b230eab19ac5207f8a414e3 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2024-06-22 16:37:28 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2024-06-22 16:37:28 +0000 audio/dpf-plugins-lv2: Fix build on 15 --- .../patch-dpf_distrho_src_DistrhoPluginVST2.cpp | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/audio/dpf-plugins-lv2/files/patch-dpf_distrho_src_DistrhoPluginVST2.cpp b/audio/dpf-plugins-lv2/files/patch-dpf_distrho_src_DistrhoPluginVST2.cpp new file mode 100644 index 000000000000..b1860d942a4e --- /dev/null +++ b/audio/dpf-plugins-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