<pre style='margin:0'>
Zhenfu Shi (i0ntempest) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/20d1467595b202addcdd283f0677a00d7f820a21">https://github.com/macports/macports-ports/commit/20d1467595b202addcdd283f0677a00d7f820a21</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 20d1467595b mpv: Set MACOS_SDK_VERSION and use latest SDK (#14119)
</span>20d1467595b is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 20d1467595b202addcdd283f0677a00d7f820a21
</span>Author: Ryan Schmidt <git@ryandesign.com>
AuthorDate: Wed Feb 23 22:06:10 2022 -0600
<span style='display:block; white-space:pre;color:#404040;'> mpv: Set MACOS_SDK_VERSION and use latest SDK (#14119)
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes build on Mac OS X 10.7 and on Xcode versions where the SDK version
</span><span style='display:block; white-space:pre;color:#404040;'> does not match the OS version.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/61733
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/61647
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/62889
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/63694
</span>---
multimedia/mpv/Portfile | 18 +++++++++++++++---
1 file changed, 15 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 72ca8731206..367693ed494 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;'>@@ -262,14 +262,26 @@ platform darwin {
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Fix for https://trac.macports.org/ticket/61319
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.env-append MACOS_SDK=${configure.sdkroot}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> post-extract {
xinstall -m 0644 -W "${filespath}" config-maintainer "${worksrcpath}/TOOLS/"
}
pre-configure {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${use_xcode}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.sdkroot ${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${configure.sdkroot} ne ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set sdkv [exec /usr/libexec/PlistBuddy -c Print:ProductVersion ${configure.sdkroot}/System/Library/CoreServices/SystemVersion.plist]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set sdkv ${configure.sdk_version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[llength [split ${sdkv} .]] < 2} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set sdkv ${sdkv}.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.env-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MACOS_SDK=${configure.sdkroot} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MACOS_SDK_VERSION=${sdkv}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> if {[variant_isset network]} {
reinplace -W "${worksrcpath}/TOOLS" "s/@@NETWORK@@//" config-maintainer
} else {
</pre><pre style='margin:0'>
</pre>