diff options
author | Joseph Hunkeler <jhunk@stsci.edu> | 2015-12-10 21:24:29 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunk@stsci.edu> | 2015-12-10 21:24:29 -0500 |
commit | 4dd63f2dca47aa6a692c5b2c0c08cb43ecbf105d (patch) | |
tree | a1d401a0dd2964c930b10c945e0f2eb775d8570f /atlas | |
parent | cf0f962ab74b80d3a30f795ccf007495e5f9f715 (diff) | |
download | cbc-recipes-4dd63f2dca47aa6a692c5b2c0c08cb43ecbf105d.tar.gz |
More conda-fied build
Diffstat (limited to 'atlas')
-rw-r--r-- | atlas/atlas-generic.ini | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/atlas/atlas-generic.ini b/atlas/atlas-generic.ini index 87377c9..db7ebc3 100644 --- a/atlas/atlas-generic.ini +++ b/atlas/atlas-generic.ini @@ -28,22 +28,37 @@ commands : [cbc_build] linux : + # Try to prevent cross-talk. This thing is so picky. + export LIBTOOL=/usr/bin/libtool - export CC=/opt/local/bin/gcc-mp-4.8 - export F77=/opt/local/bin/gfortran-mp-4.8 - wget http://www.netlib.org/lapack/lapack-3.5.0.tgz + export OPTIONS= + + case "$$(uname -s)" in + Darwin) + # MacPorts is a dangling dependency for building this beast + export CC=/opt/local/bin/gcc-mp-4.8 + export F77=/opt/local/bin/gfortran-mp-4.8 + export OPTIONS="-C agc $$CC -C if $$F77 --shared -t 2 -b 64 -V 128 -A 12" + ;; + Linux) + export CC=/usr/bin/gcc + export F77=/usr/bin/gfortran + export OPTIONS="-C agc $$CC -C if $$F77 --shared -t 2 -b 64 -V 128 -A 12" + ;; + *) + ;; + esac + + export LAPACK_VERSION=3.5.0 + export LAPACK_TARBALL=lapack-$${LAPACK_VERSION}.tgz + export LAPACK_URL="http://www.netlib.org/lapack/$${LAPACK_TARBALL}" + wget $${LAPACK_URL} mkdir -p build pushd ./build ../configure --prefix=$$PREFIX \ - --with-netlib-lapack-tarfile=../lapack-3.5.0.tgz \ - -C acg $$CC \ - -C if $$F77 \ - -t 2 \ - -b 64 \ - -V 128 \ - -A 12 \ - --shared + --with-netlib-lapack-tarfile=../$${LAPACK_TARBALL} \ + "$${OPTIONS}" make LIBTOOL=$$LIBTOOL make install |