aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunk@stsci.edu>2015-12-10 21:24:29 -0500
committerJoseph Hunkeler <jhunk@stsci.edu>2015-12-10 21:24:29 -0500
commit4dd63f2dca47aa6a692c5b2c0c08cb43ecbf105d (patch)
treea1d401a0dd2964c930b10c945e0f2eb775d8570f
parentcf0f962ab74b80d3a30f795ccf007495e5f9f715 (diff)
downloadcbc-recipes-4dd63f2dca47aa6a692c5b2c0c08cb43ecbf105d.tar.gz
More conda-fied build
-rw-r--r--atlas/atlas-generic.ini37
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