summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2024-07-05 13:55:36 +0200
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2024-07-05 13:55:36 +0200
commit6a0598a97008a689e110e99defc3c8b0e51f87c0 (patch)
tree7bed6aed9f8a34f240eecade9ace11287a3b05ca /media-libs
parentmedia-libs/libvpl: add 2.12.0 (diff)
downloadgentoo-6a0598a97008a689e110e99defc3c8b0e51f87c0.tar.gz
gentoo-6a0598a97008a689e110e99defc3c8b0e51f87c0.tar.bz2
gentoo-6a0598a97008a689e110e99defc3c8b0e51f87c0.zip
media-libs/libvpl-tools: add 1.1.0
Closes: https://bugs.gentoo.org/933835 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/libvpl-tools/Manifest1
-rw-r--r--media-libs/libvpl-tools/libvpl-tools-1.1.0.ebuild71
2 files changed, 72 insertions, 0 deletions
diff --git a/media-libs/libvpl-tools/Manifest b/media-libs/libvpl-tools/Manifest
index e89f4a223ae5..8f6f0ea54871 100644
--- a/media-libs/libvpl-tools/Manifest
+++ b/media-libs/libvpl-tools/Manifest
@@ -1 +1,2 @@
DIST libvpl-tools-1.0.0.tar.gz 1280283 BLAKE2B 67e2d0339893751a572c133ef34bbde05a254de1d460da3226088608e85aa253c585fe00d3edca05d629d65d0ddb8617c85e0cb87ff25b2cb56d85717834e959 SHA512 d4225eadbed4993a80461119db1175f196b271086d79be5312e74ac7c8d1395c9ba13149145d979441cd6958ef80c7a1755c37374091fa7b7ce7581df570ffb1
+DIST libvpl-tools-1.1.0.tar.gz 1282378 BLAKE2B 4565c5f4c3c7128a925882877f432ac4618ea8d3df05ec308cb6d6b0201fd94953597ce42f1e90dec73ad02612c74afa9deea1a68116436f78204f92ecfeb1e8 SHA512 2aa1e8bca981018bfd09a1500062f468364e7dac51c8643c08103ad3adf791e67b718bec01388143f95e2b1d47eac0cab8a31100574124fae825e8272d4fc87e
diff --git a/media-libs/libvpl-tools/libvpl-tools-1.1.0.ebuild b/media-libs/libvpl-tools/libvpl-tools-1.1.0.ebuild
new file mode 100644
index 000000000000..60f9e36be1fe
--- /dev/null
+++ b/media-libs/libvpl-tools/libvpl-tools-1.1.0.ebuild
@@ -0,0 +1,71 @@
+# 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 opencl test +vaapi wayland X"
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="
+ dri? ( X )
+ opencl? ( X )
+ vaapi? ( drm )
+ wayland? ( vaapi )
+ X? ( vaapi )
+"
+
+RDEPEND="
+ drm? ( x11-libs/libdrm[video_cards_intel] )
+ opencl? ( virtual/opencl )
+ vaapi? ( media-libs/libva[X?,wayland?,drm(+)?] )
+ wayland? (
+ dev-libs/wayland
+ )
+ X? (
+ x11-libs/libX11
+ x11-libs/libxcb
+ )
+ x11-libs/libpciaccess
+ >=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)"
+
+ -DBUILD_EXPERIMENTAL="$(usex X)"
+ -DTOOLS_ENABLE_X11="$(usex X)"
+ -DTOOLS_ENABLE_SCREEN_CAPTURE="$(usex X)"
+ -DTOOLS_ENABLE_RENDER="$(usex X)"
+ -DTOOLS_ENABLE_OPENCL="$(usex opencl)"
+
+ -DENABLE_DRI3="$(usex dri)"
+ -DENABLE_DRM="$(usex drm)"
+ -DENABLE_VA="$(usex vaapi)"
+ -DENABLE_WAYLAND="$(usex wayland)"
+ -DENABLE_X11="$(usex X)"
+
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
+ -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
+ )
+ cmake_src_configure
+}