summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2015-11-24 00:52:48 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2015-11-24 00:52:48 -0800
commite2412e3f21150f3f382c780775cf8e3e1e3cf15a (patch)
tree1fbc60dd5c388418b49927cd825cd0821e066398 /var
parent58d497ab7a9d595e4cd3c683b0f0cc1d4aedbf4f (diff)
parent1d90d98e406d280e634b168bbea919ab0f764a48 (diff)
downloadspack-e2412e3f21150f3f382c780775cf8e3e1e3cf15a.tar.gz
spack-e2412e3f21150f3f382c780775cf8e3e1e3cf15a.tar.bz2
spack-e2412e3f21150f3f382c780775cf8e3e1e3cf15a.tar.xz
spack-e2412e3f21150f3f382c780775cf8e3e1e3cf15a.zip
Merge branch 'eschnett-openblas' into develop
Diffstat (limited to 'var')
-rw-r--r--var/spack/packages/openblas/package.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/var/spack/packages/openblas/package.py b/var/spack/packages/openblas/package.py
new file mode 100644
index 0000000000..e01467c05a
--- /dev/null
+++ b/var/spack/packages/openblas/package.py
@@ -0,0 +1,21 @@
+from spack import *
+
+class Openblas(Package):
+ """OpenBLAS: An optimized BLAS library"""
+ homepage = "http://www.openblas.net"
+ url = "http://github.com/xianyi/OpenBLAS/archive/v0.2.15.tar.gz"
+
+ version('0.2.15', 'b1190f3d3471685f17cfd1ec1d252ac9')
+
+ # virtual dependency
+ provides('blas')
+ provides('lapack')
+
+ def install(self, spec, prefix):
+ make('libs', 'netlib', 'shared', 'CC=cc', 'FC=f77')
+ make('install', "PREFIX='%s'" % prefix)
+
+ # Blas virtual package should provide blas.a and libblas.a
+ with working_dir(prefix.lib):
+ symlink('libopenblas.a', 'blas.a')
+ symlink('libopenblas.a', 'libblas.a')