summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSreenivasa Murthy Kolam <sreenivasamurthy.kolam@amd.com>2024-11-12 07:35:21 +0530
committerGitHub <noreply@github.com>2024-11-11 18:05:21 -0800
commit42fd1cafe6c5c7da2c4d0b4dbefe955e25f0c24d (patch)
tree8117ddf64d20c2b31425b2f46b523f92d0fa4f4b /var
parent370694f11232e33e4fce39da1a7f3644d45da9bd (diff)
downloadspack-42fd1cafe6c5c7da2c4d0b4dbefe955e25f0c24d.tar.gz
spack-42fd1cafe6c5c7da2c4d0b4dbefe955e25f0c24d.tar.bz2
spack-42fd1cafe6c5c7da2c4d0b4dbefe955e25f0c24d.tar.xz
spack-42fd1cafe6c5c7da2c4d0b4dbefe955e25f0c24d.zip
Fix the build error during compilation of rocdecode package (#47283)
* fix the build error during compilation of rocdecode.was dependent on libva-devel packag * address review comment * address review changes.commit the changes
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}")