Ticket #23944: Portfile.diff

File Portfile.diff, 853 bytes (added by raphael-st (Raphael Straub), 15 years ago)
  • Portfile

    old new  
    3131universal_variant   no
    3232build.target        tbb tbbmalloc
    3333
     34patchfiles          patch-macos.inc.diff \
     35                    patch-macos.gcc.inc.diff
     36platform darwin powerpc {
     37    if {${build_arch} eq "ppc"} {
     38        patchfiles-append patch-mac32-tbb-export.def.diff
     39    }
     40}
     41
    3442configure {
    35     if {${build_arch} eq "i386"} {
    36         set arch_flag intel32
    37     } elseif {${build_arch} eq "x86_64"} {
    38         set arch_flag intel64
     43    switch ${build_arch} {
     44        "i386"   { set arch_flag intel32 }
     45        "x86_64" { set arch_flag intel64 }
     46        "ppc"    { set arch_flag ppc }
     47        "ppc64"  { set arch_flag ppc64 }
    3948    }
    4049    build.env-append    arch=${arch_flag}
    4150    test.env-append     arch=${arch_flag}