diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/systemc/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/systemc/package.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/systemc/package.py b/var/spack/repos/builtin/packages/systemc/package.py new file mode 100644 index 0000000000..fdde362bb2 --- /dev/null +++ b/var/spack/repos/builtin/packages/systemc/package.py @@ -0,0 +1,28 @@ +# Copyright 2013-2021 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 Systemc(CMakePackage): + """SystemC: System level modeling, design exploration, performance modeling, + and more.""" + + homepage = "https://www.accellera.org/downloads/standards/systemc" + url = "https://accellera.org/images/downloads/standards/systemc/systemc-2.3.3.tar.gz" + + maintainers = ['nicmcd'] + + version('2.3.3', sha256='5781b9a351e5afedabc37d145e5f7edec08f3fd5de00ffeb8fa1f3086b1f7b3f') + + variant('cxxstd', values=('11', '14', '17', '20'), default='11', + description="C++ standard used during compilation") + + def cmake_args(self): + cxxstd = self.spec.variants['cxxstd'].value + return [ + self.define('CMAKE_CXX_STANDARD', cxxstd), + self.define('CMAKE_CXX_STANDARD_REQUIRED', 'TRUE'), + ] |