Ticket #45300: patch-Portfile.diff

File patch-Portfile.diff, 842 bytes (added by NicosPavlov, 10 years ago)
  • Portfile

     
    188188}
    189189
    190190platform darwin 9 {
    191     if {[info exists universal_target] && ${universal_target} == "10.4"} {
    192 # Needed if compiling for 10.4 universal on 10.5
    193         post-configure {
    194             reinplace "s|#define HAVE_EXECINFO_H 1||" ${workpath}/build/config-akonadi.h
     191    if {${os.major} < 13} {
     192        patchfiles-append   patch-tests.diff
     193    }
     194    if {${os.major} == 9} {
     195        if {[info exists universal_target] && ${universal_target} == "10.4"} {
     196        # Needed if compiling for 10.4 universal on 10.5
     197            post-configure {
     198                reinplace "s|#define HAVE_EXECINFO_H 1||" ${workpath}/build/config-akonadi.h
     199            }
    195200        }
    196201    }
    197202}