summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libva/package.py46
-rw-r--r--var/spack/repos/builtin/packages/rocdecode/package.py2
2 files changed, 48 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libva/package.py b/var/spack/repos/builtin/packages/libva/package.py
new file mode 100644
index 0000000000..538ca8914e
--- /dev/null
+++ b/var/spack/repos/builtin/packages/libva/package.py
@@ -0,0 +1,46 @@
+# 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 Libva(AutotoolsPackage):
+ """Libva is an implementation for VA-API (Video Acceleration API).
+ VA-API is an open-source library and API specification, which provides
+ access to graphics hardware acceleration capabilities for video
+ processing. It consists of a main library and driver-specific
+ acceleration backends for each supported hardware vendor."""
+
+ homepage = "https://github.com/intel/libva"
+ url = "https://github.com/intel/libva/archive/refs/tags/2.22.0.tar.gz"
+
+ version("2.22.0", sha256="467c418c2640a178c6baad5be2e00d569842123763b80507721ab87eb7af8735")
+
+ depends_on("c", type="build")
+ depends_on("cxx", type="build")
+
+ depends_on("autoconf", type="build")
+ depends_on("automake", type="build")
+ depends_on("libtool", type="build")
+ depends_on("m4", type="build")
+ depends_on("pkgconfig", type="build")
+
+ depends_on("libdrm")
+ depends_on("libx11", when="^[virtuals=gl] glx")
+ depends_on("libxext", when="^[virtuals=gl] glx")
+
+ def autoreconf(self, spec, prefix):
+ autogen = Executable("./autogen.sh")
+ autogen()
+
+ def configure_args(self):
+ spec = self.spec
+ args = ["--disable-x11", "--disable-wayland", "--disable-glx", "--enable-libdrm"]
+ if spec.satisfies("^[virtuals=gl] glx"):
+ args.append("--enable-x11")
+ else:
+ args.append("--disable-x11")
+ return args
diff --git a/var/spack/repos/builtin/packages/rocdecode/package.py b/var/spack/repos/builtin/packages/rocdecode/package.py
index 1f284de531..bac7679a15 100644
--- a/var/spack/repos/builtin/packages/rocdecode/package.py
+++ b/var/spack/repos/builtin/packages/rocdecode/package.py
@@ -33,6 +33,8 @@ class Rocdecode(CMakePackage):
sticky=True,
)
+ depends_on("libva", type="build", when="@6.2:")
+
for ver in ["6.1.0", "6.1.1", "6.1.2", "6.2.0", "6.2.1"]:
depends_on(f"hip@{ver}", when=f"@{ver}")