From c131f1300638b6ffd33646d66caaa806c0dc8abd Mon Sep 17 00:00:00 2001 From: Steven Smith Date: Fri, 7 May 2021 04:40:04 -0700 Subject: silo: add "hzip" and "fzip" variants (#23447) SILO has optional support for compression libraries that require C++ (hzip and fpzip). This patch exposes those options as variants to enable configuration of SILO without the C++ libraries for C applications. hzip and fpzip are enabled by default to preserve current behavior. --- var/spack/repos/builtin/packages/silo/package.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/silo/package.py b/var/spack/repos/builtin/packages/silo/package.py index e4af03f467..b51c7a0822 100644 --- a/var/spack/repos/builtin/packages/silo/package.py +++ b/var/spack/repos/builtin/packages/silo/package.py @@ -30,6 +30,10 @@ class Silo(AutotoolsPackage): description='Compile with MPI Compatibility') variant('hdf5', default=True, description='Use the HDF5 for database') + variant('hzip', default=True, + description='Enable hzip support') + variant('fpzip', default=True, + description='Enable fpzip support') depends_on('mpi', when='+mpi') depends_on('hdf5@:1.10.999', when='@:4.10.2+hdf5') @@ -106,6 +110,8 @@ class Silo(AutotoolsPackage): '--enable-fortran' if '+fortran' in spec else '--disable-fortran', '--enable-silex' if '+silex' in spec else '--disable-silex', '--enable-shared' if '+shared' in spec else '--disable-shared', + '--enable-hzip' if '+hzip' in spec else '--disable-hzip', + '--enable-fpzip' if '+fpzip' in spec else '--disable-fpzip', ] # Do not specify the prefix of zlib if it is in a system directory -- cgit v1.2.3-70-g09d2