p4est: switch to AutotoolsPackage (#2839)
This commit is contained in:
parent
061076aea9
commit
190a5b575c
1 changed files with 3 additions and 10 deletions
|
@ -25,7 +25,7 @@
|
|||
from spack import *
|
||||
|
||||
|
||||
class P4est(Package):
|
||||
class P4est(AutotoolsPackage):
|
||||
"""Dynamic management of a collection (a forest) of adaptive octrees in
|
||||
parallel"""
|
||||
homepage = "http://www.p4est.org"
|
||||
|
@ -42,8 +42,8 @@ class P4est(Package):
|
|||
depends_on('mpi')
|
||||
depends_on('zlib')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
options = [
|
||||
def configure_args(self):
|
||||
return [
|
||||
'--enable-mpi',
|
||||
'--enable-shared',
|
||||
'--disable-vtk-binary',
|
||||
|
@ -55,10 +55,3 @@ def install(self, spec, prefix):
|
|||
'FC=%s' % self.spec['mpi'].mpifc,
|
||||
'F77=%s' % self.spec['mpi'].mpif77
|
||||
]
|
||||
|
||||
configure('--prefix=%s' % prefix, *options)
|
||||
|
||||
make()
|
||||
if self.run_tests:
|
||||
make("check")
|
||||
make("install")
|
||||
|
|
Loading…
Reference in a new issue