blob: 4b081a988d3804444c3c5b859bd825f829ef9701 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 2013-2024 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.package import *
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"
license("BSD-3-Clause")
version("1.8.5", sha256="180a12f08d391cd89f021f279dbe3b5423b1db751a9898540c8059a45825c2e9")
version("1.7.16", sha256="2529586c89459af34d27a36ab114ad1d43dafd44061e65cfcfc73b7457379e7c")
variant("python", default=False, description="Python support")
variant("hdf5", default=False, description="HDF5 support")
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-api")
depends_on("py-ilmbase", when="+python")
def cmake_args(self):
args = [self.define_from_variant("USE_HDF5", "hdf5")]
if self.spec.satisfies("+python") and self.spec["python"].satisfies("@3:"):
args.append("-DPython_ADDITIONAL_VERSIONS=3")
return args
|