Make blas a virtual dependency, default netlib-blas.
This commit is contained in:
parent
26b9592780
commit
0570660d81
@ -14,6 +14,10 @@ class Atlas(Package):
|
|||||||
homepage = "http://math-atlas.sourceforge.net/"
|
homepage = "http://math-atlas.sourceforge.net/"
|
||||||
url = "http://downloads.sourceforge.net/project/math-atlas/Stable/3.10.2/atlas3.10.2.tar.bz2"
|
url = "http://downloads.sourceforge.net/project/math-atlas/Stable/3.10.2/atlas3.10.2.tar.bz2"
|
||||||
|
|
||||||
|
# TODO: make this provide BLAS once we have the ability to prefer dependencies.
|
||||||
|
# TODO: until then netlib-blas will be the default (and only) blas
|
||||||
|
# provides('blas')
|
||||||
|
|
||||||
version('3.10.2', 'a4e21f343dec8f22e7415e339f09f6da')
|
version('3.10.2', 'a4e21f343dec8f22e7415e339f09f6da')
|
||||||
|
|
||||||
def patch(self):
|
def patch(self):
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
from spack import *
|
|
||||||
import os
|
|
||||||
|
|
||||||
class Blas(Package):
|
|
||||||
"""The BLAS (Basic Linear Algebra Subprograms) are routines that provide standard
|
|
||||||
building blocks for performing basic vector and matrix operations."""
|
|
||||||
|
|
||||||
homepage = "http://www.netlib.org/blas/"
|
|
||||||
|
|
||||||
version('unversioned', '5e99e975f7a1e3ea6abcad7c6e7e42e6',
|
|
||||||
url='http://www.netlib.org/blas/blas.tgz')
|
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
|
||||||
make()
|
|
||||||
mkdirp('%s' % prefix.lib) # Create the lib dir inside the install dir.
|
|
||||||
move('./blas_LINUX.a', '%s/libblas.a' % prefix.lib) # Rename the generated lib file to libblas.a
|
|
||||||
|
|
@ -24,5 +24,6 @@ def install(self, spec, prefix):
|
|||||||
mkdirp(prefix.lib)
|
mkdirp(prefix.lib)
|
||||||
install('librefblas.a', prefix.lib)
|
install('librefblas.a', prefix.lib)
|
||||||
|
|
||||||
# Blas virtual package should provide blas.a
|
# Blas virtual package should provide blas.a and libblas.a
|
||||||
symlink(prefix.lib + '/librefblas.a', prefix.lib + '/blas.a')
|
symlink(prefix.lib + '/librefblas.a', prefix.lib + '/blas.a')
|
||||||
|
symlink(prefix.lib + '/librefblas.a', prefix.lib + '/libblas.a')
|
||||||
|
Loading…
Reference in New Issue
Block a user