[133614] trunk

ionic at macports.org ionic at macports.org
Fri Mar 6 15:20:49 PST 2015


Revision: 133614
          https://trac.macports.org/changeset/133614
Author:   ionic at macports.org
Date:     2015-03-06 15:20:49 -0800 (Fri, 06 Mar 2015)
Log Message:
-----------
mpv: update to 0.8.2. Adapt 10.6 patchset.

Modified Paths:
--------------
    trunk/dports/multimedia/mpv/Portfile
    trunk/dports/multimedia/mpv/files/patch-osdep_macosx_compat.m-add-subscripting-implementation.diff
    trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_common.m-define-constants.diff
    trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_events_view.h-remove-NSDraggingDestination-protocol.diff
    trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_events_view.m-replace-convertPointToBacking-with-userSpaceScaleFactor.diff
    trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_events_view.m-replace-convertRectFromScreen-with-convertScreenToBase.diff
    trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_video_view.m-replace-convertRectToBacking-with-userSpaceScaleFactor.diff
    trunk/dports/multimedia/mpv/files/patch-video_out_gl_cocoa.c-hardcode-OpenGL-2.diff
    trunk/dports/multimedia/mpv/files/patch-waftools_checks_custom.py-disable-libarclite.diff

Added Paths:
-----------
    trunk/multimedia/
    trunk/multimedia/mpv/
    trunk/multimedia/mpv/files/
    trunk/multimedia/mpv/files/patch-misc-import-CoreVideo.diff

Removed Paths:
-------------
    trunk/dports/multimedia/mpv/files/patch-TOOLS_osxbundle.py-replace-sed-call.diff
    trunk/dports/multimedia/mpv/files/patch-audio_out_ao_coreaudio_device.c-compile-fix.diff
    trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_common.m-use-deprecated-ColorSync-functions.diff
    trunk/dports/multimedia/mpv/files/patch-video_out_gl_common.h-use-OpenGL-legacy.diff

Modified: trunk/dports/multimedia/mpv/Portfile
===================================================================
--- trunk/dports/multimedia/mpv/Portfile	2015-03-06 23:16:43 UTC (rev 133613)
+++ trunk/dports/multimedia/mpv/Portfile	2015-03-06 23:20:49 UTC (rev 133614)
@@ -6,8 +6,8 @@
 PortGroup               waf 1.0
 
 # Please revbump mpv whenever ffmpeg{,-devel} is updated!
-github.setup            mpv-player mpv 0.7.1 v
-revision                2
+github.setup            mpv-player mpv 0.8.2 v
+revision                0
 categories              multimedia
 license                 GPL-2+
 maintainers             ionic
@@ -22,7 +22,7 @@
                         and even H.264 movies.
 homepage                http://www.mpv.io/
 
-set waf_version         1.8.1
+set waf_version         1.8.4
 set waf_distfile        waf-${waf_version}
 set mpv_distfile        ${distfiles}
 master_sites-append     http://ftp.waf.io/pub/release:waf
@@ -31,11 +31,11 @@
 extract.only-delete     ${waf_distfile}
 
 checksums               ${mpv_distfile} \
-                        rmd160  0c34377f400bdb05536666866418442c32792866 \
-                        sha256  e7aa04852944eae4ebe0c38da83093e757f04741b98b3dd2cc4c2cdd3cea3e91 \
+                        rmd160  bb747edd8badb1904d2873b9269dcbedb1e2473d \
+                        sha256  ed758577aff6c18fcd087b0281d263729a3e32af2f8f45eca32b1de6d8a41ffc \
                         ${waf_distfile} \
-                        rmd160  d74bf5e8b2399098aef8e9bf57fb800a473be6a1 \
-                        sha256  ec658116ba0b96629d91fde0b32321849e866e0819f1e835c4c2c7f7ffe1a21d
+                        rmd160  d58b790001664fe5f6a720e4ff9ce9f4105d195a \
+                        sha256  f02035fa5d8814f33f19b2b20d43822ddef6bb39b955ca196c2a247a1f9ffaa8
 
 depends_build           path:bin/pkg-config:pkgconfig
 depends_lib             path:lib/libavcodec.dylib:ffmpeg \
@@ -48,15 +48,6 @@
                         port:ossp-uuid \
                         port:icu
 
-# Without the OpenGL patch, mpv will sporadically include both <GL/gl3.h>
-# and <GL/gl.h>. This is a problem, as it will disable compile errors for
-# deprecated functions and may lead to crashes in OpenGL mode.
-# This is really a bug in mpv code and should be fixed there, but
-# we'll provide a workaround by making sure <GL/gl3.h> will
-# not be included for the time being.
-patchfiles              patch-video_out_gl_common.h-use-OpenGL-legacy.diff \
-                        patch-TOOLS_osxbundle.py-replace-sed-call.diff
-
 universal_variant       no
 
 default_variants        +bundle +network +osd +mp3 +opengl +dvd
@@ -65,6 +56,8 @@
 configure.args-delete   --nocache
 
 # Default configuration options. Mostly Mac OS X specific.
+# We cannot use --enable-cplayer here. Only --disable-cplayer
+# is recognized. Boo!
 configure.args-append   --enable-manpage-build \
                         --enable-libass \
                         --enable-coreaudio \
@@ -77,6 +70,8 @@
 # This list should be expanded each time the port is updated to a
 # new version, disabling any newly added options.
 configure.args-append   --disable-pdf-build \
+                        --disable-test \
+                        --disable-clang-database \
                         --disable-debug-build \
                         --disable-libsmbclient \
                         --disable-libass-osd \
@@ -89,7 +84,6 @@
                         --disable-enca \
                         --disable-mpg123 \
                         --disable-pulse \
-                        --disable-portaudio \
                         --disable-jack \
                         --disable-openal \
                         --disable-gl-cocoa \
@@ -171,6 +165,7 @@
     if {${os.major} < 11} {
         patchfiles-append   patch-waftools_checks_custom.py-disable-libarclite.diff \
                             patch-misc-add-strnlen.diff \
+                            patch-misc-import-CoreVideo.diff \
                             patch-audio_out_ao_coreaudio_exclusive.c-compile-fix.diff \
                             patch-video_out_cocoa_events_view.h-remove-NSDraggingDestination-protocol.diff \
                             patch-video_out_cocoa_events_view.m-replace-convertRectFromScreen-with-convertScreenToBase.diff \
@@ -178,10 +173,12 @@
                             patch-video_out_cocoa_events_view.m-replace-convertPointToBacking-with-userSpaceScaleFactor.diff \
                             patch-video_out_cocoa_window.m-fullscreen-fixes.diff \
                             patch-video_out_cocoa_common.m-define-constants.diff \
-                            patch-video_out_cocoa_common.m-use-deprecated-ColorSync-functions.diff \
                             patch-video_out_gl_cocoa.c-hardcode-OpenGL-2.diff \
                             patch-osdep_macosx_compat.m-add-subscripting-implementation.diff
 
+                            # Let's hope this is actually unneeded...
+                            #patch-video_out_cocoa_common.m-use-deprecated-ColorSync-functions.diff
+
         notes-append {
                        On systems older than Lion (10.7), Cocoa output support is currently
                        being patched by the MacPorts maintainer to make it work.
@@ -341,10 +338,8 @@
                             --enable-pulse
 }
 
-variant portaudio description {Enable portaudio support} {
-    depends_lib-append      port:portaudio
-    configure.args-replace  --disable-portaudio \
-                            --enable-portaudio
+# Remove after 03-04-2016.
+variant portaudio description {Legacy compatibility variant for portaudio support. Will be removed soon.} {
 }
 
 variant jack description {Enable Jack Audio Connection Kit support} {

Deleted: trunk/dports/multimedia/mpv/files/patch-TOOLS_osxbundle.py-replace-sed-call.diff
===================================================================
--- trunk/dports/multimedia/mpv/files/patch-TOOLS_osxbundle.py-replace-sed-call.diff	2015-03-06 23:16:43 UTC (rev 133613)
+++ trunk/dports/multimedia/mpv/files/patch-TOOLS_osxbundle.py-replace-sed-call.diff	2015-03-06 23:20:49 UTC (rev 133614)
@@ -1,20 +0,0 @@
---- TOOLS/osxbundle.py.old
-+++ TOOLS/osxbundle.py
-@@ -3,6 +3,7 @@
- import os
- import shutil
- import sys
-+import fileinput
- from optparse import OptionParser
- 
- def sh(command):
-@@ -35,7 +36,8 @@ def copy_binary(binary_name):
-     shutil.copy(binary_name, target_binary(binary_name))
- 
- def apply_plist_template(plist_file, version):
--    sh("sed -i -e 's/${VERSION}/%s/g' %s" % (version, plist_file))
-+    for line in fileinput.input(plist_file, inplace=1):
-+        print (line.rstrip().replace('${VERSION}', version))
- 
- def main():
-     version = sh("./version.sh --print").strip()

Deleted: trunk/dports/multimedia/mpv/files/patch-audio_out_ao_coreaudio_device.c-compile-fix.diff
===================================================================
--- trunk/dports/multimedia/mpv/files/patch-audio_out_ao_coreaudio_device.c-compile-fix.diff	2015-03-06 23:16:43 UTC (rev 133613)
+++ trunk/dports/multimedia/mpv/files/patch-audio_out_ao_coreaudio_device.c-compile-fix.diff	2015-03-06 23:20:49 UTC (rev 133614)
@@ -1,11 +0,0 @@
---- audio/out/ao_coreaudio_device.c.old
-+++ audio/out/ao_coreaudio_device.c
-@@ -35,6 +35,8 @@
-  * when you are wanting to do good buffering of audio).
-  */
- 
-+#include <unistd.h>
-+
- #include "config.h"
- #include "ao.h"
- #include "internal.h"

Modified: trunk/dports/multimedia/mpv/files/patch-osdep_macosx_compat.m-add-subscripting-implementation.diff
===================================================================
--- trunk/dports/multimedia/mpv/files/patch-osdep_macosx_compat.m-add-subscripting-implementation.diff	2015-03-06 23:16:43 UTC (rev 133613)
+++ trunk/dports/multimedia/mpv/files/patch-osdep_macosx_compat.m-add-subscripting-implementation.diff	2015-03-06 23:20:49 UTC (rev 133614)
@@ -55,9 +55,9 @@
 + at end
 +
 +#endif
---- wscript_build.py.old
-+++ wscript_build.py
-@@ -379,6 +379,7 @@
+--- wscript_build.py.old	2015-03-04 05:13:41.000000000 +0100
++++ wscript_build.py	2015-03-04 05:15:32.000000000 +0100
+@@ -373,6 +373,7 @@
          ( "osdep/ar/HIDRemote.m",                "apple-remote" ),
          ( "osdep/macosx_application.m",          "cocoa-application" ),
          ( "osdep/macosx_events.m",               "cocoa" ),

Modified: trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_common.m-define-constants.diff
===================================================================
--- trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_common.m-define-constants.diff	2015-03-06 23:16:43 UTC (rev 133613)
+++ trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_common.m-define-constants.diff	2015-03-06 23:20:49 UTC (rev 133614)
@@ -1,6 +1,6 @@
---- video/out/cocoa_common.m.old
-+++ video/out/cocoa_common.m
-@@ -52,6 +52,14 @@
+--- video/out/cocoa_common.m.old	2015-03-04 04:53:56.000000000 +0100
++++ video/out/cocoa_common.m	2015-03-04 04:55:08.000000000 +0100
+@@ -51,6 +51,14 @@
  #define cocoa_lock(s)    pthread_mutex_lock(&s->mutex)
  #define cocoa_unlock(s)  pthread_mutex_unlock(&s->mutex)
  
@@ -13,5 +13,5 @@
 +#endif
 +
  static void vo_cocoa_fullscreen(struct vo *vo);
- static void cocoa_change_profile(struct vo *vo, char **store, NSScreen *screen);
  static void cocoa_rm_fs_screen_profile_observer(struct vo *vo);
+ 

Deleted: trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_common.m-use-deprecated-ColorSync-functions.diff
===================================================================
--- trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_common.m-use-deprecated-ColorSync-functions.diff	2015-03-06 23:16:43 UTC (rev 133613)
+++ trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_common.m-use-deprecated-ColorSync-functions.diff	2015-03-06 23:20:49 UTC (rev 133614)
@@ -1,35 +0,0 @@
---- video/out/cocoa_common.m.old
-+++ video/out/cocoa_common.m
-@@ -580,6 +580,8 @@
-     CGDirectDisplayID displayID = (CGDirectDisplayID)
-         [[screen deviceDescription][@"NSScreenNumber"] unsignedLongValue];
- 
-+#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
-+
-     CFUUIDRef uuid = CGDisplayCreateUUIDFromDisplayID(displayID);
-     if (CFGetTypeID(uuid) == CFNullGetTypeID()) {
-         MP_ERR(s, "cannot get display UUID.\n");
-@@ -644,6 +646,23 @@
-    if (!result)
-        MP_ERR(s, "cannot get display profile path.\n");
- 
-+#else // 10.6 and lower
-+
-+    CMProfileRef profile = 0;
-+    CMProfileLocation location;
-+    int error = CMGetProfileByAVID ((CMDisplayIDType) displayID, &profile);
-+    if (!error) {
-+        UInt32 size = sizeof (location);
-+        error = NCMGetProfileLocation (profile, &location, &size);
-+        result = talloc_strdup (vo, location.u.pathLoc.path);
-+        CMCloseProfile (profile);
-+    }
-+    else {
-+        result = talloc_strdup (vo, "/System/Library/ColorSync/Profiles/Generic RGB Profile.icc");
-+    }
-+
-+#endif
-+
- get_icc_profile_path_err_out:
-     CF_RELEASE(device_info);
-     return result;

Modified: trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_events_view.h-remove-NSDraggingDestination-protocol.diff
===================================================================
--- trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_events_view.h-remove-NSDraggingDestination-protocol.diff	2015-03-06 23:16:43 UTC (rev 133613)
+++ trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_events_view.h-remove-NSDraggingDestination-protocol.diff	2015-03-06 23:20:49 UTC (rev 133614)
@@ -1,5 +1,5 @@
---- video/out/cocoa/events_view.h.old
-+++ video/out/cocoa/events_view.h
+--- video/out/cocoa/events_view.h.old	2015-03-04 04:43:55.000000000 +0100
++++ video/out/cocoa/events_view.h	2015-03-04 04:45:38.000000000 +0100
 @@ -18,7 +18,7 @@
  #import <Cocoa/Cocoa.h>
  #import "video/out/cocoa/mpvadapter.h"
@@ -8,4 +8,4 @@
 + at interface MpvEventsView : NSView
  @property(nonatomic, retain) MpvCocoaAdapter *adapter;
  - (void)setFullScreen:(BOOL)willBeFullscreen;
- - (BOOL)canHideCursor;
+ - (void)clear;

Modified: trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_events_view.m-replace-convertPointToBacking-with-userSpaceScaleFactor.diff
===================================================================
--- trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_events_view.m-replace-convertPointToBacking-with-userSpaceScaleFactor.diff	2015-03-06 23:16:43 UTC (rev 133613)
+++ trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_events_view.m-replace-convertPointToBacking-with-userSpaceScaleFactor.diff	2015-03-06 23:20:49 UTC (rev 133614)
@@ -1,6 +1,6 @@
---- video/out/cocoa/events_view.m.old
-+++ video/out/cocoa/events_view.m
-@@ -188,7 +188,9 @@
+--- video/out/cocoa/events_view.m.old	2015-03-04 04:50:51.000000000 +0100
++++ video/out/cocoa/events_view.m	2015-03-04 04:52:11.000000000 +0100
+@@ -202,7 +202,9 @@
  - (NSPoint)convertPointToPixels:(NSPoint)point
  {
      point = [self convertPoint:point fromView:nil];

Modified: trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_events_view.m-replace-convertRectFromScreen-with-convertScreenToBase.diff
===================================================================
--- trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_events_view.m-replace-convertRectFromScreen-with-convertScreenToBase.diff	2015-03-06 23:16:43 UTC (rev 133613)
+++ trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_events_view.m-replace-convertRectFromScreen-with-convertScreenToBase.diff	2015-03-06 23:20:49 UTC (rev 133614)
@@ -1,6 +1,6 @@
---- video/out/cocoa/events_view.m.old
-+++ video/out/cocoa/events_view.m
-@@ -124,7 +124,12 @@
+--- video/out/cocoa/events_view.m.old	2015-03-04 04:46:21.000000000 +0100
++++ video/out/cocoa/events_view.m	2015-03-04 04:48:00.000000000 +0100
+@@ -134,7 +134,12 @@
  - (BOOL)containsMouseLocation
  {
      NSRect vF  = [[self.window screen] visibleFrame];

Modified: trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_video_view.m-replace-convertRectToBacking-with-userSpaceScaleFactor.diff
===================================================================
--- trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_video_view.m-replace-convertRectToBacking-with-userSpaceScaleFactor.diff	2015-03-06 23:16:43 UTC (rev 133613)
+++ trunk/dports/multimedia/mpv/files/patch-video_out_cocoa_video_view.m-replace-convertRectToBacking-with-userSpaceScaleFactor.diff	2015-03-06 23:20:49 UTC (rev 133614)
@@ -1,5 +1,5 @@
---- video/out/cocoa/video_view.m.old
-+++ video/out/cocoa/video_view.m
+--- video/out/cocoa/video_view.m.old	2015-03-04 04:49:08.000000000 +0100
++++ video/out/cocoa/video_view.m	2015-03-04 04:50:15.000000000 +0100
 @@ -38,7 +38,15 @@
  
  - (NSRect)frameInPixels
@@ -16,4 +16,4 @@
 +    return conv_frame;
  }
  
- - (BOOL)canHideCursor
+ 

Modified: trunk/dports/multimedia/mpv/files/patch-video_out_gl_cocoa.c-hardcode-OpenGL-2.diff
===================================================================
--- trunk/dports/multimedia/mpv/files/patch-video_out_gl_cocoa.c-hardcode-OpenGL-2.diff	2015-03-06 23:16:43 UTC (rev 133613)
+++ trunk/dports/multimedia/mpv/files/patch-video_out_gl_cocoa.c-hardcode-OpenGL-2.diff	2015-03-06 23:20:49 UTC (rev 133614)
@@ -1,36 +1,138 @@
---- video/out/gl_cocoa.c.old
-+++ video/out/gl_cocoa.c
-@@ -49,6 +49,8 @@
+Only in mpv-0.8.2/video/out: .gl_common.c.swp
+Only in mpv-0.8.2/video/out: .gl_utils.c.swp
+--- video/out/gl_cocoa.c.old	2015-03-06 20:45:08.000000000 +0100
++++ video/out/gl_cocoa.c	2015-03-06 22:40:39.000000000 +0100
+@@ -60,12 +60,17 @@
+ 
+ static CGLError test_gl_version(struct vo *vo,
+                                 CGLContextObj *ctx,
+-                                CGLPixelFormatObj *pix,
+-                                CGLOpenGLProfile version)
++                                CGLPixelFormatObj *pix
++#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
++                                , CGLOpenGLProfile version
++#endif
++                               )
+ {
+     CGLPixelFormatAttribute attrs[] = {
++#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
+         kCGLPFAOpenGLProfile,
+         (CGLPixelFormatAttribute) version,
++#endif
+         kCGLPFADoubleBuffer,
+         kCGLPFAAccelerated,
+         #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_8
+@@ -103,16 +108,22 @@
      struct cgl_context *p = ctx->priv;
      CGLError err;
  
 +#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
-+
-     CGLOpenGLProfile gl_vers_map[] = {
-         [2] = kCGLOGLPVersion_Legacy,
-         #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_9
-@@ -59,15 +61,24 @@
-         #endif
+     CGLOpenGLProfile gl_versions[] = {
+         kCGLOGLPVersion_3_2_Core,
+         kCGLOGLPVersion_Legacy,
      };
++#endif
  
++#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
+     for (int n = 0; n < MP_ARRAY_SIZE(gl_versions); n++) {
+         err = test_gl_version(ctx->vo, &p->ctx, &p->pix, gl_versions[n]);
+         if (err == kCGLNoError)
+             break;
+     }
++#else
++    err = test_gl_version(ctx->vo, &p->ctx, &p->pix);
 +#endif
-+
-     int gl_major = MPGL_VER_GET_MAJOR(ctx->requested_gl_version);
-+
+ 
+     if (err != kCGLNoError) {
+         MP_FATAL(ctx->vo, "error creating CGL context: %s (%d)\n",
+--- video/out/gl_common.c.old	2015-03-06 20:45:08.000000000 +0100
++++ video/out/gl_common.c	2015-03-06 23:03:33.000000000 +0100
+@@ -376,6 +376,7 @@
+     //       and above.
+ 
+     bool has_legacy = false;
 +#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
-     if (gl_major < 2 || gl_major >= MP_ARRAY_SIZE(gl_vers_map)) {
+     if (gl->version >= 300) {
+         gl->GetStringi = get_fn(fn_ctx, "glGetStringi");
+         gl->GetIntegerv = get_fn(fn_ctx, "glGetIntegerv");
+@@ -396,12 +397,15 @@
+         // includes legacy (except with CONTEXT_FORWARD_COMPATIBLE_BIT_ARB).
+         if (gl->version == 300)
+             has_legacy = true;
+-    } else {
++    } else
 +#else
-+    if (gl_major != 2) {
++    {
+         const char *ext = (char*)gl->GetString(GL_EXTENSIONS);
+         gl->extensions = talloc_asprintf_append(gl->extensions, " %s", ext);
+ 
+         has_legacy = true;
+     }
 +#endif
-         MP_FATAL(ctx->vo, "OpenGL major version %d not supported", gl_major);
-         return false;
-     }
  
-     CGLPixelFormatAttribute attrs[] = {
+     if (gl->es)
+         has_legacy = false;
+--- video/out/gl_common.h.old	2015-03-06 20:45:08.000000000 +0100
++++ video/out/gl_common.h	2015-03-06 22:03:49.000000000 +0100
+@@ -40,7 +40,6 @@
+ #if HAVE_GL_COCOA
+ #define GL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED 1
+ #include <OpenGL/gl.h>
+-#include <OpenGL/gl3.h>
+ #include <OpenGL/glext.h>
+ #else
+ #include <GL/gl.h>
+--- video/out/gl_utils.c.old	2015-03-06 20:45:08.000000000 +0100
++++ video/out/gl_utils.c	2015-03-06 23:31:33.000000000 +0100
+@@ -83,14 +83,20 @@
+         return 2;
+     case GL_RGB:
+     case GL_BGR:
 +#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
-         kCGLPFAOpenGLProfile,
-         (CGLPixelFormatAttribute) gl_vers_map[gl_major],
+     case GL_RGB_INTEGER:
 +#endif
-         kCGLPFADoubleBuffer,
-         kCGLPFAAccelerated,
-         #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_8
+         return 3 * component_size;
+     case GL_RGBA:
+     case GL_BGRA:
++#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
+     case GL_RGBA_INTEGER:
++#endif
+         return 4 * component_size;
+     case GL_RED:
++#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
+     case GL_RED_INTEGER:
++#endif
+         return component_size;
+     case GL_RG:
+     case GL_LUMINANCE_ALPHA:
+--- video/out/gl_video.c.old	2015-03-06 20:45:08.000000000 +0100
++++ video/out/gl_video.c	2015-03-06 23:40:14.000000000 +0100
+@@ -270,10 +270,10 @@
+ };
+ 
+ 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[] = {
+@@ -382,12 +382,8 @@
+                     {"rgb10",  GL_RGB10},
+                     {"rgb10_a2", GL_RGB10_A2},
+                     {"rgb16",  GL_RGB16},
+-                    {"rgb16f", GL_RGB16F},
+-                    {"rgb32f", GL_RGB32F},
+                     {"rgba12", GL_RGBA12},
+-                    {"rgba16", GL_RGBA16},
+-                    {"rgba16f", GL_RGBA16F},
+-                    {"rgba32f", GL_RGBA32F})),
++                    {"rgba16", GL_RGBA16})),
+         OPT_CHOICE_OR_INT("dither-depth", dither_depth, 0, -1, 16,
+                           ({"no", -1}, {"auto", 0})),
+         OPT_CHOICE("dither", dither_algo, 0,

Deleted: trunk/dports/multimedia/mpv/files/patch-video_out_gl_common.h-use-OpenGL-legacy.diff
===================================================================
--- trunk/dports/multimedia/mpv/files/patch-video_out_gl_common.h-use-OpenGL-legacy.diff	2015-03-06 23:16:43 UTC (rev 133613)
+++ trunk/dports/multimedia/mpv/files/patch-video_out_gl_common.h-use-OpenGL-legacy.diff	2015-03-06 23:20:49 UTC (rev 133614)
@@ -1,18 +0,0 @@
---- video/out/gl_common.h.old
-+++ video/out/gl_common.h
-@@ -38,11 +38,11 @@
- #include "video/mp_image.h"
- 
- #if HAVE_GL_COCOA
-+/* Avoid <GL/gl3.h> on OS X. mpv doesn't use any 3.x features and including it causes the compiler
-+ * to not complain about missing functions/errors.
-+ */
-+#define __gl3_h
--#ifdef GL_VERSION_3_0
--#include <OpenGL/gl3.h>
--#else
- #include <OpenGL/gl.h>
--#endif
- #include <OpenGL/glext.h>
- #else
- #include <GL/gl.h>

Modified: trunk/dports/multimedia/mpv/files/patch-waftools_checks_custom.py-disable-libarclite.diff
===================================================================
--- trunk/dports/multimedia/mpv/files/patch-waftools_checks_custom.py-disable-libarclite.diff	2015-03-06 23:16:43 UTC (rev 133613)
+++ trunk/dports/multimedia/mpv/files/patch-waftools_checks_custom.py-disable-libarclite.diff	2015-03-06 23:20:49 UTC (rev 133614)
@@ -1,9 +1,9 @@
---- waftools/checks/custom.py.old
-+++ waftools/checks/custom.py
-@@ -103,7 +103,6 @@
+--- waftools/checks/custom.py.old	2015-03-04 04:17:27.000000000 +0100
++++ waftools/checks/custom.py	2015-03-04 04:40:41.000000000 +0100
+@@ -107,7 +107,6 @@
          fragment         = load_fragment('cocoa.m'),
          compile_filename = 'test.m',
-         framework_name   = ['Cocoa', 'IOKit', 'OpenGL'],
+         framework_name   = ['Cocoa', 'IOKit', 'OpenGL', 'QuartzCore'],
 -        includes         = ctx.srcnode.abspath(),
 -        linkflags        = '-fobjc-arc')
 +        includes         = ctx.srcnode.abspath())

Added: trunk/multimedia/mpv/files/patch-misc-import-CoreVideo.diff
===================================================================
--- trunk/multimedia/mpv/files/patch-misc-import-CoreVideo.diff	                        (rev 0)
+++ trunk/multimedia/mpv/files/patch-misc-import-CoreVideo.diff	2015-03-06 23:20:49 UTC (rev 133614)
@@ -0,0 +1,20 @@
+--- video/out/cocoa_common.m.old	2015-03-06 20:35:32.000000000 +0100
++++ video/out/cocoa_common.m	2015-03-06 20:43:03.000000000 +0100
+@@ -20,6 +20,7 @@
+ #import <Cocoa/Cocoa.h>
+ #import <CoreServices/CoreServices.h> // for CGDisplayHideCursor
+ #import <IOKit/pwr_mgt/IOPMLib.h>
++#import <CoreVideo/CoreVideo.h>
+ 
+ #import "cocoa_common.h"
+ #import "video/out/cocoa/window.h"
+--- waftools/fragments/cocoa.m.old	2015-03-06 20:35:34.000000000 +0100
++++ waftools/fragments/cocoa.m	2015-03-06 20:42:16.000000000 +0100
+@@ -1,6 +1,7 @@
+ #import <CoreServices/CoreServices.h>
+ #import <OpenGL/OpenGL.h>
+ #import <Cocoa/Cocoa.h>
++#import <CoreVideo/CoreVideo.h>
+ 
+ #include "osdep/macosx_compat.h"
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150306/139060db/attachment-0001.html>


More information about the macports-changes mailing list