<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/7195a0610217175ee9b23d6ea23bef1a604ba32d">https://github.com/macports/macports-ports/commit/7195a0610217175ee9b23d6ea23bef1a604ba32d</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 7195a061021 csound: fix paths to installed library
</span>7195a061021 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 7195a0610217175ee9b23d6ea23bef1a604ba32d
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Mon Jul 31 09:42:24 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> csound: fix paths to installed library
</span>---
audio/csound/Portfile | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/audio/csound/Portfile b/audio/csound/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 7eb25edcd51..4c7d50a3d20 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/audio/csound/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/audio/csound/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,7 +5,7 @@ PortGroup cmake 1.0
</span> PortGroup github 1.0
github.setup csound csound 6.18.1
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span> categories audio
license LGPL-2.1+
maintainers nomaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -49,7 +49,6 @@ configure.args-append -DFAIL_MISSING=ON \
</span> -DBUILD_LUA_INTERFACE=OFF \
-DBUILD_TESTS=OFF \
-DCS_FRAMEWORK_DEST=${frameworks_dir} \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- -DCS_DEFAULT_PLUGINDIR=${prefix}/lib/csound/plugins64 \
</span> -DUSE_ALSA=OFF \
-DUSE_JACK=OFF \
-DUSE_PORTAUDIO=OFF \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -60,6 +59,18 @@ configure.args-append -DFAIL_MISSING=ON \
</span> # Building static lib does not hurt even without tests enabled, since dylib is still built as well.
configure.args-append -DBUILD_STATIC_LIBRARY=ON
<span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # While this is not immediately obvious upon install, dylib and binaries are built with wrong paths:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # /opt/local/lib/CsoundLib64.framework/Versions/6.0/CsoundLib64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # At the same time this is installed correctly into the framework directory, so the path points to nothing.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # CMakeLists are a mess, and it is unclear what in particular breaks this. Fix paths in destroot:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set csoundlib CsoundLib64.framework/Versions/6.0/CsoundLib64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${destroot}${prefix}/lib "install_name_tool -change ${prefix}/lib/${csoundlib} ${frameworks_dir}/${csoundlib} ./libcsnd6.6.0.dylib"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach bin [glob ${destroot}${prefix}/bin/*] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -change ${prefix}/lib/${csoundlib} ${frameworks_dir}/${csoundlib} ${bin}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> variant tests description "Build tests" {
depends_build-append port:cunit
configure.args-replace -DBUILD_TESTS=OFF \
</pre><pre style='margin:0'>
</pre>