New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 81844


Ignore:
Timestamp:
08/05/11 12:00:22 (4 years ago)
Author:
michaelld@…
Message:

qt4-mac: hopefully addresses tickets #30346 and #29141. Patch CoreWLan files to use the correct SDK and version (as either provided by the user, or the default for the given OS version); patch the MM file to work under 10.7.

Location:
trunk/dports/aqua/qt4-mac
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/aqua/qt4-mac/Portfile

    r81019 r81844  
    7878# location under 10.6, e.g., for some developers doing both iOS and 
    7979# OSX.  This patch does not change behavior for 10.4 or 10.5. 
     80# Also include fix to use the correct SDK. 
    8081patchfiles-append   patch-src-plugins-bearer-corewlan-corewlan.pro.diff 
    8182 
     
    8687patchfiles-append   patch-NSDragOperation.diff 
    8788 
    88 global TARGET 
    89 set TARGET "" 
     89# (8) Allow compiling under OS X 10.7 
     90patchfiles-append   patch-src-corelib-global-qglobal.h.diff 
     91 
     92# (9) fix #includes for OS X 10.7 in Bearer CoreWLAN 
     93patchfiles-append   patch-src-plugins-bearer-corewlan-qcorewlanengine.mm.diff 
     94 
     95# find a way to specify the OS MINOR version. 
     96global MINOR 
     97set 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. 
     101if {${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} 
    90106 
    91107post-patch { 
     
    103119    reinplace "s|@ARCHES@|${ARCHES}|g" ${worksrcpath}/configure 
    104120 
     121    global MINOR 
     122 
    105123    # set MACOSX_DEPLOYMENT_TARGET version in various places.  These 
    106124    # were all patched in (2) above, and can be easily changed or 
    107125    # 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}" 
    116127    foreach fixfile {configure mkspecs/common/mac-g++.conf \ 
    117128                     mkspecs/common/mac.conf qmake/qmake.pri \ 
     
    120131            ${worksrcpath}/${fixfile} 
    121132    } 
     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 
    122137 
    123138    # Ensure that correct C/C++ compilers are used. 
     
    296311        set SDK ${configure.sdkroot} 
    297312        if {${SDK} == ""} { 
    298             # find a way to specify the SDK to use, based on the TARGET 
    299             # hopefully the TARGET exists and is set by now. 
    300             # last resort: use os.version to get target (bad) 
    301             set minor "" 
    302             global TARGET 
    303             if {${TARGET} == ""} { 
    304                 set minor [expr [lindex [split ${os.version} "."] 0] - 4] 
    305             } else { 
    306                 set minor [lindex [split ${TARGET} "."] 1] 
    307             } 
    308313            # set SDK version depending on OS version 
     314            global MINOR 
    309315            set sdk_version "" 
    310             if {${minor} == "4"} { 
     316            if {${MINOR} == "4"} { 
    311317                # OSX 10.4 requires an additional 'u' 
    312318                set sdk_version "10.4u" 
    313319            } else { 
    314                 set sdk_version "10.${minor}" 
     320                set sdk_version "10.${MINOR}" 
    315321            } 
    316322            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-01-10 11:23:43.000000000 -0500 
    2 +++ src/plugins/bearer/corewlan/corewlan.pro    2011-01-10 11:29:19.000000000 -0500 
    3 @@ -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 @@ 
    44 LIBS += -framework Foundation -framework SystemConfiguration 
    55  
    66 contains(QT_CONFIG, corewlan) { 
    77-    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") { 
    99          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@ 
    1112     } 
     13 } 
     14  
Note: See TracChangeset for help on using the changeset viewer.