Ticket #43753: Portfile-gnutls.diff

File Portfile-gnutls.diff, 2.5 KB (added by Schamschula (Marius Schamschula), 10 years ago)
  • Portfile

    old new  
    55PortGroup  muniversal 1.0
    66
    77name            gnutls
    8 version         3.1.22
     8version         3.3.2
    99set branch      [join [lrange [split ${version} .] 0 1] .]
    1010categories      devel security
    1111# yes, some of the libs are GPL only
     
    2323
    2424master_sites    ftp://ftp.gnutls.org/gcrypt/gnutls/v${branch}/
    2525
    26 checksums       md5     dbce77e502a5643961d3683b6e8f3bd5 \
    27                 rmd160  e2f229dc28cb3c6aafe9064d9b043f7fdfcdc81f \
    28                 sha256  ef1aedf4118f2f7c75c1a13094ec70cdff92cb724d0413333b4079ea492b9dce
     26checksums       rmd160  0ed3cdc2fa95e28e44f949ccd0e0d3082835a063 \
     27                sha256  133a630771835718a882ae595eec1ad1e852bddd95c9d561442400fbe25eb776
    2928
    3029use_xz          yes
    3130
     
    5049                --disable-silent-rules \
    5150                --with-p11-kit           
    5251
     52# include time.h before config.h, or the standard C functions are never defined
     53patchfiles gnutls-timeh.patch
     54
    5355if {[variant_isset universal]} {
    5456    set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
    5557    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}
     58    set merger_host(ppc) ppc-apple-${os.platform}${os.major}
     59    set merger_host(ppc64) ppc64-apple-${os.platform}${os.major}
     60    set merger_configure_args(x86_64) "--host=${build_arch}-apple-${os.platform}${os.major} --build=x86_64-apple-${os.platform}${os.major}"
     61    set merger_configure_args(i386) "--host=${build_arch}-apple-${os.platform}${os.major} --build=i686-apple-${os.platform}${os.major}"
     62    set merger_configure_args(ppc) "--host=${build_arch}-apple-${os.platform}${os.major} --build=ppc-apple-${os.platform}${os.major}"
     63    set merger_configure_args(ppc64) "--host=${build_arch}-apple-${os.platform}${os.major} --build=ppc64-apple-${os.platform}${os.major}"
    5864} elseif {${build_arch} eq "i386"} {
    5965    configure.args-append \
    6066        --host=i686-apple-${os.platform}${os.major} \
    6167        --build=i686-apple-${os.platform}${os.major}
    62 } elseif {${build_arch} eq "x86_64"} {
     68} elseif {${build_arch} eq "x86_64" || ${build_arch} eq "ppc64" || ${build_arch} eq "ppc"} {
    6369    configure.args-append \
    6470        --host=${build_arch}-apple-${os.platform}${os.major} \
    6571        --build=${build_arch}-apple-${os.platform}${os.major}