Changeset 81844
- Timestamp:
- 08/05/11 12:00:22 (4 years ago)
- Location:
- trunk/dports/aqua/qt4-mac
- Files:
-
- 1 added
- 2 edited
-
Portfile (modified) (5 diffs)
-
files/patch-src-plugins-bearer-corewlan-corewlan.pro.diff (modified) (1 diff)
-
files/patch-src-plugins-bearer-corewlan-qcorewlanengine.mm.diff (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/aqua/qt4-mac/Portfile
r81019 r81844 78 78 # location under 10.6, e.g., for some developers doing both iOS and 79 79 # OSX. This patch does not change behavior for 10.4 or 10.5. 80 # Also include fix to use the correct SDK. 80 81 patchfiles-append patch-src-plugins-bearer-corewlan-corewlan.pro.diff 81 82 … … 86 87 patchfiles-append patch-NSDragOperation.diff 87 88 88 global TARGET 89 set TARGET "" 89 # (8) Allow compiling under OS X 10.7 90 patchfiles-append patch-src-corelib-global-qglobal.h.diff 91 92 # (9) fix #includes for OS X 10.7 in Bearer CoreWLAN 93 patchfiles-append patch-src-plugins-bearer-corewlan-qcorewlanengine.mm.diff 94 95 # find a way to specify the OS MINOR version. 96 global MINOR 97 set MINOR "" 98 99 # hopefully the macosx_deployment_target exists and is set by now. if 100 # not, last resort (which is not desirable) is to use the os.version. 101 if {${macosx_deployment_target} == ""} { 102 set MINOR [lindex [split ${macosx_deployment_target} "."] 1] 103 } else { 104 set MINOR [expr [lindex [split ${os.version} "."] 0] - 4] 105 } 90 106 91 107 post-patch { … … 103 119 reinplace "s|@ARCHES@|${ARCHES}|g" ${worksrcpath}/configure 104 120 121 global MINOR 122 105 123 # set MACOSX_DEPLOYMENT_TARGET version in various places. These 106 124 # were all patched in (2) above, and can be easily changed or 107 125 # overridden by the user in a project-local qmake .pro script. 108 set TARGET ${macosx_deployment_target} 109 110 # hopefully the TARGET exists and is set by now. if not, last 111 # resort (which is not desirable) is to use the os.version. 112 if {${TARGET} == ""} { 113 set minor [expr [lindex [split ${os.version} "."] 0] - 4] 114 set TARGET "10.${minor}" 115 } 126 set TARGET "10.${MINOR}" 116 127 foreach fixfile {configure mkspecs/common/mac-g++.conf \ 117 128 mkspecs/common/mac.conf qmake/qmake.pri \ … … 120 131 ${worksrcpath}/${fixfile} 121 132 } 133 134 # Fix OS version on Bearer CoreWLAN QMake file 135 reinplace "s|@MACOSX_VERSION_MINOR@|${MINOR}|g" \ 136 ${worksrcpath}/src/plugins/bearer/corewlan/corewlan.pro 122 137 123 138 # Ensure that correct C/C++ compilers are used. … … 296 311 set SDK ${configure.sdkroot} 297 312 if {${SDK} == ""} { 298 # find a way to specify the SDK to use, based on the TARGET299 # hopefully the TARGET exists and is set by now.300 # last resort: use os.version to get target (bad)301 set minor ""302 global TARGET303 if {${TARGET} == ""} {304 set minor [expr [lindex [split ${os.version} "."] 0] - 4]305 } else {306 set minor [lindex [split ${TARGET} "."] 1]307 }308 313 # set SDK version depending on OS version 314 global MINOR 309 315 set sdk_version "" 310 if {${ minor} == "4"} {316 if {${MINOR} == "4"} { 311 317 # OSX 10.4 requires an additional 'u' 312 318 set sdk_version "10.4u" 313 319 } else { 314 set sdk_version "10.${ minor}"320 set sdk_version "10.${MINOR}" 315 321 } 316 322 set SDK ${developer_dir}/SDKs/MacOSX${sdk_version}.sdk -
trunk/dports/aqua/qt4-mac/files/patch-src-plugins-bearer-corewlan-corewlan.pro.diff
r74982 r81844 1 --- src/plugins/bearer/corewlan/corewlan.pro.orig 2011-0 1-10 11:23:43.000000000 -05002 +++ src/plugins/bearer/corewlan/corewlan.pro 2011-0 1-10 11:29:19.000000000 -05003 @@ -5, 7 +5,7@@1 --- src/plugins/bearer/corewlan/corewlan.pro.orig 2011-08-04 21:23:52.000000000 -0400 2 +++ src/plugins/bearer/corewlan/corewlan.pro 2011-08-04 21:24:31.000000000 -0400 3 @@ -5,9 +5,9 @@ 4 4 LIBS += -framework Foundation -framework SystemConfiguration 5 5 6 6 contains(QT_CONFIG, corewlan) { 7 7 - isEmpty(QMAKE_MAC_SDK)|contains(QMAKE_MAC_SDK, "/Developer/SDKs/MacOSX10.6.sdk") { 8 + isEmpty(QMAKE_MAC_SDK)|contains(QMAKE_MAC_SDK, "@DEVELOPER_DIR@/SDKs/MacOSX10. 6.sdk") {8 + isEmpty(QMAKE_MAC_SDK)|contains(QMAKE_MAC_SDK, "@DEVELOPER_DIR@/SDKs/MacOSX10.@MACOSX_VERSION_MINOR@.sdk") { 9 9 LIBS += -framework CoreWLAN -framework Security 10 DEFINES += MAC_SDK_10_6 10 - DEFINES += MAC_SDK_10_6 11 + DEFINES += MAC_SDK_10_@MACOSX_VERSION_MINOR@ 11 12 } 13 } 14
Note: See TracChangeset
for help on using the changeset viewer.

