<pre style='margin:0'>
Mihai Moldovan (Ionic) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/3e31e0099fa0d29bfe27c277eed85ca43a298845">https://github.com/macports/macports-ports/commit/3e31e0099fa0d29bfe27c277eed85ca43a298845</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 3e31e0099fa0d29bfe27c277eed85ca43a298845
</span>Author: Mihai Moldovan <ionic@ionic.de>
AuthorDate: Fri Sep 15 11:20:57 2017 +0200
<span style='display:block; white-space:pre;color:#404040;'> multimedia/mpv: also switch to pure X11 output when the build arch is not x86_64.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes: https://trac.macports.org/ticket/53566
</span>---
multimedia/mpv/Portfile | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/mpv/Portfile b/multimedia/mpv/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 75b9867..a0ae8f4 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/multimedia/mpv/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/mpv/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -149,7 +149,9 @@ platform macosx {
</span>
configure.args-replace --disable-apple-remote \
--enable-apple-remote
<span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</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;'>+ if {${os.major} <= 10 || ${configure.build_arch} ne "x86_64"} {
</span> # Disable Cocoa output.
# Users on old systems will need to embrace X11.
configure.args-replace --enable-cocoa \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -233,7 +235,7 @@ platform darwin {
</span> patch-video_out_opengl_video.c-hide-pbo-texture-upload.diff
notes-append {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- On systems older than Lion (10.7), Cocoa output support is not available.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ On systems older than Lion (10.7) or on architectures other than x86_64, Cocoa output support is not available.
</span>
The X11 backend should have been enabled automatically.
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -262,7 +264,7 @@ platform darwin {
</span> reinplace -W "${worksrcpath}/TOOLS" "/@@HWDEC_CUDA@@/d" config-maintainer
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.major} < 11} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} < 11 || ${configure.build_arch} ne "x86_64"} {
</span> reinplace -W "${worksrcpath}/TOOLS" "s/@@BACKEND@@/x11/" config-maintainer
} else {
reinplace -W "${worksrcpath}/TOOLS" "s/@@BACKEND@@/cocoa/" config-maintainer
</pre><pre style='margin:0'>
</pre>