fix installation of superlu_dist headers and add it as a dependency to petsc; add a variant to hypre to disable internal superlu

This commit is contained in:
Denis Davydov
2016-03-28 17:49:20 +02:00
parent 5eefca43e7
commit 09e77812b6
3 changed files with 29 additions and 8 deletions

View File

@@ -14,6 +14,8 @@ class Hypre(Package):
# hypre does not know how to build shared libraries on Darwin
variant('shared', default=sys.platform!='darwin', description="Build shared library version (disables static library)")
# SuperluDist have conflicting headers with those in Hypre
variant('internal-superlu', default=True, description="Use internal Superlu routines")
depends_on("mpi")
depends_on("blas")
@@ -38,6 +40,9 @@ def install(self, spec, prefix):
if '+shared' in self.spec:
configure_args.append("--enable-shared")
if '~internal-superlu' in self.spec:
configure_args.append("--without-superlu")
# Hypre's source is staged under ./src so we'll have to manually
# cd into it.
with working_dir("src"):