<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/198cb4c00060f094569593057e41064b1e3d7346">https://github.com/macports/macports-ports/commit/198cb4c00060f094569593057e41064b1e3d7346</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 198cb4c gnome/gstreamer1-gst-plugins-base: add new cocoa variant, enabled by default if supported.
</span>198cb4c is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 198cb4c00060f094569593057e41064b1e3d7346
</span>Author: Mihai Moldovan <ionic@ionic.de>
AuthorDate: Mon Jul 2 04:55:15 2018 +0200
<span style='display:block; white-space:pre;color:#404040;'> gnome/gstreamer1-gst-plugins-base: add new cocoa variant, enabled by default if supported.
</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/56495
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Cocoa support is only building successfully on ARC-enabled platforms
</span><span style='display:block; white-space:pre;color:#404040;'> and, by virtue of this, only on x86_64.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Upgrading should be seamless, the variant is added by default if
</span><span style='display:block; white-space:pre;color:#404040;'> supported.
</span>---
gnome/gstreamer1-gst-plugins-base/Portfile | 23 ++++++++++++++++++++---
1 file changed, 20 insertions(+), 3 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/gstreamer1-gst-plugins-base/Portfile b/gnome/gstreamer1-gst-plugins-base/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ff1e52c..c6d4aef 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/gnome/gstreamer1-gst-plugins-base/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/gstreamer1-gst-plugins-base/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -51,6 +51,7 @@ configure.args-append \
</span> --disable-ivorbis \
--disable-x \
--disable-xvideo \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ --disable-cocoa \
</span> --disable-xshm
#gstbasetextoverlay.c:1511: error: 'for' loop initial declaration used outside C99 mode
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -63,9 +64,6 @@ platform darwin {
</span> if {${os.major} < 10 } {
depends_lib-delete port:graphene
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.major} < 13 } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append --disable-cocoa --disable-opengl
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span> }
variant x11 {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -102,6 +100,25 @@ variant cdparanoia description {Enable (currently broken) cdparanoia plugin} {
</span> configure.args-delete --disable-cdparanoia
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+variant cocoa conflicts universal description {Add support for native Cocoa output. Only supported for pure x86_64 builds.} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${build_arch} ne "x86_64"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_error "The variant cocoa is not supported on architectures other than x86_64"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ error "Cocoa output only supported on x86_64 architecture"
</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} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_error "The variant cocoa is not supported on platforms older than 10.6"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ error "Platform too old to support Cocoa output"
</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;'>+ configure.args-replace --disable-cocoa \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --enable-cocoa
</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 && ![variant_isset universal] && ${build_arch} eq "x86_64"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants +cocoa
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> #-fgcse (from -O2) causes build failures, but -O2 -fno-gcse doesn't seem to work
if {[string match "*gcc-4.2" ${configure.compiler}]} {
lappend merger_configure_cflags(i386) -O1 -fexpensive-optimizations
</pre><pre style='margin:0'>
</pre>