Changeset 92347


Ignore:
Timestamp:
Apr 25, 2012, 5:43:49 PM (5 years ago)
Author:
jeremyhu@…
Message:

dyld-headers: Update our availabilty macro recipe to match changes made to libunwind-headers. No change in installed files. (#34211)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/dyld-headers/Portfile

    r92211 r92347  
    2828    foreach header [glob ${worksrcpath}/include/{,*/}*.h] {
    2929        if {${os.major} < 11} {
    30             reinplace "s|__MAC_10_7|1070|g" ${header}
     30            reinplace "s|__MAC_10_7|__MAC_NA|g" ${header}
    3131            reinplace "s|AVAILABLE_MAC_OS_X_VERSION_10_\\(.\\)_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7|AVAILABLE_MAC_OS_X_VERSION_10_\\1_AND_LATER|" ${header}
    3232            reinplace "s|AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER|__attribute__((unavailable))|g" ${header}
    3333        }
    3434        if {${os.major} < 10} {
    35             reinplace "s|__MAC_10_6|1060|g" ${header}
     35            reinplace "s|__MAC_10_6|__MAC_NA|g" ${header}
    3636            reinplace "s|AVAILABLE_MAC_OS_X_VERSION_10_\\(.\\)_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6|AVAILABLE_MAC_OS_X_VERSION_10_\\1_AND_LATER|" ${header}
    3737            reinplace "s|AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER|__attribute__((unavailable))|g" ${header}
    3838        }
    3939        if {${os.major} < 9} {
    40             reinplace "s|__MAC_10_5|1050|g" ${header}
     40            reinplace "s|__MAC_10_5|__MAC_NA|g" ${header}
    4141            reinplace "s|AVAILABLE_MAC_OS_X_VERSION_10_\\(.\\)_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5|AVAILABLE_MAC_OS_X_VERSION_10_\\1_AND_LATER|" ${header}
    4242            reinplace "s|AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER|__attribute__((unavailable))|g" ${header}
    4343
    4444            reinplace "s|Availability.h|AvailabilityMacros.h|g" ${header}
    45             reinplace "s|__OSX_AVAILABLE_STARTING(10.*)|__attribute__((unavailable))|g" ${header}
    46             reinplace "s|__OSX_AVAILABLE_BUT_DEPRECATED(10.*)|__attribute__((unavailable))|g" ${header}
     45            reinplace "s|__OSX_AVAILABLE_STARTING(__MAC_NA)|__attribute__((unavailable))|g" ${header}
     46            reinplace "s|__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_NA)|__attribute__((unavailable))|g" ${header}
    4747            reinplace "s|__OSX_AVAILABLE_STARTING(__MAC_10_\\(\[^,\]*\\),.*)|AVAILABLE_MAC_OS_X_VERSION_10_\\1_AND_LATER|g" ${header}
    48             reinplace "s|__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_\\(\[^,\]*\\),10.*)|AVAILABLE_MAC_OS_X_VERSION_10_\\1_AND_LATER|g" ${header}
     48            reinplace "s|__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_\\(\[^,\]*\\),__MAC_NA,.*)|AVAILABLE_MAC_OS_X_VERSION_10_\\1_AND_LATER|g" ${header}
    4949            reinplace "s|__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_\\(\[^,\]*\\),__MAC_10_\\(\[^,\]*\\),.*)|AVAILABLE_MAC_OS_X_VERSION_10_\\1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_\\2|g" ${header}
    5050        }
Note: See TracChangeset for help on using the changeset viewer.