diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/datatransferkit/package.py | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/datatransferkit/package.py b/var/spack/repos/builtin/packages/datatransferkit/package.py new file mode 100644 index 0000000000..959d5b5093 --- /dev/null +++ b/var/spack/repos/builtin/packages/datatransferkit/package.py @@ -0,0 +1,46 @@ +# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class Datatransferkit(CMakePackage): + """DataTransferKit is an open-source software library of + parallel solution transfer services for multiphysics simulations""" + + homepage = "https://datatransferkit.readthedoc.io" + url = "https://github.com/ORNL-CEES/DataTransferKit/archive/3.1-rc1.tar.gz" + git = "https://github.com/ORNL-CEES/DataTransferKit.git" + + maintainers = ['Rombur'] + + version('master', branch='master', submodules=True) + + variant('openmp', default=False, description='enable OpenMP backend') + variant('serial', default=True, description='enable Serial backend (default)') + variant('shared', default=True, + description='enable the build of shared lib') + + depends_on('cmake', type='build') + depends_on('trilinos@develop+intrepid2+shards~dtk', when='+serial') + depends_on('trilinos@develop+intrepid2+shards+openmp~dtk', when='+openmp') + + def cmake_args(self): + spec = self.spec + + options = [ + '-DBUILD_SHARED_LIBS:BOOL=%s' % ( + 'ON' if '+shared' in spec else 'OFF'), + '-DDataTransferKit_ENABLE_DataTransferKit=ON', + '-DDataTransferKit_ENABLE_TESTS=OFF', + '-DDataTransferKit_ENABLE_EXAMPLES=OFF', + '-DCMAKE_CXX_EXTENSIONS=OFF', + '-DCMAKE_CXX_STANDARD=14', + ] + + if '+openmp' in spec: + options.append('-DDataTransferKit_ENABLE_OpenMP=ON') + + return options |