summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2015-06-06 16:16:11 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2015-06-06 16:16:19 -0700
commitf29fc5822be81d7bc1776160b4159a6c3a44c831 (patch)
tree43a78c883faf80b00df832a3cfaee950bbdf40ba
parenteb9859ce750def63db8bc436338f94e875276a2e (diff)
downloadspack-f29fc5822be81d7bc1776160b4159a6c3a44c831.tar.gz
spack-f29fc5822be81d7bc1776160b4159a6c3a44c831.tar.bz2
spack-f29fc5822be81d7bc1776160b4159a6c3a44c831.tar.xz
spack-f29fc5822be81d7bc1776160b4159a6c3a44c831.zip
Working boxlib package.
-rw-r--r--var/spack/packages/boxlib/package.py22
1 files changed, 16 insertions, 6 deletions
diff --git a/var/spack/packages/boxlib/package.py b/var/spack/packages/boxlib/package.py
index 3e71a1383d..4f1b71132f 100644
--- a/var/spack/packages/boxlib/package.py
+++ b/var/spack/packages/boxlib/package.py
@@ -1,15 +1,25 @@
from spack import *
class Boxlib(Package):
- """BoxLib, a software framework for massively parallel block-structured adaptive mesh refinement (AMR) codes."""
+ """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";
- version('master', 'https://ccse.lbl.gov/pub/Downloads/BoxLib.git')
+ # TODO: figure out how best to version this. No tags in the repo!
+ version('master', git='https://ccse.lbl.gov/pub/Downloads/BoxLib.git')
+
+ depends_on('mpi')
def install(self, spec, prefix):
- #configure("--prefix=%s" % prefix)
- #make()
- #make("install")
- cd(pwd())
+ 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")
+