summaryrefslogtreecommitdiff
path: root/largepacks/atlas-generic/build.sh
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2016-04-03 00:17:13 -0400
committerJoseph Hunkeler <jhunk@stsci.edu>2016-04-19 11:17:28 -0400
commit25d4d41850ffeb0ba15f60b4760f9f98e6837b5b (patch)
tree20f01a9e236295d8765852d3a65c8c936903da6a /largepacks/atlas-generic/build.sh
parentaacc9ee0d6b4b02d95a7f725d598a6a8a6d0c599 (diff)
downloadastroconda-dev-25d4d41850ffeb0ba15f60b4760f9f98e6837b5b.tar.gz
Move large packages and metapackages into subdirs
Diffstat (limited to 'largepacks/atlas-generic/build.sh')
-rw-r--r--largepacks/atlas-generic/build.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/largepacks/atlas-generic/build.sh b/largepacks/atlas-generic/build.sh
new file mode 100644
index 0000000..ce5d3eb
--- /dev/null
+++ b/largepacks/atlas-generic/build.sh
@@ -0,0 +1,35 @@
+
+
+export LIBTOOL=/usr/bin/libtool
+export OPTIONS=
+
+case "$(uname -s)" in
+Darwin)
+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_TARBALL} \
+"${OPTIONS}"
+
+make LIBTOOL=$LIBTOOL
+make install
+
+popd \ No newline at end of file