summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Rood <jon.rood@nrel.gov>2017-01-15 18:07:44 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2017-01-15 17:07:44 -0800
commitb2f29b855b2af712890584287cf9d61b5b136aba (patch)
treedb2d959082f0f92f33ee2444cccb8639ec8e6355
parente3a631c90ee5538cba419e15b8071f5fd123d629 (diff)
downloadspack-b2f29b855b2af712890584287cf9d61b5b136aba.tar.gz
spack-b2f29b855b2af712890584287cf9d61b5b136aba.tar.bz2
spack-b2f29b855b2af712890584287cf9d61b5b136aba.tar.xz
spack-b2f29b855b2af712890584287cf9d61b5b136aba.zip
Updating BoxLib with the ability to build again. (#2813)
* Updating BoxLib with the ability to build again. * Using Spack MPI compilers directly. * Fixing typo. * Using tarball from github archive for boxlib.
-rw-r--r--var/spack/repos/builtin/packages/boxlib/package.py34
1 files changed, 18 insertions, 16 deletions
diff --git a/var/spack/repos/builtin/packages/boxlib/package.py b/var/spack/repos/builtin/packages/boxlib/package.py
index 4f41aba6c6..8d46014d3b 100644
--- a/var/spack/repos/builtin/packages/boxlib/package.py
+++ b/var/spack/repos/builtin/packages/boxlib/package.py
@@ -25,26 +25,28 @@
from spack import *
-class Boxlib(Package):
+class Boxlib(CMakePackage):
"""BoxLib, a software framework for massively parallel
block-structured adaptive mesh refinement (AMR) codes."""
homepage = "https://ccse.lbl.gov/BoxLib/"
- url = "https://ccse.lbl.gov/pub/Downloads/BoxLib.git"
+ url = "https://github.com/BoxLib-Codes/BoxLib/archive/16.12.2.tar.gz"
- # TODO: figure out how best to version this. No tags in the repo!
- version('master', git='https://ccse.lbl.gov/pub/Downloads/BoxLib.git')
+ version('16.12.2', 'a28d92a5ff3fbbdbbd0a776a59f18526')
depends_on('mpi')
- depends_on('cmake', type='build')
-
- def install(self, spec, prefix):
- args = std_cmake_args
- args += ['-DCCSE_ENABLE_MPI=1',
- '-DCMAKE_C_COMPILER=%s' % which('mpicc'),
- '-DCMAKE_CXX_COMPILER=%s' % which('mpicxx'),
- '-DCMAKE_Fortran_COMPILER=%s' % which('mpif90')]
-
- cmake('.', *args)
- make()
- make("install")
+
+ def cmake_args(self):
+ spec = self.spec
+ options = []
+
+ options.extend([
+ # '-DBL_SPACEDIM=3',
+ '-DENABLE_POSITION_INDEPENDENT_CODE=ON',
+ '-DENABLE_FBASELIB=ON',
+ '-DCMAKE_C_COMPILER=%s' % spec['mpi'].mpicc,
+ '-DCMAKE_CXX_COMPILER=%s' % spec['mpi'].mpicxx,
+ '-DCMAKE_Fortran_COMPILER=%s' % spec['mpi'].mpifc
+ ])
+
+ return options