[103464] trunk/dports/math/atlas/Portfile

Ryan Schmidt ryandesign at macports.org
Tue Feb 26 21:25:51 PST 2013


On Feb 26, 2013, at 08:35, vince at macports.org wrote:

> Revision: 103464
>          https://trac.macports.org/changeset/103464
> Author:   vince at macports.org
> Date:     2013-02-26 06:35:03 -0800 (Tue, 26 Feb 2013)
> Log Message:
> -----------
> Uses a sysctl to detect the number of processors on the machine and build threaded or non-threaded accordingly. On non-threaded builds, make libtatlas a symlink to libsatlas so that dependencies like qrupdate build correctly without to have to figure out which atlas library is present.
> 
> Modified Paths:
> --------------
>    trunk/dports/math/atlas/Portfile


> +pre-fetch {
> +    # If we run on a mono-processor machine (PPC), then disable threading
> +
> +    if {![catch {sysctl hw.logicalcpu} result] && $result == 1} {
> +    configure.args-append    -t 0
> +    ui_msg "Building sequential only version of atlas."
> +    }
> +}

The build machine is not necessarily the same as the machine that will end up running the code, especially since we have buildbots that make binary packages.

This should be selectable by variant. There should be two mutually-conflicting variants, and which one is default should be selected based on your check above. The buildbots are multiprocessor so they will build the multiprocessor version; if a user has a single CPU then they'll build that on their own machine.




More information about the macports-dev mailing list