diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/moab/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/moab/package.py | 37 |
1 files changed, 14 insertions, 23 deletions
diff --git a/var/spack/repos/builtin/packages/moab/package.py b/var/spack/repos/builtin/packages/moab/package.py index 8e84f63b2c..0f7bad2143 100644 --- a/var/spack/repos/builtin/packages/moab/package.py +++ b/var/spack/repos/builtin/packages/moab/package.py @@ -1,27 +1,8 @@ -############################################################################## -# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. -# Produced at the Lawrence Livermore National Laboratory. +# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. # -# This file is part of Spack. -# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. -# LLNL-CODE-647188 -# -# For details, see https://github.com/spack/spack -# Please also see the NOTICE and LICENSE files for our notice and the LGPL. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License (as -# published by the Free Software Foundation) version 2.1, February 1999. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and -# conditions of the GNU Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -############################################################################## +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + from spack import * @@ -60,6 +41,7 @@ class Moab(AutotoolsPackage): variant('irel', default=False, description='Enable irel interface') variant('fbigeom', default=False, description='Enable fbigeom interface') variant('coupler', default=True, description='Enable mbcoupler tool') + variant('dagmc', default=False, description='Enable dagmc tool') variant("debug", default=False, description='enable debug symbols') variant('shared', default=False, @@ -80,6 +62,7 @@ class Moab(AutotoolsPackage): # depends_on('vtk', when='+vtk') depends_on('blas') + depends_on('lapack') depends_on('mpi', when='+mpi') depends_on('hdf5', when='+hdf5') depends_on('hdf5+mpi', when='+hdf5+mpi') @@ -124,6 +107,9 @@ class Moab(AutotoolsPackage): # else: # options.append('--without-mpi') + options.append('--with-blas=%s' % spec['blas'].libs.ld_flags) + options.append('--with-lapack=%s' % spec['lapack'].libs.ld_flags) + if '+hdf5' in spec: options.append('--with-hdf5=%s' % spec['hdf5'].prefix) else: @@ -158,6 +144,11 @@ class Moab(AutotoolsPackage): else: options.append('--disable-mbcoupler') + if '+dagmc' in spec: + options.append('--enable-dagmc') + else: + options.append('--disable-dagmc') + if '+metis' in spec: options.append('--with-metis=%s' % spec['metis'].prefix) else: |