summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2024-05-17 15:40:29 +0200
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2024-05-17 16:12:31 +0200
commit678da60b97e7eabf998ef28012a8c727cc7cf292 (patch)
tree42f51ab85d109d2164c3cd1846c08bab13e85d8b /media-libs/libvpl-tools
parentmedia-libs/libvpl: add 2.11.0 (diff)
downloadgentoo-678da60b97e7eabf998ef28012a8c727cc7cf292.tar.gz
gentoo-678da60b97e7eabf998ef28012a8c727cc7cf292.tar.bz2
gentoo-678da60b97e7eabf998ef28012a8c727cc7cf292.zip
media-libs/libvpl-tools: new package, add 1.0.0
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'media-libs/libvpl-tools')
-rw-r--r--media-libs/libvpl-tools/Manifest1
-rw-r--r--media-libs/libvpl-tools/libvpl-tools-1.0.0.ebuild59
-rw-r--r--media-libs/libvpl-tools/metadata.xml14
3 files changed, 74 insertions, 0 deletions
diff --git a/media-libs/libvpl-tools/Manifest b/media-libs/libvpl-tools/Manifest
new file mode 100644
index 000000000000..e89f4a223ae5
--- /dev/null
+++ b/media-libs/libvpl-tools/Manifest
@@ -0,0 +1 @@
+DIST libvpl-tools-1.0.0.tar.gz 1280283 BLAKE2B 67e2d0339893751a572c133ef34bbde05a254de1d460da3226088608e85aa253c585fe00d3edca05d629d65d0ddb8617c85e0cb87ff25b2cb56d85717834e959 SHA512 d4225eadbed4993a80461119db1175f196b271086d79be5312e74ac7c8d1395c9ba13149145d979441cd6958ef80c7a1755c37374091fa7b7ce7581df570ffb1
diff --git a/media-libs/libvpl-tools/libvpl-tools-1.0.0.ebuild b/media-libs/libvpl-tools/libvpl-tools-1.0.0.ebuild
new file mode 100644
index 000000000000..cf0f0cd65e7c
--- /dev/null
+++ b/media-libs/libvpl-tools/libvpl-tools-1.0.0.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[tools]
+"
+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>