From b2f29b855b2af712890584287cf9d61b5b136aba Mon Sep 17 00:00:00 2001 From: Jon Rood Date: Sun, 15 Jan 2017 18:07:44 -0700 Subject: 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. --- var/spack/repos/builtin/packages/boxlib/package.py | 34 ++++++++++++---------- 1 file changed, 18 insertions(+), 16 deletions(-) (limited to 'var') 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 -- cgit v1.2.3-60-g2f50