summaryrefslogtreecommitdiff
path: root/media-libs/libvpl
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-03-08 01:07:00 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-03-08 01:07:00 +0000
commit443cfbefc0bbd1e252d323db7597b33ace434817 (patch)
treeaeab1cdb4ddfa5340339e11ffa04b2513377d7e7 /media-libs/libvpl
parent4c5e0520b3ae5cce70461c3f7fceb313186d6ea2 (diff)
gentoo auto-resync : 08:03:2024 - 01:06:59
Diffstat (limited to 'media-libs/libvpl')
-rw-r--r--media-libs/libvpl/Manifest3
-rw-r--r--media-libs/libvpl/libvpl-2.10.2.ebuild82
-rw-r--r--media-libs/libvpl/metadata.xml19
3 files changed, 104 insertions, 0 deletions
diff --git a/media-libs/libvpl/Manifest b/media-libs/libvpl/Manifest
new file mode 100644
index 000000000000..c735b16a2ad9
--- /dev/null
+++ b/media-libs/libvpl/Manifest
@@ -0,0 +1,3 @@
+DIST libvpl-2.10.2.tar.gz 11872075 BLAKE2B 6d9b6ba66b1e1c191a309ff26ec54a5bb62fa542ca9eab042a437eca9a82cf9d7e3056247a8110b49e28388bdbd8e4c0793dda8dd84d229937524faa96b10f37 SHA512 e4f6e1656371a8edb54a3a67726439d97dd5e8225fa37fdfc309602dd83c51e4a2b4e72bdb18b81dc6691f666a8857b460c45392cf030a8309abd368037be49d
+EBUILD libvpl-2.10.2.ebuild 2299 BLAKE2B ca7cf9f1d22065cf790dfd7b988b2c84bc796ec5a139d4dbbe95ab657fe467192c91b7c7b6a84062e367be8a1ffcc0427cc699df5e832789fb88d9fb0e16aee4 SHA512 946db2638d56ec0bcb74691eb7d40b295888e41681d298d562dc1b48f6d3f98007162c3f976fa697edf3858614db02300bbc805cb4d4060648fa36490987151c
+MISC metadata.xml 628 BLAKE2B 6e1cb517bc3732e69840258317fc6c02db8ecf5c7ef9961cdd501a16cd93eece14372976f207d15bf4b89d3afc076ff5f0e073b8710bbf18b45fa108001b4520 SHA512 89108483f9020309cc4ba350c5671fe01abd13fd64d0f6accbe5f049b3b60fc312489b62dd8e9c2eac6b2310907ae61929307beadc8508e0a534003bf18d7a4a
diff --git a/media-libs/libvpl/libvpl-2.10.2.ebuild b/media-libs/libvpl/libvpl-2.10.2.ebuild
new file mode 100644
index 000000000000..c9eddbfedb17
--- /dev/null
+++ b/media-libs/libvpl/libvpl-2.10.2.ebuild
@@ -0,0 +1,82 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib optfeature
+
+DESCRIPTION="Intel Video Processing Library, dispatcher, tools, and examples"
+HOMEPAGE="https://github.com/intel/libvpl/"
+SRC_URI="https://github.com/intel/libvpl//archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/libvpl-${PV}"
+
+LICENSE="MIT"
+SLOT="0/2"
+KEYWORDS="~amd64"
+
+IUSE="dri drm examples experimental tools test vaapi wayland X"
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="
+ dri? ( X drm )
+ X? ( vaapi )
+ wayland? ( drm )
+"
+
+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="$(multilib_native_usex tools)"
+ -DBUILD_TESTS="$(usex test)"
+ # Tools fails to compile for 32 bit
+ -DBUILD_TOOLS="$(multilib_native_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
+}
diff --git a/media-libs/libvpl/metadata.xml b/media-libs/libvpl/metadata.xml
new file mode 100644
index 000000000000..77f4c9b27db9
--- /dev/null
+++ b/media-libs/libvpl/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>media-video@gentoo.org</email>
+ </maintainer>
+ <maintainer type="person">
+ <email>andrewammerlaan@gentoo.org</email>
+ <name>Andrew Ammerlaan</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">intel/libvpl</remote-id>
+ </upstream>
+ <use>
+ <flag name="drm">Build with DRM support</flag>
+ <flag name="experimental">Build dispatcher with experimental APIs</flag>
+ <flag name="tools">Build decode/encode/analyse/inspect tools</flag>
+ </use>
+</pkgmetadata>