summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeat Reichenbach <44111292+beatreichenbach@users.noreply.github.com>2024-09-27 11:21:17 -0700
committerGitHub <noreply@github.com>2024-09-27 20:21:17 +0200
commitcd5c85ba130dfe0e8a9612059219d557e078fd8d (patch)
tree2032063df04bfb23b561ad06e8b78a223663c949
parentcdba31280b7139fe2ba9c65942116a26aa55b90e (diff)
downloadspack-cd5c85ba130dfe0e8a9612059219d557e078fd8d.tar.gz
spack-cd5c85ba130dfe0e8a9612059219d557e078fd8d.tar.bz2
spack-cd5c85ba130dfe0e8a9612059219d557e078fd8d.tar.xz
spack-cd5c85ba130dfe0e8a9612059219d557e078fd8d.zip
openimageio: update to v2.5.15.0, old versions not buildable anymore (#46045)
Co-authored-by: Bernhard Kaindl <bernhardkaindl7@gmail.com>
-rw-r--r--var/spack/repos/builtin/packages/openimageio/package.py33
1 files changed, 15 insertions, 18 deletions
diff --git a/var/spack/repos/builtin/packages/openimageio/package.py b/var/spack/repos/builtin/packages/openimageio/package.py
index 1733210fc1..4f03b0df35 100644
--- a/var/spack/repos/builtin/packages/openimageio/package.py
+++ b/var/spack/repos/builtin/packages/openimageio/package.py
@@ -4,34 +4,28 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
-from spack.pkg.builtin.boost import Boost
class Openimageio(CMakePackage):
- """OpenImageIO is a library for reading and writing images, and a bunch of
- related classes, utilities, and applications."""
+ """Reading, writing, and processing images in a wide variety of file formats, using
+ a format-agnostic API, aimed at VFX applications."""
- homepage = "https://www.openimageio.org"
- url = "https://github.com/OpenImageIO/oiio/archive/Release-1.8.15.tar.gz"
+ homepage = "https://openimageio.readthedocs.io"
+ git = "https://github.com/AcademySoftwareFoundation/OpenImageIO"
+ url = "https://github.com/AcademySoftwareFoundation/OpenImageIO/archive/refs/tags/v2.5.14.0.tar.gz"
license("Apache-2.0")
- version("2.2.7.0", sha256="857ac83798d6d2bda5d4d11a90618ff19486da2e5a4c4ff022c5976b5746fe8c")
- version("1.8.15", sha256="4d5b4ed3f2daaed69989f53c0f9364dd87c82dc0a09807b5b6e9008e2426e86f")
+ version("2.5.15.0", sha256="7779ef2c3d03c5ed95e13ff292de85c3f8cee301cd46baad0d2dc83c93bfe85c")
- depends_on("cxx", type="build") # generated
+ depends_on("cxx", type="build")
# Core dependencies
depends_on("cmake@3.2.2:", type="build")
- depends_on("boost@1.53:", type=("build", "link"))
-
- # TODO: replace this with an explicit list of components of Boost,
- # for instance depends_on('boost +filesystem')
- # See https://github.com/spack/spack/pull/22303 for reference
- depends_on(Boost.with_default_variants, type=("build", "link"))
- depends_on("libtiff@4.0:", type=("build", "link"))
- depends_on("openexr@2.3:", type=("build", "link"))
- depends_on("libpng@1.6:", type=("build", "link"))
+ depends_on("boost+atomic+filesystem+thread+chrono@1.53:")
+ depends_on("libtiff@4.0:")
+ depends_on("openexr@3.1:")
+ depends_on("libpng@1.6:")
# Optional dependencies
variant("ffmpeg", default=False, description="Support video frames")
@@ -48,7 +42,10 @@ class Openimageio(CMakePackage):
variant("qt", default=False, description="Build qt viewer")
depends_on("qt@5.6.0:+opengl", when="+qt")
- conflicts("target=aarch64:", when="@:1.8.15")
+ def url_for_version(self, version):
+ if version >= Version("2"):
+ return super().url_for_version(version)
+ return f"https://github.com/AcademySoftwareFoundation/OpenImageIO/archive/refs/tags/Release-{version}.tar.gz"
def cmake_args(self):
args = ["-DUSE_FFMPEG={0}".format("ON" if "+ffmpeg" in self.spec else "OFF")]