Ticket #43753: Portfile.patch

File Portfile.patch, 1.8 KB (added by devernay (Frédéric Devernay), 10 years ago)

patch for the existing Portfile

  • Portfile

    old new  
    5050                --disable-silent-rules \
    5151                --with-p11-kit           
    5252
     53# include time.h before config.h, or the standard C functions are never defined
     54patchfiles gnutls-timeh.patch
     55
    5356if {[variant_isset universal]} {
    5457    set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
    5558    set merger_host(i386) i686-apple-${os.platform}${os.major}
    56     set merger_configure_args(x86_64) --build=x86_64-apple-${os.platform}${os.major}
    57     set merger_configure_args(i386) --build=i686-apple-${os.platform}${os.major}
     59    set merger_host(ppc) ppc-apple-${os.platform}${os.major}
     60    set merger_host(ppc64) ppc64-apple-${os.platform}${os.major}
     61    set merger_configure_args(x86_64) "--host=${build_arch}-apple-${os.platform}${os.major} --build=x86_64-apple-${os.platform}${os.major}"
     62    set merger_configure_args(i386) "--host=${build_arch}-apple-${os.platform}${os.major} --build=i686-apple-${os.platform}${os.major}"
     63    set merger_configure_args(ppc) "--host=${build_arch}-apple-${os.platform}${os.major} --build=ppc-apple-${os.platform}${os.major}"
     64    set merger_configure_args(ppc64) "--host=${build_arch}-apple-${os.platform}${os.major} --build=ppc64-apple-${os.platform}${os.major}"
    5865} elseif {${build_arch} eq "i386"} {
    5966    configure.args-append \
    6067        --host=i686-apple-${os.platform}${os.major} \
    6168        --build=i686-apple-${os.platform}${os.major}
    62 } elseif {${build_arch} eq "x86_64"} {
     69} elseif {${build_arch} eq "x86_64" || ${build_arch} eq "ppc64" || ${build_arch} eq "ppc"} {
    6370    configure.args-append \
    6471        --host=${build_arch}-apple-${os.platform}${os.major} \
    6572        --build=${build_arch}-apple-${os.platform}${os.major}