[75847] trunk/dports/devel/boost/Portfile

Joshua Root jmr at macports.org
Thu Feb 10 16:16:43 PST 2011


> Revision: 75847
>           http://trac.macports.org/changeset/75847
> Author:   adfernandes at macports.org
> Date:     2011-02-10 10:15:20 -0800 (Thu, 10 Feb 2011)
> Log Message:
> -----------
> devel/boost: honour 'build_arch' variable if not 'universal' variant
> 
> Modified Paths:
> --------------
>     trunk/dports/devel/boost/Portfile
> 
> Modified: trunk/dports/devel/boost/Portfile
> ===================================================================
> --- trunk/dports/devel/boost/Portfile	2011-02-10 17:56:52 UTC (rev 75846)
> +++ trunk/dports/devel/boost/Portfile	2011-02-10 18:15:20 UTC (rev 75847)
> @@ -218,6 +218,27 @@
>      }
>  }
>  
> +if {![variant_isset universal]} {
> +    # Honour 'build_arch', if not universal as per #28327
> +    if {[lsearch ${build_arch} ppc*] != -1} {
> +        build.args-append   architecture=power
> +        if {${os.arch} != "powerpc"} {
> +            build.args-append   --disable-long-double
> +        }
> +    } else {
> +        if {[lsearch ${build_arch} *86*] != -1} {
> +            build.args-append   architecture=x86
> +        } else {
> +            error "Current value of 'build_arch' is not supported."
> +        }
> +    }
> +    if {[lsearch ${build_arch} *64] != -1} {
> +        build.args-append   address-model=64
> +    } else {
> +        build.args-append   address-model=32
> +    }
> +}

'string match' would probably be more fitting than lsearch here.

- Josh


More information about the macports-dev mailing list