summaryrefslogtreecommitdiff
path: root/media-libs/libvpl-tools
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/libvpl-tools')
-rw-r--r--media-libs/libvpl-tools/Manifest3
-rw-r--r--media-libs/libvpl-tools/libvpl-tools-1.0.0-r1.ebuild59
-rw-r--r--media-libs/libvpl-tools/metadata.xml14
3 files changed, 76 insertions, 0 deletions
diff --git a/media-libs/libvpl-tools/Manifest b/media-libs/libvpl-tools/Manifest
new file mode 100644
index 000000000000..ad056e6dca68
--- /dev/null
+++ b/media-libs/libvpl-tools/Manifest
@@ -0,0 +1,3 @@
+DIST libvpl-tools-1.0.0.tar.gz 1280283 BLAKE2B 67e2d0339893751a572c133ef34bbde05a254de1d460da3226088608e85aa253c585fe00d3edca05d629d65d0ddb8617c85e0cb87ff25b2cb56d85717834e959 SHA512 d4225eadbed4993a80461119db1175f196b271086d79be5312e74ac7c8d1395c9ba13149145d979441cd6958ef80c7a1755c37374091fa7b7ce7581df570ffb1
+EBUILD libvpl-tools-1.0.0-r1.ebuild 1204 BLAKE2B 33aa3353395dc32461de4a07b7653335250e48b192ef3ccfaf7cf6e08f3f4b353e2519149b7f0c9e057c71cfd5e4670fd75cec4d323ceecdbe315113b88d9d57 SHA512 7d061ce9b44c7c6229cc1cc9859e3885f08bcceea1d49b37586a4392c317d94ab120fdd0acee4136eca2ae0bf527819364df614ea2313bffe03727c0e12dc405
+MISC metadata.xml 405 BLAKE2B c982a523bf698ab07b871f4c15d1b5b690721dadeddf845c3dacfdaf8c9335b66df03b12b0d90ad684843e0ca1af0d92ef73c40ae6d93380c5bb580d718bc7ec SHA512 809830c4eed32d149a73ce87f9a1de441335cd5adb7ec9649873954af1eceb7635402eda79cbc9ec39162c8875455309d29d9da16caaf6e683f13de21534a69f
diff --git a/media-libs/libvpl-tools/libvpl-tools-1.0.0-r1.ebuild b/media-libs/libvpl-tools/libvpl-tools-1.0.0-r1.ebuild
new file mode 100644
index 000000000000..503d1172c45c
--- /dev/null
+++ b/media-libs/libvpl-tools/libvpl-tools-1.0.0-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Intel Video Processing Library tools"
+HOMEPAGE="https://github.com/intel/libvpl-tools/"
+SRC_URI="https://github.com/intel/libvpl-tools/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="dri drm test vaapi wayland X"
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="
+ dri? ( X drm )
+ X? ( vaapi )
+ wayland? ( drm )
+"
+
+RDEPEND="
+ x11-libs/libpciaccess
+ vaapi? ( media-libs/libva[X?,wayland?,drm(+)?] )
+ drm? ( x11-libs/libdrm )
+ wayland? (
+ dev-libs/wayland
+ )
+ X? (
+ x11-libs/libX11
+ x11-libs/libxcb
+ )
+ >=media-libs/libvpl-2.11.0
+"
+DEPEND="${RDEPEND}
+ wayland? (
+ dev-libs/wayland-protocols
+ )
+"
+BDEPEND="virtual/pkgconfig"
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_SHARED_LIBS=ON
+ -DBUILD_TESTS="$(usex test)"
+ -DTOOLS_ENABLE_X11="$(usex X)"
+ -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
+}
diff --git a/media-libs/libvpl-tools/metadata.xml b/media-libs/libvpl-tools/metadata.xml
new file mode 100644
index 000000000000..33d1f718149c
--- /dev/null
+++ b/media-libs/libvpl-tools/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>andrewammerlaan@gentoo.org</email>
+ <name>Andrew Ammerlaan</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">intel/libvpl-tools</remote-id>
+ </upstream>
+ <use>
+ <flag name="drm">Build with DRM support</flag>
+ </use>
+</pkgmetadata>