spack/var/spack/repos/builtin/packages/alembic/package.py

37 lines
1.2 KiB
Python
Raw Normal View History

2022-01-13 03:21:41 +08:00
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
2021-04-28 23:03:30 +08:00
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
2021-04-28 23:03:30 +08:00
class Alembic(CMakePackage):
"""Alembic is an open computer graphics interchange
framework. Alembic distills complex, animated scenes into a
non-procedural, application-independent set of baked
geometric results."""
homepage = "https://www.alembic.io"
url = "https://github.com/alembic/alembic/archive/1.7.16.tar.gz"
2021-04-28 23:03:30 +08:00
version("1.7.16", sha256="2529586c89459af34d27a36ab114ad1d43dafd44061e65cfcfc73b7457379e7c")
2021-04-28 23:03:30 +08:00
variant("python", default=False, description="Python support")
variant("hdf5", default=False, description="HDF5 support")
2021-04-28 23:03:30 +08:00
depends_on("cmake@2.8.11:", type="build")
depends_on("openexr@2.2.0:")
depends_on("hdf5@1.8.9:", when="+hdf5")
depends_on("boost@1.55:")
depends_on("zlib")
depends_on("py-ilmbase", when="+python")
2021-04-28 23:03:30 +08:00
def cmake_args(self):
args = [self.define_from_variant("USE_HDF5", "hdf5")]
2021-04-28 23:03:30 +08:00
if self.spec.satisfies("+python") and self.spec["python"].satisfies("@3:"):
args.append("-DPython_ADDITIONAL_VERSIONS=3")
2021-04-28 23:03:30 +08:00
return args