Ticket #19724: boost.universal.patch

File boost.universal.patch, 1.2 KB (added by harry@…, 15 years ago)
  • Portfile.

    old new  
    2020platforms               darwin
    2121use_parallel_build      yes
    2222
    23 # not autoconf
    24 universal_variant       no
     23# bjam has universal binary support built in, no need to set universal flags
     24configure.universal_args        {}
     25configure.universal_cflags      {}
     26configure.universal_cppflags    {}
     27configure.universal_cxxflags    {}
     28configure.universal_ldflags     {}
    2529
    2630patchfiles              patch-configure.diff
    2731
     
    6973        if { [variant_isset debug] } {
    7074                append bjam_config " debug release"
    7175        }
     76        if { [variant_isset universal] } {
     77            # "architecture=combined" switches on ppc and i386
     78            append bjam_config " architecture=combined"
     79            if { [lsearch ${configure.universal_archs} "ppc64"] >= 0 || [lsearch ${configure.universal_archs} "x86_64"] >=0 } {
     80                # in case of ppc64 or x86_64 architectures, we have to set address-model=32_64
     81                # to enable 64 bit universal binaries
     82                append bjam_config " address-model=32_64"
     83            }
     84        }
    7285        reinplace "s|__MACPORTS_BJAM_CONFIG__|${bjam_config}|" ${worksrcpath}/configure
    7386}
    7487