summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2023-04-30 11:01:10 +0200
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2023-04-30 11:01:10 +0200
commit72c77935224d867e8833966f41c92d30114901c2 (patch)
treed494ab4ba86cd34c24e7ed2772396ac7dc5dd919 /media-libs
parentmedia-libs/intel-mediasdk: drop 23.1.3, 23.1.5 (diff)
downloadgentoo-72c77935224d867e8833966f41c92d30114901c2.tar.gz
gentoo-72c77935224d867e8833966f41c92d30114901c2.tar.bz2
gentoo-72c77935224d867e8833966f41c92d30114901c2.zip
media-libs/oneVPL: add 2023.2.1
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/oneVPL/Manifest1
-rw-r--r--media-libs/oneVPL/oneVPL-2023.2.1.ebuild82
2 files changed, 83 insertions, 0 deletions
diff --git a/media-libs/oneVPL/Manifest b/media-libs/oneVPL/Manifest
index c356312d85f7..e508b51a9a02 100644
--- a/media-libs/oneVPL/Manifest
+++ b/media-libs/oneVPL/Manifest
@@ -2,3 +2,4 @@ DIST oneVPL-2023.1.1.tar.gz 6346209 BLAKE2B 043064fb5781ec0f23cbc2eedb5371bdd171
DIST oneVPL-2023.1.2.tar.gz 6317287 BLAKE2B 3333d32eb5370ac32136337dae122238ddc9c8ccf2a3634f27d79ccb375a62e79054af8e1ad20677c2e11d522bd6978deeeb2ba04e1876cc1dd130f22ff2e9d2 SHA512 674e352375efcb8cce88965bfed33642c1bbfb707e6d26522b48ac670d7f1467b07b66f881b2d83a7f919f707f1782ecda709d5775545c5a87bb0058daa005c5
DIST oneVPL-2023.1.3.tar.gz 6326127 BLAKE2B ad09f6bb3eca51c11d921ffe89472f255413e2930da6de43d2130dea9629a1dd87ede2260acec20b056f3320f4c0db1911ece01dcdd83b514f8820b8befcd787 SHA512 e5241873447545f8cbfe27fcab07426234054300d1d0839aff85aeb64cd8fb75fc52f2dfe946aa7ea98b60f05121593bac9f38b5d5ebfc9d3cdfaa50644daa1a
DIST oneVPL-2023.2.0.tar.gz 6314718 BLAKE2B bf4f027e7533abcce1223f4211d893a137af85dd87cdea57f765d511e535e2fa57bd57fa7db04ae0d2ce4ccb02063d7d56976ec8e52dec9393a0f776446a7fc4 SHA512 d072906ab46a711513681bf70023f83e5c9bdd0999e65d1653e039c2d46aa0a66265812cba571be47c73310b831058984674c3d394bfd70f8b11df11e2f8e1d2
+DIST oneVPL-2023.2.1.tar.gz 6315268 BLAKE2B f5b5609c27f5f2eddd4533480e053bd6868eab736b88fca5b061311374d8a4f2cadec100ad313b8a062604c6b38848d33a26a775524c250dbef7e2930204d82f SHA512 333df9fc58b9d1d0c832241420321f8cbc84d722d1453f24b7f1990ae1e3065b103940d88f84d7d339b527c4cf5fe6e72c6eaa0b2c736d1b980e09228093f279
diff --git a/media-libs/oneVPL/oneVPL-2023.2.1.ebuild b/media-libs/oneVPL/oneVPL-2023.2.1.ebuild
new file mode 100644
index 000000000000..0758b6389a95
--- /dev/null
+++ b/media-libs/oneVPL/oneVPL-2023.2.1.ebuild
@@ -0,0 +1,82 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib optfeature
+
+DESCRIPTION="oneAPI Video Processing Library, dispatcher, tools, and examples"
+HOMEPAGE="https://github.com/oneapi-src/oneVPL"
+SRC_URI="https://github.com/oneapi-src/oneVPL/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="dri drm examples experimental tools test vaapi wayland X"
+RESTRICT="!test? ( test )"
+# Tools fails to compile on 32-bit
+REQUIRED_USE="
+ dri? ( X drm )
+ X? ( vaapi )
+ wayland? ( drm )
+ abi_x86_32? ( !tools )
+ abi_x86_x32? ( !tools )
+"
+
+RDEPEND="
+ x11-libs/libpciaccess[${MULTILIB_USEDEP}]
+ vaapi? ( media-libs/libva[X?,wayland?,drm(+)?,${MULTILIB_USEDEP}] )
+ drm? ( x11-libs/libdrm[${MULTILIB_USEDEP}] )
+ wayland? (
+ dev-libs/wayland[${MULTILIB_USEDEP}]
+ )
+ X? (
+ x11-libs/libX11[${MULTILIB_USEDEP}]
+ x11-libs/libxcb[${MULTILIB_USEDEP}]
+ )
+"
+DEPEND="${RDEPEND}
+ wayland? (
+ dev-libs/wayland-protocols
+ )
+"
+BDEPEND="virtual/pkgconfig"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DBUILD_SHARED_LIBS=ON
+ -DBUILD_DISPATCHER=ON
+ # Headers, cmake and pkgconfig files
+ -DBUILD_DEV=ON
+ -DBUILD_EXAMPLES="$(usex examples)"
+ -DINSTALL_EXAMPLE_CODE="$(usex examples)"
+ -DBUILD_PREVIEW="$(usex experimental)"
+ -DBUILD_DISPATCHER_ONEVPL_EXPERIMENTAL="$(usex experimental)"
+ # Fails to build with experimental tools off if tools on
+ -DBUILD_TOOLS_ONEVPL_EXPERIMENTAL="$(usex tools)"
+ -DBUILD_TESTS="$(usex test)"
+ -DBUILD_TOOLS="$(usex tools)"
+ -DENABLE_WAYLAND="$(usex wayland)"
+ -DENABLE_X11="$(usex X)"
+ -DENABLE_DRI3="$(usex dri)"
+ -DENABLE_VA="$(usex vaapi)"
+ -DENABLE_DRM="$(usex drm)"
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
+ -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
+ )
+ cmake_src_configure
+}
+
+multilib_src_install() {
+ cmake_src_install
+ # Remove these license files
+ rm -r "${ED}/usr/share/vpl/licensing" || die
+}
+
+pkg_postinst() {
+ optfeature_header "This package provides only the dispatcher, to use it install one or more implementations"
+ optfeature "CPUs" media-libs/oneVPL-cpu
+ optfeature "Intel GPUs newer then, and including, Intel Xe" media-libs/oneVPL-intel-gpu
+ optfeature "Intel GPUs older then Intel Xe" media-libs/intel-mediasdk
+}