<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[148747] trunk/dports/multimedia/mpv</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/148747">148747</a></dd>
<dt>Author</dt> <dd>ionic@macports.org</dd>
<dt>Date</dt> <dd>2016-05-16 16:26:54 -0700 (Mon, 16 May 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>mpv: update to 0.17.0. Fixes: #50660.

  - No changes in dependencies.
  - VDA has been removed, only VTB is available anymore.
    No hardware decoding support on 10.6 or 10.7 any longer!
  - Force at least one python variant to be enabled.
  - Misc. changes in the destroot section.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportsmultimediampvPortfile">trunk/dports/multimedia/mpv/Portfile</a></li>
<li><a href="#trunkdportsmultimediampvfilespatchmiscaddstrnlendiff">trunk/dports/multimedia/mpv/files/patch-misc-add-strnlen.diff</a></li>
<li><a href="#trunkdportsmultimediampvfilespatchosdep_macosx_compatmaddsubscriptingimplementationdiff">trunk/dports/multimedia/mpv/files/patch-osdep_macosx_compat.m-add-subscripting-implementation.diff</a></li>
<li><a href="#trunkdportsmultimediampvfilespatchvideo_out_cocoa_commonmdefineconstantsdiff">trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_common.m-define-constants.diff</a></li>
<li><a href="#trunkdportsmultimediampvfilespatchvideo_out_cocoa_commonmportlightsensordiff">trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_common.m-port-lightsensor.diff</a></li>
<li><a href="#trunkdportsmultimediampvfilespatchwaftools_checks_custompydisablelibarclitediff">trunk/dports/multimedia/mpv/files/patch-waftools_checks_custom.py-disable-libarclite.diff</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkdportsmultimediampvfilesconfigmaintainer">trunk/dports/multimedia/mpv/files/config-maintainer</a></li>
<li><a href="#trunkdportsmultimediampvfilespatchosdep_macosx_compathfixYESNOmacrowarningsdiff">trunk/dports/multimedia/mpv/files/patch-osdep_macosx_compat.h-fix-YES-NO-macro-warnings.diff</a></li>
<li><a href="#trunkdportsmultimediampvfilespatchvideo_out_opengl_commonchideGL320sectiondiff">trunk/dports/multimedia/mpv/files/patch-video_out_opengl_common.c-hide-GL320-section.diff</a></li>
<li><a href="#trunkdportsmultimediampvfilespatchvideo_out_opengl_commonhguardGL3stuffdiff">trunk/dports/multimedia/mpv/files/patch-video_out_opengl_common.h-guard-GL3-stuff.diff</a></li>
<li><a href="#trunkdportsmultimediampvfilespatchvideo_out_opengl_context_cocoachardcodeOpenGL2diff">trunk/dports/multimedia/mpv/files/patch-video_out_opengl_context_cocoa.c-hardcode-OpenGL-2.diff</a></li>
<li><a href="#trunkdportsmultimediampvfilespatchvideo_out_vo_openglcguardGL3andbackportoldbehaviordiff">trunk/dports/multimedia/mpv/files/patch-video_out_vo_opengl.c-guard-GL3-and-backport-old-behavior.diff</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkdportsmultimediampvfilesconfigmaintainervda">trunk/dports/multimedia/mpv/files/config-maintainer-vda</a></li>
<li><a href="#trunkdportsmultimediampvfilesconfigmaintainervtb">trunk/dports/multimedia/mpv/files/config-maintainer-vtb</a></li>
<li><a href="#trunkdportsmultimediampvfilespatchvideo_decode_vdacdisableHAVE_VDA_DEFAULT_INIT2diff">trunk/dports/multimedia/mpv/files/patch-video_decode_vda.c-disable-HAVE_VDA_DEFAULT_INIT2.diff</a></li>
<li><a href="#trunkdportsmultimediampvfilespatchvideo_out_opengl_cocoachardcodeOpenGL2diff">trunk/dports/multimedia/mpv/files/patch-video_out_opengl_cocoa.c-hardcode-OpenGL-2.diff</a></li>
<li><a href="#trunkdportsmultimediampvfilespatchvideo_out_opengl_hwdec_vdacdisableNV12diff">trunk/dports/multimedia/mpv/files/patch-video_out_opengl_hwdec_vda.c-disable-NV12.diff</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsmultimediampvPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/multimedia/mpv/Portfile (148746 => 148747)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/mpv/Portfile        2016-05-16 21:47:43 UTC (rev 148746)
+++ trunk/dports/multimedia/mpv/Portfile        2016-05-16 23:26:54 UTC (rev 148747)
</span><span class="lines">@@ -6,8 +6,8 @@
</span><span class="cx"> PortGroup               waf 1.0
</span><span class="cx"> 
</span><span class="cx"> # Please revbump mpv whenever ffmpeg{,-devel} is updated!
</span><del>-github.setup            mpv-player mpv 0.11.0 v
-revision                3
</del><ins>+github.setup            mpv-player mpv 0.17.0 v
+revision                0
</ins><span class="cx"> categories              multimedia
</span><span class="cx"> license                 GPL-2+
</span><span class="cx"> maintainers             ionic
</span><span class="lines">@@ -31,8 +31,8 @@
</span><span class="cx"> extract.only-delete     ${waf_distfile}
</span><span class="cx"> 
</span><span class="cx"> checksums               ${mpv_distfile} \
</span><del>-                        rmd160  47d625b899b7bbe3867845e9710fef14d41d5249 \
-                        sha256  7d0598a0f5f5825143e2678f058d6305683c82ff36702235703e8d54048132fe \
</del><ins>+                        rmd160  67eba1820d4dc287bbdcba344aa5278417922c12 \
+                        sha256  9c3a6f35153e270066299d70cb0049a9868b9e2b6631dcaeb80d1ce255152042 \
</ins><span class="cx">                         ${waf_distfile} \
</span><span class="cx">                         rmd160  bb1dcd10a0c336a5497bb1247a301c27f997078c \
</span><span class="cx">                         sha256  01bf2beab2106d1558800c8709bc2c8e496d3da4a2ca343fe091f22fca60c98b
</span><span class="lines">@@ -61,10 +61,11 @@
</span><span class="cx">                         --enable-libass \
</span><span class="cx">                         --enable-coreaudio \
</span><span class="cx">                         --enable-cocoa \
</span><del>-                        --disable-vda-hwaccel \
</del><ins>+                        --disable-html-build \
</ins><span class="cx">                         --disable-videotoolbox-hwaccel \
</span><del>-                        --disable-vda-gl \
-                        --disable-videotoolbox-gl
</del><ins>+                        --disable-videotoolbox-gl \
+                        --disable-opensles \
+                        --disable-egl-drm
</ins><span class="cx"> 
</span><span class="cx"> # mpv autodetects many support libs. To prevent undeclared
</span><span class="cx"> # dependencies, explicitly disable everything optional first.
</span><span class="lines">@@ -120,7 +121,7 @@
</span><span class="cx">         # it is.
</span><span class="cx">         # Could &quot;emulate&quot; the same behavior by using MacPort's clang
</span><span class="cx">         # and appending -L/usr/lib/arc/ to CFLAGS/CXXFLAGS on 10.7,
</span><del>-        # but I don't particularily like that idea (yet.)
</del><ins>+        # but I don't particularly like that idea (yet.)
</ins><span class="cx">         # Keep using the &quot;system compiler&quot; for now. Also means one less
</span><span class="cx">         # dependency on recent systems, so yay.
</span><span class="cx">         PortGroup                   xcodeversion 1.0
</span><span class="lines">@@ -129,8 +130,14 @@
</span><span class="cx">         # Force clang compiler as installed by Xcode's CLT's... hopefully.
</span><span class="cx">         compiler.blacklist-append   *gcc* cc macports-*
</span><span class="cx">     } else {
</span><del>-        # clang is required to build mpv. The newer, the merrier.
</del><ins>+        # clang is required to build mpv.
</ins><span class="cx">         # Part of getting mpv to work on SL -- c.f. #44662
</span><ins>+        # We'll keep this at clang 3.4, because this is the last version
+        # not requiring a C++11 ABI. Older systems will need this
+        # port to bootstrap a newer clang version in a somewhat
+        # complicated process. Hence, let's assume clang 3.4 will be
+        # available for quite some time and only pull that in. It
+        # should be new enough for compiling mpv (for now.)
</ins><span class="cx">         compiler.blacklist-append   *gcc* cc
</span><span class="cx"> 
</span><span class="cx">         compiler.fallback-delete    macports-clang-3.4
</span><span class="lines">@@ -145,9 +152,6 @@
</span><span class="cx">                             --enable-apple-remote
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-set has_vda 0
-set has_vtb 0
-
</del><span class="cx"> platform darwin {
</span><span class="cx">     notes-append [subst {
</span><span class="cx">                     The maintainer ships his personal config file in
</span><span class="lines">@@ -159,44 +163,20 @@
</span><span class="cx">                     and adjust it to your needs.
</span><span class="cx">     }]
</span><span class="cx"> 
</span><del>-    # Note: VDA support has already been removed on master. The next update will probably not include it anymore.
-
-    # VDA (video hardware acceleration, mostly H264) is only supported on 10.6.3+ up to (excluding) 10.11.
-    #if {(${os.major} &gt; 10 || (${os.major} == 10 &amp;&amp; ${os.minor} &gt;= 3)) &amp;&amp; (${os.major} &lt; 15)}
-    # Due to a bug in ffmpeg(?), we have to enable VDA on 10.11 as well, even though it shouldn't be supported.
-    # More information: https://github.com/mpv-player/mpv/issues/2299
-    if {${os.major} &gt; 10 || (${os.major} == 10 &amp;&amp; ${os.minor} &gt;= 3)} {
-        set has_vda 1
-        configure.args-delete   --disable-vda-hwaccel \
-                                --disable-vda-gl
-        configure.args-append   --enable-vda-hwaccel \
-                                --enable-vda-gl
-    }
-
</del><span class="cx">     # VideotoolBox, a new hardware acceleration framework, is supported on 10.8+ and &quot;here to stay&quot;.
</span><span class="cx">     # It provides support for H264, H263, MPEG1, MPEG2 and MPEG4.
</span><span class="cx">     if {${os.major} &gt; 11} {
</span><del>-        set has_vtb 1
</del><span class="cx">         configure.args-delete   --disable-videotoolbox-hwaccel \
</span><span class="cx">                                 --disable-videotoolbox-gl
</span><span class="cx">         configure.args-append   --enable-videotoolbox-hwaccel \
</span><span class="cx">                                 --enable-videotoolbox-gl
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    if {(${has_vtb}) || (${has_vda})} {
</del><ins>+    if {${os.major} &gt; 11} {
</ins><span class="cx">         notes-append {
</span><span class="cx">                         This config file already defines the necessary video output settings to make \
</span><span class="cx">                         use of the hardware acceleration features provided by your operating system.
</span><span class="cx">         }
</span><del>-
-        if {(${has_vtb}) &amp;&amp; (${has_vda})} {
-            notes-append [subst {
-                            While the default configuration file makes use of the newer and preferred \
-                            VideoToolBox framework, a separate config file set up for the old VDA \
-                            framework has been installed as
-                            * ${prefix}/share/examples/${name}/config-maintainer-vda.
-            }]
-        }
</del><span class="cx">     } else {
</span><span class="cx">         notes-append {
</span><span class="cx">                         Sadly, your system is incapable of utilizing mpv's hardware decoding features.
</span><span class="lines">@@ -226,11 +206,13 @@
</span><span class="cx">                             patch-video_out_cocoa_window.m-fullscreen-fixes.diff \
</span><span class="cx">                             patch-video_out_cocoa_common.m-define-constants.diff \
</span><span class="cx">                             patch-video_out_cocoa_common.m-port-lightsensor.diff \
</span><del>-                            patch-video_out_opengl_cocoa.c-hardcode-OpenGL-2.diff \
</del><ins>+                            patch-video_out_opengl_context_cocoa.c-hardcode-OpenGL-2.diff \
+                            patch-osdep_macosx_compat.h-fix-YES-NO-macro-warnings.diff \
</ins><span class="cx">                             patch-osdep_macosx_compat.m-add-subscripting-implementation.diff \
</span><span class="cx">                             patch-audio_out_ao_coreaudio_utils.c-add-missing-header-for-getpid.diff \
</span><del>-                            patch-video_decode_vda.c-disable-HAVE_VDA_DEFAULT_INIT2.diff \
-                            patch-video_out_opengl_hwdec_vda.c-disable-NV12.diff
</del><ins>+                            patch-video_out_opengl_common.h-guard-GL3-stuff.diff \
+                            patch-video_out_vo_opengl.c-guard-GL3-and-backport-old-behavior.diff \
+                            patch-video_out_opengl_common.c-hide-GL320-section.diff
</ins><span class="cx"> 
</span><span class="cx">                             # Let's hope this is actually unneeded...
</span><span class="cx">                             #patch-video_out_cocoa_common.m-use-deprecated-ColorSync-functions.diff
</span><span class="lines">@@ -246,16 +228,14 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     post-extract {
</span><del>-        xinstall -m 0644 -W &quot;${filespath}&quot; config-maintainer-vda config-maintainer-vtb &quot;${worksrcpath}/TOOLS/&quot;
</del><ins>+        xinstall -m 0644 -W &quot;${filespath}&quot; config-maintainer &quot;${worksrcpath}/TOOLS/&quot;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     pre-configure {
</span><span class="cx">         if {[variant_isset network]} {
</span><del>-            reinplace -W &quot;${worksrcpath}/TOOLS&quot; &quot;s|@@NETWORK@@||&quot; config-maintainer-vda
-            reinplace -W &quot;${worksrcpath}/TOOLS&quot; &quot;s|@@NETWORK@@||&quot; config-maintainer-vtb
</del><ins>+            reinplace -W &quot;${worksrcpath}/TOOLS&quot; &quot;s|@@NETWORK@@||&quot; config-maintainer
</ins><span class="cx">         } else {
</span><del>-            reinplace -W &quot;${worksrcpath}/TOOLS&quot; &quot;|@@NETWORK@@|d&quot; config-maintainer-vda
-            reinplace -W &quot;${worksrcpath}/TOOLS&quot; &quot;|@@NETWORK@@|d&quot; config-maintainer-vtb
</del><ins>+            reinplace -W &quot;${worksrcpath}/TOOLS&quot; &quot;|@@NETWORK@@|d&quot; config-maintainer
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="lines">@@ -264,6 +244,7 @@
</span><span class="cx"> # Shameless copy from ipe-tools.
</span><span class="cx"> set python.versions         {27 35}
</span><span class="cx"> set python.default_version  27
</span><ins>+set python.version          &quot;&quot;
</ins><span class="cx"> 
</span><span class="cx"> # Create python variants.
</span><span class="cx"> foreach ver ${python.versions} {
</span><span class="lines">@@ -301,6 +282,11 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+if {[string length ${python.version}] == 0} {
+    ui_error &quot;No python variant selected. You must select at least one. The highest value will be used.&quot;
+    error &quot;Select a python variant.&quot;
+}
+
</ins><span class="cx"> post-patch {
</span><span class="cx">     set python_ver_dot [join [split ${python.version} {}] &quot;.&quot;]
</span><span class="cx">     reinplace -W &quot;${worksrcpath}&quot; &quot;s|'rst2man'|'rst2man-${python_ver_dot}'|&quot; wscript
</span><span class="lines">@@ -312,7 +298,7 @@
</span><span class="cx"> 
</span><span class="cx"> post-destroot {
</span><span class="cx">     xinstall -d -m 0755 ${destroot}${prefix}/etc/${name}
</span><del>-    foreach etcfile {encoding-profiles.conf example.conf input.conf} {
</del><ins>+    foreach etcfile {encoding-profiles.conf mpv.conf input.conf} {
</ins><span class="cx">         xinstall -m 0644 ${worksrcpath}/etc/${etcfile} \
</span><span class="cx">             ${destroot}${prefix}/etc/${name}/${etcfile}
</span><span class="cx">     }
</span><span class="lines">@@ -323,18 +309,8 @@
</span><span class="cx">          ${destroot}${prefix}/share/examples/${name}
</span><span class="cx"> 
</span><span class="cx">     if {${os.platform} eq &quot;darwin&quot;} {
</span><del>-        if {(${has_vtb})} {
-            xinstall -m 0644 ${worksrcpath}/TOOLS/config-maintainer-vtb \
-                             ${destroot}${prefix}/share/examples/${name}/config-maintainer
-
-            if {(${has_vda})} {
-                xinstall -m 0644 ${worksrcpath}/TOOLS/config-maintainer-vda \
-                                 ${destroot}${prefix}/share/examples/${name}/
-            }
-        } else {
-            xinstall -m 0644 ${worksrcpath}/TOOLS/config-maintainer-vda \
-                             ${destroot}${prefix}/share/examples/${name}/config-maintainer
-        }
</del><ins>+        xinstall -m 0644 ${worksrcpath}/TOOLS/config-maintainer \
+                         ${destroot}${prefix}/share/examples/${name}/
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -457,6 +433,7 @@
</span><span class="cx">         configure.args-replace  --disable-gl-x11 \
</span><span class="cx">                                 --enable-gl-x11
</span><span class="cx">         # FIXME: add EGL? Leave it disabled? Test!
</span><ins>+        # As far as testing went, EGL is not available on OS X yet.
</ins><span class="cx">         #configure.args-replace  --disable-egl-x11 \
</span><span class="cx">         #                        --enable-egl-x11
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkdportsmultimediampvfilesconfigmaintainerfromrev148746trunkdportsmultimediampvfilesconfigmaintainervtb"></a>
<div class="copfile"><h4>Copied: trunk/dports/multimedia/mpv/files/config-maintainer (from rev 148746, trunk/dports/multimedia/mpv/files/config-maintainer-vtb) (0 => 148747)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/mpv/files/config-maintainer                                (rev 0)
+++ trunk/dports/multimedia/mpv/files/config-maintainer        2016-05-16 23:26:54 UTC (rev 148747)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+# Write your default config options here!
+[default]
+
+vo=opengl-hq:backend=cocoa
+ao=coreaudio
+
+sub-scale=3
+
+af=scaletempo
+
+softvol=yes
+softvol-max=800
+
+framedrop=vo
+
+hwdec=videotoolbox
+
+#alang=en,eng,de,ger
+
+cache=50700
+
+@@NETWORK@@ytdl
+@@NETWORK@@ytdl-format=best
</ins></span></pre></div>
<a id="trunkdportsmultimediampvfilesconfigmaintainervda"></a>
<div class="delfile"><h4>Deleted: trunk/dports/multimedia/mpv/files/config-maintainer-vda (148746 => 148747)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/mpv/files/config-maintainer-vda        2016-05-16 21:47:43 UTC (rev 148746)
+++ trunk/dports/multimedia/mpv/files/config-maintainer-vda        2016-05-16 23:26:54 UTC (rev 148747)
</span><span class="lines">@@ -1,23 +0,0 @@
</span><del>-# Write your default config options here!
-[default]
-
-vo=opengl-hq:backend=cocoa
-ao=coreaudio
-
-sub-scale=3
-
-af=scaletempo
-
-softvol=yes
-softvol-max=800
-
-framedrop=vo
-
-hwdec=vda
-
-#alang=en,eng,de,ger
-
-cache=50700
-
-@@NETWORK@@ytdl
-@@NETWORK@@ytdl-format=best
</del></span></pre></div>
<a id="trunkdportsmultimediampvfilesconfigmaintainervtb"></a>
<div class="delfile"><h4>Deleted: trunk/dports/multimedia/mpv/files/config-maintainer-vtb (148746 => 148747)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/mpv/files/config-maintainer-vtb        2016-05-16 21:47:43 UTC (rev 148746)
+++ trunk/dports/multimedia/mpv/files/config-maintainer-vtb        2016-05-16 23:26:54 UTC (rev 148747)
</span><span class="lines">@@ -1,23 +0,0 @@
</span><del>-# Write your default config options here!
-[default]
-
-vo=opengl-hq:backend=cocoa
-ao=coreaudio
-
-sub-scale=3
-
-af=scaletempo
-
-softvol=yes
-softvol-max=800
-
-framedrop=vo
-
-hwdec=videotoolbox
-
-#alang=en,eng,de,ger
-
-cache=50700
-
-@@NETWORK@@ytdl
-@@NETWORK@@ytdl-format=best
</del></span></pre></div>
<a id="trunkdportsmultimediampvfilespatchmiscaddstrnlendiff"></a>
<div class="modfile"><h4>Modified: trunk/dports/multimedia/mpv/files/patch-misc-add-strnlen.diff (148746 => 148747)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/mpv/files/patch-misc-add-strnlen.diff        2016-05-16 21:47:43 UTC (rev 148746)
+++ trunk/dports/multimedia/mpv/files/patch-misc-add-strnlen.diff        2016-05-16 23:26:54 UTC (rev 148747)
</span><span class="lines">@@ -3,7 +3,7 @@
</span><span class="cx"> @@ -25,6 +25,7 @@
</span><span class="cx">  
</span><span class="cx">  #include &quot;osdep/compiler.h&quot;
</span><del>- #include &quot;talloc.h&quot;
</del><ins>+ #include &quot;mpv_talloc.h&quot;
</ins><span class="cx"> +#include &quot;common/compat.h&quot;
</span><span class="cx">  
</span><span class="cx">  // double should be able to represent this exactly
</span></span></pre></div>
<a id="trunkdportsmultimediampvfilespatchosdep_macosx_compathfixYESNOmacrowarningsdiff"></a>
<div class="addfile"><h4>Added: trunk/dports/multimedia/mpv/files/patch-osdep_macosx_compat.h-fix-YES-NO-macro-warnings.diff (0 => 148747)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/mpv/files/patch-osdep_macosx_compat.h-fix-YES-NO-macro-warnings.diff                                (rev 0)
+++ trunk/dports/multimedia/mpv/files/patch-osdep_macosx_compat.h-fix-YES-NO-macro-warnings.diff        2016-05-16 23:26:54 UTC (rev 148747)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+--- osdep/macosx_compat.h.orig
++++ osdep/macosx_compat.h
+@@ -41,6 +41,15 @@
+ - (void)setObject: (id)object forKeyedSubscript:(id)key;
+ @end

++/* Don't blindly redefine YES and NO, undefine them first. */
++#ifdef YES
++    #undef YES
++#endif
++
++#ifdef NO
++    #undef NO
++#endif
++
+ #if __has_feature(objc_bool)
+     #define YES  __objc_yes
+     #define NO   __objc_no
</ins></span></pre></div>
<a id="trunkdportsmultimediampvfilespatchosdep_macosx_compatmaddsubscriptingimplementationdiff"></a>
<div class="modfile"><h4>Modified: trunk/dports/multimedia/mpv/files/patch-osdep_macosx_compat.m-add-subscripting-implementation.diff (148746 => 148747)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/mpv/files/patch-osdep_macosx_compat.m-add-subscripting-implementation.diff        2016-05-16 21:47:43 UTC (rev 148746)
+++ trunk/dports/multimedia/mpv/files/patch-osdep_macosx_compat.m-add-subscripting-implementation.diff        2016-05-16 23:26:54 UTC (rev 148747)
</span><span class="lines">@@ -57,7 +57,7 @@
</span><span class="cx"> +#endif
</span><span class="cx"> --- wscript_build.py.orig
</span><span class="cx"> +++ wscript_build.py
</span><del>-@@ -364,6 +364,7 @@ def build(ctx):
</del><ins>+@@ -394,6 +394,7 @@ def build(ctx):
</ins><span class="cx">          ( &quot;osdep/ar/HIDRemote.m&quot;,                &quot;apple-remote&quot; ),
</span><span class="cx">          ( &quot;osdep/macosx_application.m&quot;,          &quot;cocoa&quot; ),
</span><span class="cx">          ( &quot;osdep/macosx_events.m&quot;,               &quot;cocoa&quot; ),
</span></span></pre></div>
<a id="trunkdportsmultimediampvfilespatchvideo_decode_vdacdisableHAVE_VDA_DEFAULT_INIT2diff"></a>
<div class="delfile"><h4>Deleted: trunk/dports/multimedia/mpv/files/patch-video_decode_vda.c-disable-HAVE_VDA_DEFAULT_INIT2.diff (148746 => 148747)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/mpv/files/patch-video_decode_vda.c-disable-HAVE_VDA_DEFAULT_INIT2.diff        2016-05-16 21:47:43 UTC (rev 148746)
+++ trunk/dports/multimedia/mpv/files/patch-video_decode_vda.c-disable-HAVE_VDA_DEFAULT_INIT2.diff        2016-05-16 23:26:54 UTC (rev 148747)
</span><span class="lines">@@ -1,28 +0,0 @@
</span><del>---- video/decode/vda.c.orig
-+++ video/decode/vda.c
-@@ -19,6 +19,7 @@

- #include &lt;libavcodec/version.h&gt;
- #include &lt;libavcodec/vda.h&gt;
-+#include &lt;AvailabilityMacros.h&gt;

- #include &quot;common/av_common.h&quot;
- #include &quot;common/msg.h&quot;
-@@ -76,6 +77,7 @@ static void print_vda_error(struct mp_lo
- static int init_decoder(struct lavc_ctx *ctx, int w, int h)
- {
-     av_vda_default_free(ctx-&gt;avctx);
-+#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
- #if HAVE_VDA_DEFAULT_INIT2
-     AVVDAContext *vdactx = av_vda_alloc_context();
-     vdactx-&gt;cv_pix_fmt_type = kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange;
-@@ -83,6 +85,9 @@ static int init_decoder(struct lavc_ctx 
- #else
-     int err = av_vda_default_init(ctx-&gt;avctx);
- #endif
-+#else
-+    int err = av_vda_default_init(ctx-&gt;avctx);
-+#endif /* MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070 */

-     if (err &lt; 0) {
-         print_vda_error(ctx-&gt;log, MSGL_ERR, &quot;failed to init VDA decoder&quot;, err);
</del></span></pre></div>
<a id="trunkdportsmultimediampvfilespatchvideo_out_cocoa_commonmdefineconstantsdiff"></a>
<div class="modfile"><h4>Modified: trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_common.m-define-constants.diff (148746 => 148747)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_common.m-define-constants.diff        2016-05-16 21:47:43 UTC (rev 148746)
+++ trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_common.m-define-constants.diff        2016-05-16 23:26:54 UTC (rev 148747)
</span><span class="lines">@@ -11,4 +11,4 @@
</span><span class="cx"> +
</span><span class="cx">  static int vo_cocoa_fullscreen(struct vo *vo);
</span><span class="cx">  static void cocoa_rm_fs_screen_profile_observer(struct vo_cocoa_state *s);
</span><del>- 
</del><ins>+ static void cocoa_add_screen_reconfiguration_observer(struct vo *vo);
</ins></span></pre></div>
<a id="trunkdportsmultimediampvfilespatchvideo_out_cocoa_commonmportlightsensordiff"></a>
<div class="modfile"><h4>Modified: trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_common.m-port-lightsensor.diff (148746 => 148747)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_common.m-port-lightsensor.diff        2016-05-16 21:47:43 UTC (rev 148746)
+++ trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_common.m-port-lightsensor.diff        2016-05-16 23:26:54 UTC (rev 148747)
</span><span class="lines">@@ -8,7 +8,7 @@
</span><span class="cx">  
</span><span class="cx">  #import &quot;cocoa_common.h&quot;
</span><span class="cx">  #import &quot;video/out/cocoa/window.h&quot;
</span><del>-@@ -85,6 +86,7 @@ struct vo_cocoa_state {
</del><ins>+@@ -87,6 +88,7 @@ struct vo_cocoa_state {
</ins><span class="cx">      uint64_t last_lmuvalue;
</span><span class="cx">      int last_lux;
</span><span class="cx">      IONotificationPortRef light_sensor_io_port;
</span><span class="lines">@@ -16,7 +16,7 @@
</span><span class="cx">  
</span><span class="cx">      struct mp_log *log;
</span><span class="cx">  
</span><del>-@@ -226,8 +228,18 @@ static void cocoa_init_light_sensor(stru
</del><ins>+@@ -230,8 +232,18 @@ static void cocoa_init_light_sensor(stru
</ins><span class="cx">  
</span><span class="cx">          // subscribe to notifications from the light sensor driver
</span><span class="cx">          s-&gt;light_sensor_io_port = IONotificationPortCreate(kIOMasterPortDefault);
</span><span class="lines">@@ -35,7 +35,7 @@
</span><span class="cx">  
</span><span class="cx">          io_object_t n;
</span><span class="cx">          IOServiceAddInterestNotification(
</span><del>-@@ -249,6 +261,11 @@ static void cocoa_init_light_sensor(stru
</del><ins>+@@ -253,6 +265,11 @@ static void cocoa_init_light_sensor(stru
</ins><span class="cx">  static void cocoa_uninit_light_sensor(struct vo_cocoa_state *s)
</span><span class="cx">  {
</span><span class="cx">      if (s-&gt;light_sensor_io_port) {
</span></span></pre></div>
<a id="trunkdportsmultimediampvfilespatchvideo_out_opengl_cocoachardcodeOpenGL2diff"></a>
<div class="delfile"><h4>Deleted: trunk/dports/multimedia/mpv/files/patch-video_out_opengl_cocoa.c-hardcode-OpenGL-2.diff (148746 => 148747)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/mpv/files/patch-video_out_opengl_cocoa.c-hardcode-OpenGL-2.diff        2016-05-16 21:47:43 UTC (rev 148746)
+++ trunk/dports/multimedia/mpv/files/patch-video_out_opengl_cocoa.c-hardcode-OpenGL-2.diff        2016-05-16 23:26:54 UTC (rev 148747)
</span><span class="lines">@@ -1,138 +0,0 @@
</span><del>---- video/out/opengl/cocoa.c.orig
-+++ video/out/opengl/cocoa.c
-@@ -61,12 +61,17 @@ static void *cocoa_glgetaddr(const char 

- static CGLError test_gl_version(struct vo *vo,
-                                 CGLContextObj *ctx,
--                                CGLPixelFormatObj *pix,
--                                CGLOpenGLProfile version)
-+                                CGLPixelFormatObj *pix
-+#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
-+                                , CGLOpenGLProfile version
-+#endif
-+                               )
- {
-     CGLPixelFormatAttribute attrs[] = {
-+#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
-         kCGLPFAOpenGLProfile,
-         (CGLPixelFormatAttribute) version,
-+#endif
-         kCGLPFADoubleBuffer,
-         kCGLPFAAccelerated,
-         #if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= MAC_OS_X_VERSION_10_8
-@@ -104,16 +109,22 @@ static bool create_gl_context(struct MPG
-     struct cgl_context *p = ctx-&gt;priv;
-     CGLError err;

-+#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
-     CGLOpenGLProfile gl_versions[] = {
-         kCGLOGLPVersion_3_2_Core,
-         kCGLOGLPVersion_Legacy,
-     };
-+#endif

-+#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
-     for (int n = 0; n &lt; MP_ARRAY_SIZE(gl_versions); n++) {
-         err = test_gl_version(ctx-&gt;vo, &amp;p-&gt;ctx, &amp;p-&gt;pix, gl_versions[n]);
-         if (err == kCGLNoError)
-             break;
-     }
-+#else
-+    err = test_gl_version(ctx-&gt;vo, &amp;p-&gt;ctx, &amp;p-&gt;pix);
-+#endif

-     if (err != kCGLNoError) {
-         MP_FATAL(ctx-&gt;vo, &quot;error creating CGL context: %s (%d)\n&quot;,
---- video/out/opengl/common.c.orig
-+++ video/out/opengl/common.c
-@@ -356,6 +356,7 @@ void mpgl_load_functions2(GL *gl, void *
-     if (shader)
-         mp_verbose(log, &quot;GL_SHADING_LANGUAGE_VERSION='%s'\n&quot;, shader);

-+#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
-     if (gl-&gt;version &gt;= 300) {
-         gl-&gt;GetStringi = get_fn(fn_ctx, &quot;glGetStringi&quot;);
-         gl-&gt;GetIntegerv = get_fn(fn_ctx, &quot;glGetIntegerv&quot;);
-@@ -370,7 +371,9 @@ void mpgl_load_functions2(GL *gl, void *
-             gl-&gt;extensions = talloc_asprintf_append(gl-&gt;extensions, &quot; %s&quot;, ext);
-         }

--    } else {
-+    } else
-+#endif
-+    {
-         const char *ext = (char*)gl-&gt;GetString(GL_EXTENSIONS);
-         gl-&gt;extensions = talloc_asprintf_append(gl-&gt;extensions, &quot; %s&quot;, ext);
-     }
---- video/out/opengl/common.h.orig
-+++ video/out/opengl/common.h
-@@ -39,7 +39,6 @@
- #if HAVE_GL_COCOA
- #define GL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED 1
- #include &lt;OpenGL/gl.h&gt;
--#include &lt;OpenGL/gl3.h&gt;
- #include &lt;OpenGL/glext.h&gt;
- #else
- #include &lt;GL/gl.h&gt;
---- video/out/opengl/utils.c.orig
-+++ video/out/opengl/utils.c
-@@ -27,6 +27,7 @@
- #include &lt;string.h&gt;
- #include &lt;stdarg.h&gt;
- #include &lt;assert.h&gt;
-+#include &lt;AvailabilityMacros.h&gt;

- #include &quot;stream/stream.h&quot;
- #include &quot;common/common.h&quot;
-@@ -85,14 +86,20 @@ int glFmt2bpp(GLenum format, GLenum type
-         return 2;
-     case GL_RGB:
-     case GL_BGR:
-+#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
-     case GL_RGB_INTEGER:
-+#endif
-         return 3 * component_size;
-     case GL_RGBA:
-     case GL_BGRA:
-+#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
-     case GL_RGBA_INTEGER:
-+#endif
-         return 4 * component_size;
-     case GL_RED:
-+#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
-     case GL_RED_INTEGER:
-+#endif
-         return component_size;
-     case GL_RG:
-     case GL_LUMINANCE_ALPHA:
---- video/out/opengl/video.c.orig
-+++ video/out/opengl/video.c
-@@ -264,10 +264,10 @@ static const struct fmt_entry gl_byte_fo
- };

- static const struct fmt_entry gl_float16_formats[] = {
--    {0, GL_R16F,    GL_RED,     GL_FLOAT},              // 1 x f
--    {0, GL_RG16F,   GL_RG,      GL_FLOAT},              // 2 x f
--    {0, GL_RGB16F,  GL_RGB,     GL_FLOAT},              // 3 x f
--    {0, GL_RGBA16F, GL_RGBA,    GL_FLOAT},              // 4 x f
-+    {0, 0,    GL_RED,     GL_FLOAT},              // 1 x f
-+    {0, 0,   GL_RG,      GL_FLOAT},              // 2 x f
-+    {0, 0,  GL_RGB,     GL_FLOAT},              // 3 x f
-+    {0, 0, GL_RGBA,    GL_FLOAT},              // 4 x f
- };

- static const struct fmt_entry gl_apple_formats[] = {
-@@ -389,12 +389,8 @@ const struct m_sub_options gl_video_conf
-                     {&quot;rgb10&quot;,  GL_RGB10},
-                     {&quot;rgb10_a2&quot;, GL_RGB10_A2},
-                     {&quot;rgb16&quot;,  GL_RGB16},
--                    {&quot;rgb16f&quot;, GL_RGB16F},
--                    {&quot;rgb32f&quot;, GL_RGB32F},
-                     {&quot;rgba12&quot;, GL_RGBA12},
--                    {&quot;rgba16&quot;, GL_RGBA16},
--                    {&quot;rgba16f&quot;, GL_RGBA16F},
--                    {&quot;rgba32f&quot;, GL_RGBA32F})),
-+                    {&quot;rgba16&quot;, GL_RGBA16})),
-         OPT_CHOICE_OR_INT(&quot;dither-depth&quot;, dither_depth, 0, -1, 16,
-                           ({&quot;no&quot;, -1}, {&quot;auto&quot;, 0})),
-         OPT_CHOICE(&quot;dither&quot;, dither_algo, 0,
</del></span></pre></div>
<a id="trunkdportsmultimediampvfilespatchvideo_out_opengl_commonchideGL320sectiondiff"></a>
<div class="addfile"><h4>Added: trunk/dports/multimedia/mpv/files/patch-video_out_opengl_common.c-hide-GL320-section.diff (0 => 148747)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/mpv/files/patch-video_out_opengl_common.c-hide-GL320-section.diff                                (rev 0)
+++ trunk/dports/multimedia/mpv/files/patch-video_out_opengl_common.c-hide-GL320-section.diff        2016-05-16 23:26:54 UTC (rev 148747)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+--- video/out/opengl/common.c.orig
++++ video/out/opengl/common.c
+@@ -227,6 +227,7 @@ static const struct gl_functions gl_func
+         .extension = &quot;GL_ARB_texture_rg&quot;,
+         .provides = MPGL_CAP_TEX_RG,
+     },
++#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
+     {
+         .ver_core = 320,
+         .extension = &quot;GL_ARB_sync&quot;,
+@@ -237,6 +238,7 @@ static const struct gl_functions gl_func
+             {0}
+         },
+     },
++#endif
+     // Swap control, always an OS specific extension
+     // The OSX code loads this manually.
+     {
</ins></span></pre></div>
<a id="trunkdportsmultimediampvfilespatchvideo_out_opengl_commonhguardGL3stuffdiff"></a>
<div class="addfile"><h4>Added: trunk/dports/multimedia/mpv/files/patch-video_out_opengl_common.h-guard-GL3-stuff.diff (0 => 148747)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/mpv/files/patch-video_out_opengl_common.h-guard-GL3-stuff.diff                                (rev 0)
+++ trunk/dports/multimedia/mpv/files/patch-video_out_opengl_common.h-guard-GL3-stuff.diff        2016-05-16 23:26:54 UTC (rev 148747)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+--- video/out/opengl/common.h.orig
++++ video/out/opengl/common.h
+@@ -22,6 +22,8 @@
+ #include &lt;stdint.h&gt;
+ #include &lt;stdbool.h&gt;

++#include &lt;AvailabilityMacros.h&gt;
++
+ #include &quot;config.h&quot;
+ #include &quot;common/msg.h&quot;
+ #include &quot;misc/bstr.h&quot;
+@@ -176,9 +178,11 @@ struct GL {
+     void (GLAPIENTRY *UniformMatrix3fv)(GLint, GLsizei, GLboolean,
+                                         const GLfloat *);

++#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
+     GLsync (GLAPIENTRY *FenceSync)(GLenum, GLbitfield);
+     GLenum (GLAPIENTRY *ClientWaitSync)(GLsync, GLbitfield, GLuint64);
+     void (GLAPIENTRY *DeleteSync)(GLsync sync);
++#endif

+     void (GLAPIENTRY *VDPAUInitNV)(const GLvoid *, const GLvoid *);
+     void (GLAPIENTRY *VDPAUFiniNV)(void);
</ins></span></pre></div>
<a id="trunkdportsmultimediampvfilespatchvideo_out_opengl_context_cocoachardcodeOpenGL2diff"></a>
<div class="addfile"><h4>Added: trunk/dports/multimedia/mpv/files/patch-video_out_opengl_context_cocoa.c-hardcode-OpenGL-2.diff (0 => 148747)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/mpv/files/patch-video_out_opengl_context_cocoa.c-hardcode-OpenGL-2.diff                                (rev 0)
+++ trunk/dports/multimedia/mpv/files/patch-video_out_opengl_context_cocoa.c-hardcode-OpenGL-2.diff        2016-05-16 23:26:54 UTC (rev 148747)
</span><span class="lines">@@ -0,0 +1,228 @@
</span><ins>+--- video/out/opengl/common.c.orig
++++ video/out/opengl/common.c
+@@ -28,6 +28,7 @@
+ #include &lt;stdbool.h&gt;
+ #include &lt;math.h&gt;
+ #include &lt;assert.h&gt;
++#include &lt;AvailabilityMacros.h&gt;

+ #include &quot;common.h&quot;
+ #include &quot;common/common.h&quot;
+@@ -399,6 +400,7 @@ void mpgl_load_functions2(GL *gl, void *
+     if (shader)
+         mp_verbose(log, &quot;GL_SHADING_LANGUAGE_VERSION='%s'\n&quot;, shader);

++#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
+     if (gl-&gt;version &gt;= 300) {
+         gl-&gt;GetStringi = get_fn(fn_ctx, &quot;glGetStringi&quot;);
+         gl-&gt;GetIntegerv = get_fn(fn_ctx, &quot;glGetIntegerv&quot;);
+@@ -413,7 +415,9 @@ void mpgl_load_functions2(GL *gl, void *
+             gl-&gt;extensions = talloc_asprintf_append(gl-&gt;extensions, &quot; %s&quot;, ext);
+         }

+-    } else {
++    } else
++#endif
++    {
+         const char *ext = (char*)gl-&gt;GetString(GL_EXTENSIONS);
+         gl-&gt;extensions = talloc_asprintf_append(gl-&gt;extensions, &quot; %s&quot;, ext);
+     }
+--- video/out/opengl/common.h.orig
++++ video/out/opengl/common.h
+@@ -34,7 +34,6 @@
+ #if HAVE_GL_COCOA
+ #define GL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED 1
+ #include &lt;OpenGL/gl.h&gt;
+-#include &lt;OpenGL/gl3.h&gt;
+ #include &lt;OpenGL/glext.h&gt;
+ #elif HAVE_ANDROID_GL
+ #include &lt;GLES3/gl3.h&gt;
+--- video/out/opengl/utils.c.orig
++++ video/out/opengl/utils.c
+@@ -22,6 +22,7 @@
+ #include &lt;string.h&gt;
+ #include &lt;stdarg.h&gt;
+ #include &lt;assert.h&gt;
++#include &lt;AvailabilityMacros.h&gt;

+ #include &quot;common/common.h&quot;
+ #include &quot;utils.h&quot;
+@@ -79,14 +80,20 @@ int glFmt2bpp(GLenum format, GLenum type
+         return 2;
+     case GL_RGB:
+     case GL_BGR:
++#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
+     case GL_RGB_INTEGER:
++#endif
+         return 3 * component_size;
+     case GL_RGBA:
+     case GL_BGRA:
++#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
+     case GL_RGBA_INTEGER:
++#endif
+         return 4 * component_size;
+     case GL_RED:
++#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
+     case GL_RED_INTEGER:
++#endif
+         return component_size;
+     case GL_RG:
+     case GL_LUMINANCE_ALPHA:
+@@ -322,10 +329,12 @@ static const struct gl_format gl_formats
+     {GL_RGB,    GL_UNSIGNED_SHORT,              GL_RGB16},
+     {GL_RGBA,   GL_UNSIGNED_INT_2_10_10_10_REV, GL_RGB10_A2},
+     // not texture filterable in GLES 3.0
++#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
+     {GL_RGB,    GL_FLOAT,                       GL_RGB16F},
+     {GL_RGBA,   GL_FLOAT,                       GL_RGBA16F},
+     {GL_RGB,    GL_FLOAT,                       GL_RGB32F},
+     {GL_RGBA,   GL_FLOAT,                       GL_RGBA32F},
++#endif
+     // Desktop GL
+     {GL_RGB,    GL_UNSIGNED_SHORT,              GL_RGB10},
+     {GL_RGBA,   GL_UNSIGNED_SHORT,              GL_RGBA12},
+--- video/out/opengl/video.c.orig
++++ video/out/opengl/video.c
+@@ -20,6 +20,7 @@
+ #include &lt;stdbool.h&gt;
+ #include &lt;string.h&gt;
+ #include &lt;assert.h&gt;
++#include &lt;AvailabilityMacros.h&gt;

+ #include &lt;libavutil/common.h&gt;
+ #include &lt;libavutil/lfg.h&gt;
+@@ -284,6 +285,7 @@ static const struct fmt_entry gl_byte_fo
+     {0, 0,           0,         0},                     // 4 x 16
+ };

++#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
+ static const struct fmt_entry gl_ui_byte_formats_gles3[] = {
+     {0, GL_R8UI,      GL_RED_INTEGER,   GL_UNSIGNED_BYTE},  // 1 x 8
+     {0, GL_RG8UI,     GL_RG_INTEGER,    GL_UNSIGNED_BYTE},  // 2 x 8
+@@ -294,6 +296,7 @@ static const struct fmt_entry gl_ui_byte
+     {0, GL_RGB16UI,   GL_RGB_INTEGER,   GL_UNSIGNED_SHORT}, // 3 x 16
+     {0, GL_RGBA16UI,  GL_RGBA_INTEGER,  GL_UNSIGNED_SHORT}, // 4 x 16
+ };
++#endif

+ static const struct fmt_entry gl_byte_formats_gles2[] = {
+     {0, GL_LUMINANCE,           GL_LUMINANCE,       GL_UNSIGNED_BYTE}, // 1 x 8
+@@ -318,10 +321,10 @@ static const struct fmt_entry gl_byte_fo
+ };

+ static const struct fmt_entry gl_float16_formats[] = {
+-    {0, GL_R16F,    GL_RED,     GL_FLOAT},              // 1 x f
+-    {0, GL_RG16F,   GL_RG,      GL_FLOAT},              // 2 x f
+-    {0, GL_RGB16F,  GL_RGB,     GL_FLOAT},              // 3 x f
+-    {0, GL_RGBA16F, GL_RGBA,    GL_FLOAT},              // 4 x f
++    {0, 0,    GL_RED,     GL_FLOAT},              // 1 x f
++    {0, 0,   GL_RG,      GL_FLOAT},              // 2 x f
++    {0, 0,  GL_RGB,     GL_FLOAT},              // 3 x f
++    {0, 0, GL_RGBA,    GL_FLOAT},              // 4 x f
+ };

+ static const struct fmt_entry gl_apple_formats[] = {
+@@ -456,12 +459,7 @@ const struct m_sub_options gl_video_conf
+                     {&quot;rgb10&quot;,  GL_RGB10},
+                     {&quot;rgb10_a2&quot;, GL_RGB10_A2},
+                     {&quot;rgb16&quot;,  GL_RGB16},
+-                    {&quot;rgb16f&quot;, GL_RGB16F},
+-                    {&quot;rgb32f&quot;, GL_RGB32F},
+                     {&quot;rgba12&quot;, GL_RGBA12},
+-                    {&quot;rgba16&quot;, GL_RGBA16},
+-                    {&quot;rgba16f&quot;, GL_RGBA16F},
+-                    {&quot;rgba32f&quot;, GL_RGBA32F},
+                     {&quot;auto&quot;,   0})),
+         OPT_CHOICE_OR_INT(&quot;dither-depth&quot;, dither_depth, 0, -1, 16,
+                           ({&quot;no&quot;, -1}, {&quot;auto&quot;, 0})),
+@@ -565,10 +563,14 @@ static bool is_integer_format(const stru
+ {
+     // Tests only the formats which we actually declare somewhere.
+     switch (fmt-&gt;format) {
++#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
+     case GL_RED_INTEGER:
++#endif
+     case GL_RG_INTEGER:
++#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
+     case GL_RGB_INTEGER:
+     case GL_RGBA_INTEGER:
++#endif
+         return true;
+     }
+     return false;
+@@ -1003,7 +1005,7 @@ static void pass_prepare_src_tex(struct 
+ static void render_pass_quad(struct gl_video *p, int vp_w, int vp_h,
+                              const struct mp_rect *dst)
+ {
+-    struct vertex va[4] = {0};
++    struct vertex va[4] = {{{0}}};

+     struct gl_transform t;
+     gl_transform_ortho(&amp;t, 0, vp_w, 0, vp_h);
+@@ -2636,7 +2638,11 @@ static void check_gl_features(struct gl_
+         if (!p-&gt;opts.fbo_format) {
+             p-&gt;opts.fbo_format = GL_RGBA16;
+             if (gl-&gt;es)
++#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
+                 p-&gt;opts.fbo_format = have_float_tex ? GL_RGBA16F : GL_RGB10_A2;
++#else
++                p-&gt;opts.fbo_format = GL_RGB10_A2;
++#endif
+         }
+         have_fbo = test_fbo(p);
+     }
+@@ -2855,7 +2861,9 @@ static const struct fmt_entry *find_plan
+     const struct fmt_entry *e = find_tex_format(gl, bytes_per_comp, n_channels);
+     if (e-&gt;format || gl-&gt;es &lt; 300)
+         return e;
++#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
+     return &amp;gl_ui_byte_formats_gles3[n_channels - 1 + (bytes_per_comp - 1) * 4];
++#endif
+ }

+ static bool init_format(int fmt, struct gl_video *init)
+--- video/out/opengl/context_cocoa.c.orig
++++ video/out/opengl/context_cocoa.c
+@@ -56,12 +56,17 @@ static void *cocoa_glgetaddr(const char 

+ static CGLError test_gl_version(struct vo *vo,
+                                 CGLContextObj *ctx,
+-                                CGLPixelFormatObj *pix,
+-                                CGLOpenGLProfile version)
++                                CGLPixelFormatObj *pix
++#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
++                                , CGLOpenGLProfile version
++#endif
++                                )
+ {
+     CGLPixelFormatAttribute attrs[] = {
++#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
+         kCGLPFAOpenGLProfile,
+         (CGLPixelFormatAttribute) version,
++#endif
+         kCGLPFADoubleBuffer,
+         kCGLPFAAccelerated,
+         #if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= MAC_OS_X_VERSION_10_8
+@@ -99,16 +104,22 @@ static bool create_gl_context(struct MPG
+     struct cgl_context *p = ctx-&gt;priv;
+     CGLError err;

++#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
+     CGLOpenGLProfile gl_versions[] = {
+         kCGLOGLPVersion_3_2_Core,
+         kCGLOGLPVersion_Legacy,
+     };
++#endif

++#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
+     for (int n = 0; n &lt; MP_ARRAY_SIZE(gl_versions); n++) {
+         err = test_gl_version(ctx-&gt;vo, &amp;p-&gt;ctx, &amp;p-&gt;pix, gl_versions[n]);
+         if (err == kCGLNoError)
+             break;
+     }
++#else
++    err = test_gl_version(ctx-&gt;vo, &amp;p-&gt;ctx, &amp;p-&gt;pix);
++#endif

+     if (err != kCGLNoError) {
+         MP_FATAL(ctx-&gt;vo, &quot;error creating CGL context: %s (%d)\n&quot;,
</ins></span></pre></div>
<a id="trunkdportsmultimediampvfilespatchvideo_out_opengl_hwdec_vdacdisableNV12diff"></a>
<div class="delfile"><h4>Deleted: trunk/dports/multimedia/mpv/files/patch-video_out_opengl_hwdec_vda.c-disable-NV12.diff (148746 => 148747)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/mpv/files/patch-video_out_opengl_hwdec_vda.c-disable-NV12.diff        2016-05-16 21:47:43 UTC (rev 148746)
+++ trunk/dports/multimedia/mpv/files/patch-video_out_opengl_hwdec_vda.c-disable-NV12.diff        2016-05-16 23:26:54 UTC (rev 148747)
</span><span class="lines">@@ -1,45 +0,0 @@
</span><del>---- video/out/opengl/hwdec_vda.c.orig
-+++ video/out/opengl/hwdec_vda.c
-@@ -23,6 +23,7 @@
- #include &lt;CoreVideo/CoreVideo.h&gt;
- #include &lt;OpenGL/OpenGL.h&gt;
- #include &lt;OpenGL/CGLIOSurface.h&gt;
-+#include &lt;AvailabilityMacros.h&gt;

- #include &quot;video/mp_image_pool.h&quot;
- #include &quot;hwdec.h&quot;
-@@ -54,7 +55,9 @@ static struct vda_format vda_formats[] =
-         .gl = {
-             { GL_RGB_422_APPLE, GL_UNSIGNED_SHORT_8_8_APPLE, GL_RGB }
-         }
--    }, {
-+    }
-+#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
-+    , {
-         .cvpixfmt = kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange,
-         .imgfmt = IMGFMT_NV12,
-         .planes = 2,
-@@ -63,6 +66,7 @@ static struct vda_format vda_formats[] =
-             { GL_RG,  GL_UNSIGNED_BYTE, GL_RG } ,
-         }
-     }
-+#endif /* MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070 */
- };

- static struct vda_format *vda_get_gl_format(uint32_t cvpixfmt)
-@@ -159,11 +163,15 @@ static int create_common(struct gl_hwdec
- static int create(struct gl_hwdec *hw)
- {
-     // For videotoolbox, we always request NV12.
-+#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
- #if HAVE_VDA_DEFAULT_INIT2
-     struct vda_format *f = vda_get_gl_format_from_imgfmt(IMGFMT_NV12);
- #else
-     struct vda_format *f = vda_get_gl_format_from_imgfmt(IMGFMT_UYVY);
- #endif
-+#else
-+    struct vda_format *f = vda_get_gl_format_from_imgfmt(IMGFMT_UYVY);
-+#endif /* MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070 */
-     if (create_common(hw, f))
-         return -1;

</del></span></pre></div>
<a id="trunkdportsmultimediampvfilespatchvideo_out_vo_openglcguardGL3andbackportoldbehaviordiff"></a>
<div class="addfile"><h4>Added: trunk/dports/multimedia/mpv/files/patch-video_out_vo_opengl.c-guard-GL3-and-backport-old-behavior.diff (0 => 148747)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/mpv/files/patch-video_out_vo_opengl.c-guard-GL3-and-backport-old-behavior.diff                                (rev 0)
+++ trunk/dports/multimedia/mpv/files/patch-video_out_vo_opengl.c-guard-GL3-and-backport-old-behavior.diff        2016-05-16 23:26:54 UTC (rev 148747)
</span><span class="lines">@@ -0,0 +1,59 @@
</span><ins>+--- video/out/vo_opengl.c.orig
++++ video/out/vo_opengl.c
+@@ -69,6 +69,9 @@ struct gl_priv {
+     int use_gl_debug;
+     int allow_sw;
+     int swap_interval;
++#if MAC_OS_X_VERSION_MIN_REQUIRED &lt; 1070
++    int current_swap_interval;
++#endif
+     int dwm_flush;
+     int opt_vsync_fences;

+@@ -83,8 +86,10 @@ struct gl_priv {
+     int last_pattern;
+     int matches, mismatches;

++#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
+     GLsync vsync_fences[NUM_VSYNC_FENCES];
+     int num_vsync_fences;
++#endif
+ };

+ static void resize(struct gl_priv *p)
+@@ -124,13 +129,21 @@ static void draw_frame(struct vo *vo, st
+     struct gl_priv *p = vo-&gt;priv;
+     GL *gl = p-&gt;gl;

++#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
+     if (gl-&gt;FenceSync &amp;&amp; p-&gt;num_vsync_fences &lt; p-&gt;opt_vsync_fences) {
+         GLsync fence = gl-&gt;FenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0);;
+         if (fence)
+             p-&gt;vsync_fences[p-&gt;num_vsync_fences++] = fence;
+     }
++#endif

+     gl_video_render_frame(p-&gt;renderer, frame, 0);
++#if MAC_OS_X_VERSION_MIN_REQUIRED &lt; 1070
++    // The playloop calls this last before waiting some time until it decides
++    // to call flip_page(). Tell OpenGL to start execution of the GPU commands
++    // while we sleep (this happens asynchronously).
++    gl-&gt;Flush();
++#endif

+     if (p-&gt;use_glFinish)
+         gl-&gt;Finish();
+@@ -167,11 +180,13 @@ static void flip_page(struct vo *vo)
+             p-&gt;opt_pattern[0] = 0;
+         }
+     }
++#if MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1070
+     while (p-&gt;opt_vsync_fences &gt; 0 &amp;&amp; p-&gt;num_vsync_fences &gt;= p-&gt;opt_vsync_fences) {
+         gl-&gt;ClientWaitSync(p-&gt;vsync_fences[0], GL_SYNC_FLUSH_COMMANDS_BIT, 1e9);
+         gl-&gt;DeleteSync(p-&gt;vsync_fences[0]);
+         MP_TARRAY_REMOVE_AT(p-&gt;vsync_fences, p-&gt;num_vsync_fences, 0);
+     }
++#endif
+ }

+ static int query_format(struct vo *vo, int format)
</ins></span></pre></div>
<a id="trunkdportsmultimediampvfilespatchwaftools_checks_custompydisablelibarclitediff"></a>
<div class="modfile"><h4>Modified: trunk/dports/multimedia/mpv/files/patch-waftools_checks_custom.py-disable-libarclite.diff (148746 => 148747)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/mpv/files/patch-waftools_checks_custom.py-disable-libarclite.diff        2016-05-16 21:47:43 UTC (rev 148746)
+++ trunk/dports/multimedia/mpv/files/patch-waftools_checks_custom.py-disable-libarclite.diff        2016-05-16 23:26:54 UTC (rev 148747)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> --- waftools/checks/custom.py.orig
</span><span class="cx"> +++ waftools/checks/custom.py
</span><del>-@@ -107,7 +107,6 @@ def check_cocoa(ctx, dependency_identifi
</del><ins>+@@ -112,7 +112,6 @@ def check_cocoa(ctx, dependency_identifi
</ins><span class="cx">          fragment         = load_fragment('cocoa.m'),
</span><span class="cx">          compile_filename = 'test.m',
</span><span class="cx">          framework_name   = ['Cocoa', 'IOKit', 'OpenGL', 'QuartzCore'],
</span></span></pre>
</div>
</div>

</body>
</html>