diff options
Diffstat (limited to 'media-libs/vpl-gpu-rt/vpl-gpu-rt-24.4.2.ebuild')
-rw-r--r-- | media-libs/vpl-gpu-rt/vpl-gpu-rt-24.4.2.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/media-libs/vpl-gpu-rt/vpl-gpu-rt-24.4.2.ebuild b/media-libs/vpl-gpu-rt/vpl-gpu-rt-24.4.2.ebuild new file mode 100644 index 000000000000..861810f2ef94 --- /dev/null +++ b/media-libs/vpl-gpu-rt/vpl-gpu-rt-24.4.2.ebuild @@ -0,0 +1,49 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# NOTE: please bump with the other parts of intel's media stack, listed below +# https://github.com/intel/vpl-gpu-rt/releases + +EAPI=8 + +inherit cmake + +DESCRIPTION="Intel Video Processing Library GPU Runtime" +HOMEPAGE="https://github.com/intel/vpl-gpu-rt/" +SRC_URI="https://github.com/intel/${PN}/archive/refs/tags/intel-onevpl-${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-intel-onevpl-${PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + media-libs/libva + x11-libs/libdrm[video_cards_intel] +" +# At runtime we need a dispatcher, libvpl is preferred but mediasdk also works +RDEPEND="${DEPEND} + >=media-libs/libva-intel-media-driver-${PV} + || ( + media-libs/libvpl + media-libs/intel-mediasdk + ) +" +BDEPEND="virtual/pkgconfig" + +src_configure() { + local mycmakeargs=( + -DBUILD_RUNTIME=ON + # To build the kernels we need to package the cm-compiler, use pre-built instead + -DBUILD_KERNELS=OFF + -DBUILD_TESTS="$(usex test)" + # This only seems to do something if we BUILD_KERNELS=ON + #-DBUILD_TOOLS="$(usex tools)" + # OpenCL only has an effect if we build kernels + -DENABLE_OPENCL=OFF + ) + cmake_src_configure +} |