Skip to content
Permalink
Browse files

qt5-qtmultimedia: build on Mac OS X 10.7

  • Loading branch information
MarcusCalhoun-Lopez committed Dec 28, 2016
1 parent 1c13818 commit ec39a5a3336f1aea6aa0755286c202c3814fe72b
Showing with 23 additions and 0 deletions.
  1. +8 −0 aqua/qt5/Portfile
  2. +15 −0 aqua/qt5/files/patch-firstObject.diff
@@ -1121,6 +1121,14 @@ foreach {module module_info} [array get modules] {
# https://codereview.qt-project.org/#/c/172619/
patchfiles-append patch-qtconn-for-10.12.diff
}

# special case
if { ${module} eq "qtmultimedia" } {
if { [vercmp ${os.version} 12] < 0} {
# see https://trac.macports.org/ticket/52922
patchfiles-append patch-firstObject.diff
}
}
}
}

@@ -0,0 +1,15 @@
--- src/plugins/avfoundation/camera/avfcamerautility.mm.orig 2016-09-12 03:58:51.000000000 -0700
+++ src/plugins/avfoundation/camera/avfcamerautility.mm 2016-12-28 09:44:52.000000000 -0700
@@ -42,6 +42,12 @@
#include <algorithm>
#include <limits>

+// see https://trac.macports.org/ticket/52922
+// from the 10.9 SDK
+@interface NSArray (MacPortsCompatibilityFirstObject)
+- (id)firstObject NS_AVAILABLE(10_6, 4_0);
+@end
+
QT_BEGIN_NAMESPACE

AVFPSRange qt_connection_framerates(AVCaptureConnection *videoConnection)

0 comments on commit ec39a5a

Please sign in to comment.
You can’t perform that action at this time.