Ticket #39635: muniversal-botan-patch.diff

File muniversal-botan-patch.diff, 1.2 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 11 years ago)
  • Portfile

    old new  
    11# $Id: Portfile 106660 2013-06-03 20:52:10Z raimue@macports.org $
    22
    33PortSystem 1.0
     4PortGroup muniversal 1.0
    45
    56name                botan
    67version             1.10.5
     
    3435
    3536platform darwin { configure.args-append --os=darwin }
    3637
     38if {![variant_isset universal]} {
    3739if {[info exists build_arch] && ${os.platform} == "darwin"} {
    3840    if {(${build_arch} == "i386")} {
    3941        configure.args-append --cpu=ia32
     
    5153} else {
    5254    build.args CXX="${configure.cxx}"
    5355}
     56} else {
     57    # botan way of setting cpu type in build phase
     58    array set merger_configure_args {
     59        ppc     --cpu=ppc
     60        i386    --cpu=ia32
     61        ppc64   --cpu=ppc64
     62        x86_64  --cpu=amd64
     63    }
     64
     65    # the arch flag is lost in the build phase, so put it back
     66    foreach arch ${configure.universal_archs} {
     67        lappend merger_build_args(${arch}) CXX='${configure.cxx} -arch ${arch}'
     68    }
     69}
    5470
    55 universal_variant   no
     71# configure.py rejects this argument
     72configure.universal_args-delete --disable-dependency-tracking
    5673
    5774livecheck.regex     "(?i)<title>botan (1.*.*)</title>"