diff options
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/Manifest.gz | bin | 68070 -> 68073 bytes | |||
-rw-r--r-- | media-libs/oneVPL-cpu/Manifest | 2 | ||||
-rw-r--r-- | media-libs/oneVPL-cpu/oneVPL-cpu-2023.1.3.ebuild | 57 | ||||
-rw-r--r-- | media-libs/oneVPL/Manifest | 2 | ||||
-rw-r--r-- | media-libs/oneVPL/oneVPL-2023.1.3.ebuild | 79 |
5 files changed, 140 insertions, 0 deletions
diff --git a/media-libs/Manifest.gz b/media-libs/Manifest.gz Binary files differindex acbe6302aa62..5fb6f5576d6f 100644 --- a/media-libs/Manifest.gz +++ b/media-libs/Manifest.gz diff --git a/media-libs/oneVPL-cpu/Manifest b/media-libs/oneVPL-cpu/Manifest index 0883dc922e82..004a1cc7c40c 100644 --- a/media-libs/oneVPL-cpu/Manifest +++ b/media-libs/oneVPL-cpu/Manifest @@ -2,6 +2,8 @@ AUX oneVPL-cpu-2022.2.5-respect-user-flags.patch 416 BLAKE2B c0ba2a7d75ab2d4ce93 AUX oneVPL-cpu-2022.2.5-use-system-libs.patch 1884 BLAKE2B c13fecb58e2692ae53c531fe3ca4199a381f170712777d2df9f5ddd334481238f48666636dced8d39213187d9e162915b62c641d9015afe1a8326fcdcb724c88 SHA512 bffcfcc4b17145d1b1f0b608b1451d8438a77254c389ed4542c0b457b6064ad85b646605ac9cd2c176d9480aa1136412a728b172e8d2c642f8aae77ff9d18703 DIST oneVPL-cpu-2023.1.1.tar.gz 9917709 BLAKE2B 2e30f8e8e493b4027089031ea9434dd04e2ca4dc75d56083259077ef6f2b906c4419451592ce7d272af689c9e46f5dafe2a1552564e77a8012eb4881edc6afc2 SHA512 d294268f45dd59ebae43f3845641c39ecdea39055b9b2fb0fa660e7a3c809ba675f52a23a4cfb67b7c6e6dc0ea200aeb43d3313aeb70efa2b5027eec3d25e5f8 DIST oneVPL-cpu-2023.1.2.tar.gz 10130122 BLAKE2B 4f78258071cbcfb3bf5357bce86e4f2c5d6551800a3f98589d130efc106a83dcaa298d621564cd0c362f227759417a0f6bb6037e6caff4a6f8fa8bfc20c0cde0 SHA512 e206589b8f8b57094e7c850ba2de26fa777e1d90985187d49a26753525ce80fc380cff538a6c4fe67db00314252c56afcca35081e9d39f7a80d1e59b1e7617af +DIST oneVPL-cpu-2023.1.3.tar.gz 10138929 BLAKE2B bbbe20e7434abcf713fe43d7c1974bba20864fc8ab9087d5e22f82483500738190aaa7a4204ba68c4bcdb1d11552156df97485da09ef9f1084d7c3c60797b178 SHA512 6b9f4a350c771ad5e509f1d39aee67acc5d6501f62741855d3a13f41c29ee1c06b8d885873db2373a5413a0efc349eceaf915ddc789b5ef7da8bf4dfe21ae0d6 EBUILD oneVPL-cpu-2023.1.1.ebuild 1355 BLAKE2B 5722d49b8a2cc4a81e9349b072605149efa1cc90cd20d73315094920f8ab504f15cf443835e872015b6e23249b6dd686110d498ca97136b25e1da2190a91d53a SHA512 4969d207a4e58b03e3fcec68b828a5bcbeb1c7618889db3682272eeb3f1e682574257214b016efe1b1e9c314519a1ee41469e26f3dc0340ae373b1d1856104c7 EBUILD oneVPL-cpu-2023.1.2.ebuild 1355 BLAKE2B 5722d49b8a2cc4a81e9349b072605149efa1cc90cd20d73315094920f8ab504f15cf443835e872015b6e23249b6dd686110d498ca97136b25e1da2190a91d53a SHA512 4969d207a4e58b03e3fcec68b828a5bcbeb1c7618889db3682272eeb3f1e682574257214b016efe1b1e9c314519a1ee41469e26f3dc0340ae373b1d1856104c7 +EBUILD oneVPL-cpu-2023.1.3.ebuild 1355 BLAKE2B 5722d49b8a2cc4a81e9349b072605149efa1cc90cd20d73315094920f8ab504f15cf443835e872015b6e23249b6dd686110d498ca97136b25e1da2190a91d53a SHA512 4969d207a4e58b03e3fcec68b828a5bcbeb1c7618889db3682272eeb3f1e682574257214b016efe1b1e9c314519a1ee41469e26f3dc0340ae373b1d1856104c7 MISC metadata.xml 606 BLAKE2B 470321a75d274c50d7480359081d67f9a4614549af06d0172f8211815d1d70edf73fd17ab576802294c375b7ddfff1849b63647894c7dca971e3b429236501cb SHA512 3e43d49860ee353cd16b6070ff358d3bef7ab404c55bd57f22e49e6aebf3b245930554884ecc490690512c92914fe04d40b35dbb6b339f46b5314d9e3545a92f diff --git a/media-libs/oneVPL-cpu/oneVPL-cpu-2023.1.3.ebuild b/media-libs/oneVPL-cpu/oneVPL-cpu-2023.1.3.ebuild new file mode 100644 index 000000000000..513675dc8a74 --- /dev/null +++ b/media-libs/oneVPL-cpu/oneVPL-cpu-2023.1.3.ebuild @@ -0,0 +1,57 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="oneAPI Video Processing Library CPU implementation" +HOMEPAGE="https://github.com/oneapi-src/oneVPL-cpu" +SRC_URI="https://github.com/oneapi-src/oneVPL-cpu/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT x264? ( GPL-2 )" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="experimental openh264 test +x264" +REQUIRED_USE="^^ ( openh264 x264 )" +# RESTRICT="!test? ( test )" +# Tests fail +RESTRICT="test" + +BDEPEND="virtual/pkgconfig" +DEPEND=" + media-libs/dav1d + media-libs/oneVPL[experimental?] + media-libs/svt-av1 + media-libs/svt-hevc + media-video/ffmpeg + x264? ( media-libs/x264 ) + openh264? ( media-libs/openh264 ) +" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${PN}-2022.2.5-use-system-libs.patch" + "${FILESDIR}/${PN}-2022.2.5-respect-user-flags.patch" +) + +src_configure() { + # Use system libraries + export VPL_BUILD_DEPENDENCIES="${ESYSROOT}/usr" + local mycmakeargs=( + -DUSE_EXPERIMENTAL_API="$(usex experimental)" + -DBUILD_OPENH264="$(usex openh264)" + -DBUILD_TESTS="$(usex test)" + -DBUILD_GPL_X264="$(usex x264)" + # Use FHS instead + -DUSE_ONEAPI_INSTALL_LAYOUT=NO + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + # Remove these license files + rm -r "${ED}/usr/share/oneVPL-cpu/licensing" || die +} diff --git a/media-libs/oneVPL/Manifest b/media-libs/oneVPL/Manifest index 29b3a45ee2dc..3cd5fbb8063f 100644 --- a/media-libs/oneVPL/Manifest +++ b/media-libs/oneVPL/Manifest @@ -1,5 +1,7 @@ DIST oneVPL-2023.1.1.tar.gz 6346209 BLAKE2B 043064fb5781ec0f23cbc2eedb5371bdd1718ae862bd9ae492529ab501b034d2a8d5c4814c5ce219bd15894bc6139dd3b2bef7c7ac4b8a5e9cd37502f022faf8 SHA512 a3df5ebafd748a887cb581525d07af930d3e3b4930d5d2adc5bc2629e385d1802b3315b8f02a3c66956a3dbb46b008e680687ebf125b344a34e86b9cc0910faa DIST oneVPL-2023.1.2.tar.gz 6317287 BLAKE2B 3333d32eb5370ac32136337dae122238ddc9c8ccf2a3634f27d79ccb375a62e79054af8e1ad20677c2e11d522bd6978deeeb2ba04e1876cc1dd130f22ff2e9d2 SHA512 674e352375efcb8cce88965bfed33642c1bbfb707e6d26522b48ac670d7f1467b07b66f881b2d83a7f919f707f1782ecda709d5775545c5a87bb0058daa005c5 +DIST oneVPL-2023.1.3.tar.gz 6326127 BLAKE2B ad09f6bb3eca51c11d921ffe89472f255413e2930da6de43d2130dea9629a1dd87ede2260acec20b056f3320f4c0db1911ece01dcdd83b514f8820b8befcd787 SHA512 e5241873447545f8cbfe27fcab07426234054300d1d0839aff85aeb64cd8fb75fc52f2dfe946aa7ea98b60f05121593bac9f38b5d5ebfc9d3cdfaa50644daa1a EBUILD oneVPL-2023.1.1.ebuild 2146 BLAKE2B c6e3e3ecae998581833b70616d81354e54d32869379632293d3c1a29e5e7ff8465ad98b14332ab9d2db6d92693ad4dc322858a71ef487e059f7c36187b9e9447 SHA512 e77ed4ba01e53f7055264f32c88455e6b87e931735dfbb94560e685fedb3ef913fec63fdc29d53346fce044f08247af300d46b58f8002e3603cbaa28e98f0c3c EBUILD oneVPL-2023.1.2.ebuild 2146 BLAKE2B c6e3e3ecae998581833b70616d81354e54d32869379632293d3c1a29e5e7ff8465ad98b14332ab9d2db6d92693ad4dc322858a71ef487e059f7c36187b9e9447 SHA512 e77ed4ba01e53f7055264f32c88455e6b87e931735dfbb94560e685fedb3ef913fec63fdc29d53346fce044f08247af300d46b58f8002e3603cbaa28e98f0c3c +EBUILD oneVPL-2023.1.3.ebuild 2146 BLAKE2B c6e3e3ecae998581833b70616d81354e54d32869379632293d3c1a29e5e7ff8465ad98b14332ab9d2db6d92693ad4dc322858a71ef487e059f7c36187b9e9447 SHA512 e77ed4ba01e53f7055264f32c88455e6b87e931735dfbb94560e685fedb3ef913fec63fdc29d53346fce044f08247af300d46b58f8002e3603cbaa28e98f0c3c MISC metadata.xml 633 BLAKE2B b53305f7c1127190352b5ba25b43411455eba014b85a2305abe07571c2d95c6e1a60b1f1872895b94b7e6292178966c5b3733d7c8b5b9d1c16925f153d60e00d SHA512 a1dcf8c3fe13311bd81d48c3afd76de850b7fc395ae89e2f5973811525e56e69c12de2c83ce8e25971ab4330ed80ba4794051e5826c271f62b86116bc520d81a diff --git a/media-libs/oneVPL/oneVPL-2023.1.3.ebuild b/media-libs/oneVPL/oneVPL-2023.1.3.ebuild new file mode 100644 index 000000000000..223184c18698 --- /dev/null +++ b/media-libs/oneVPL/oneVPL-2023.1.3.ebuild @@ -0,0 +1,79 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake 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 )" +# Most of these flags only have an effect on the tools +REQUIRED_USE=" + dri? ( X drm ) + drm? ( tools ) + X? ( tools vaapi ) + wayland? ( tools drm ) + vaapi? ( tools ) +" + +BDEPEND="virtual/pkgconfig" +DEPEND=" + x11-libs/libpciaccess + vaapi? ( media-libs/libva[X?,wayland?,drm(+)?] ) + drm? ( x11-libs/libdrm ) + wayland? ( + dev-libs/wayland + dev-libs/wayland-protocols + ) + X? ( + x11-libs/libX11 + x11-libs/libxcb + ) +" +RDEPEND="${DEPEND}" + +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 +} + +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 +} |