diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/zlib-ng/package.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/zlib-ng/package.py b/var/spack/repos/builtin/packages/zlib-ng/package.py new file mode 100644 index 0000000000..da60c4d697 --- /dev/null +++ b/var/spack/repos/builtin/packages/zlib-ng/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 ZlibNg(CMakePackage): + """zlib replacement with optimizations for next generation systems.""" + + homepage = "https://github.com/zlib-ng/zlib-ng" + url = "https://github.com/zlib-ng/zlib-ng/archive/2.0.0.tar.gz" + + version('2.0.0', sha256='86993903527d9b12fc543335c19c1d33a93797b3d4d37648b5addae83679ecd8') + + variant('compat', default=False, description='Enable compatibility API') + variant('opt', default=True, description='Enable optimizations') + + depends_on('cmake@3.5.1:', type='build') + + def cmake_args(self): + args = [ + self.define_from_variant('ZLIB_COMPAT', 'compat'), + self.define_from_variant('WITH_OPTIM', 'opt'), + ] + + return args |