Changeset 144546 for trunk/dports/devel


Ignore:
Timestamp:
Jan 12, 2016, 7:44:19 AM (3 years ago)
Author:
jeremyhu@…
Message:

ld64: Edit dyld headers to work with Tiger's AvailabilityMacros.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/ld64/Portfile

    r144543 r144546  
    355355            }
    356356        }
     357
     358        foreach header [glob ${workpath}/dyld-${dyld_version}/include/{,*/}*.h] {
     359            if {${os.major} < 9} {
     360                reinplace "s|__MAC_10_5|__MAC_NA|g" ${header}
     361                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}
     362                reinplace "s|AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER|__attribute__((unavailable))|g" ${header}
     363
     364                reinplace "s|Availability.h|AvailabilityMacros.h|g" ${header}
     365                reinplace "s|__OSX_AVAILABLE_STARTING(__MAC_NA,.*)|__attribute__((unavailable))|g" ${header}
     366                reinplace "s|__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_NA,.*)|__attribute__((unavailable))|g" ${header}
     367                reinplace "s|__OSX_AVAILABLE_STARTING(__MAC_10_\\(\[^,\]*\\),.*)|AVAILABLE_MAC_OS_X_VERSION_10_\\1_AND_LATER|g" ${header}
     368                reinplace "s|__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_\\(\[^,\]*\\),__MAC_NA,.*)|AVAILABLE_MAC_OS_X_VERSION_10_\\1_AND_LATER|g" ${header}
     369                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}
     370            }
     371        }
    357372    }
    358373
Note: See TracChangeset for help on using the changeset viewer.