pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/qt5-qtbase x11/qt5-qtbase: fix compile macosx < 10.13



details:   https://anonhg.NetBSD.org/pkgsrc/rev/37f1f3f97c78
branches:  trunk
changeset: 406507:37f1f3f97c78
user:      dbj <dbj%pkgsrc.org@localhost>
date:      Tue Dec 24 06:20:41 2019 +0000

description:
x11/qt5-qtbase: fix compile macosx < 10.13

define kIOSurfaceSuccess if it's not already defined

diffstat:

 x11/qt5-qtbase/distinfo                                                              |   3 +-
 x11/qt5-qtbase/patches/patch-src_plugins_platforms_cocoa_qiosurfacegraphicsbuffer.mm |  19 ++++++++++
 2 files changed, 21 insertions(+), 1 deletions(-)

diffs (40 lines):

diff -r c963a9e2619c -r 37f1f3f97c78 x11/qt5-qtbase/distinfo
--- a/x11/qt5-qtbase/distinfo   Tue Dec 24 06:00:37 2019 +0000
+++ b/x11/qt5-qtbase/distinfo   Tue Dec 24 06:20:41 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.54 2019/11/05 14:58:43 adam Exp $
+$NetBSD: distinfo,v 1.55 2019/12/24 06:20:41 dbj Exp $
 
 SHA1 (qtbase-everywhere-src-5.13.2.tar.xz) = 3e073387a08599641a154de758f729d47db8986f
 RMD160 (qtbase-everywhere-src-5.13.2.tar.xz) = 94749bf68e78cf3e3fa84a8df73910b501869293
@@ -21,6 +21,7 @@
 SHA1 (patch-src_network_kernel_qnetworkinterface__unix.cpp) = 2c5569eb2ba19999eb62e4fdb54f347c88f6e6a5
 SHA1 (patch-src_openglextensions_openglextensions.pro) = 575d31c3a48f36d82dc1f342078e636f4c25e33f
 SHA1 (patch-src_platformsupport_platformsupport.pro) = 201276e8e990b1c7668a8852ef0390c8a662f618
+SHA1 (patch-src_plugins_platforms_cocoa_qiosurfacegraphicsbuffer.mm) = 01afb2aef1d14370308c897c1d077b05c5e3f0a9
 SHA1 (patch-src_plugins_platforms_xcb_qxcbatom.cpp) = abbd0b04b881666e82f45adc18e49aafdb43d4be
 SHA1 (patch-src_plugins_platforms_xcb_qxcbconnection__basic.h) = 965338ca06d930a1e2261ea6312592607521e66c
 SHA1 (patch-src_tools_moc_main.cpp) = ebdddd657ba1c24657a9ca5624907e31a5d0c8bb
diff -r c963a9e2619c -r 37f1f3f97c78 x11/qt5-qtbase/patches/patch-src_plugins_platforms_cocoa_qiosurfacegraphicsbuffer.mm
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/qt5-qtbase/patches/patch-src_plugins_platforms_cocoa_qiosurfacegraphicsbuffer.mm      Tue Dec 24 06:20:41 2019 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-src_plugins_platforms_cocoa_qiosurfacegraphicsbuffer.mm,v 1.1 2019/12/24 06:20:42 dbj Exp $
+
+Fix Darwin build on builds before macosx 10.13
+
+--- src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.mm.orig       2019-06-13 04:18:18.000000000 +0000
++++ src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.mm
+@@ -45,6 +45,12 @@
+ #include <CoreGraphics/CoreGraphics.h>
+ #include <IOSurface/IOSurface.h>
+ 
++// kIOReturnSuccess is only available on 10.13 and above
++// however, IOSurfaceLock has been around longer
++#ifndef kIOSurfaceSuccess
++#define kIOSurfaceSuccess kIOReturnSuccess
++#endif
++
+ // CGColorSpaceCopyPropertyList is available on 10.12 and above,
+ // but was only added in the 10.14 SDK, so declare it just in case.
+ extern "C" CFPropertyListRef CGColorSpaceCopyPropertyList(CGColorSpaceRef space);



Home | Main Index | Thread Index | Old Index