Ticket #15496: llvm-universal.diff

File llvm-universal.diff, 1010 bytes (added by ryandesign (Ryan Carsten Schmidt), 15 years ago)

in progress attempt to make llvm universal

  • Portfile

     
    11# $Id$
    22
    33PortSystem 1.0
     4PortGroup               muniversal 1.0
    45
    56name                    llvm
    67version                 2.6
     
    2223
    2324depends_lib             path:bin/perl:perl5
    2425
    25 universal_variant       no
    26 
    2726configure.dir           ${workpath}/build
    2827build.dir               ${configure.dir}
    2928destroot.dir            ${configure.dir}
     
    4241                        --enable-bindings=none \
    4342                        --disable-assertions
    4443
    45 if {[info exists build_arch] && ${os.platform} == "darwin"} {
     44if {[variant_isset universal]} {
     45    foreach arch ${configure.universal_archs} {
     46        set merger_configure_args(${arch}) --build=${arch}-apple-darwin${os.major}
     47    }
     48} elseif {[info exists build_arch] && ${os.platform} == "darwin"} {
    4649    configure.args-append --build=${build_arch}-apple-darwin${os.major}
    4750}
    4851