diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-23 15:49:20 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-23 15:49:20 +0100 |
commit | 41ba6a36cf63678ca63fdd9788e84e3e032dc4ba (patch) | |
tree | d0c7e74375d68297d183bd73957bc1f92623479c /media-libs | |
parent | 7795d9198ccb546ad792af2694399b516fc244ac (diff) |
gentoo auto-resync : 23:08:2023 - 15:49:20
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/Manifest.gz | bin | 68712 -> 68882 bytes | |||
-rw-r--r-- | media-libs/nvidia-vaapi-driver/Manifest | 4 | ||||
-rw-r--r-- | media-libs/nvidia-vaapi-driver/files/nvidia-vaapi-driver-0.0.10-driverpath.patch | 49 | ||||
-rw-r--r-- | media-libs/nvidia-vaapi-driver/metadata.xml | 19 | ||||
-rw-r--r-- | media-libs/nvidia-vaapi-driver/nvidia-vaapi-driver-0.0.10.ebuild | 29 |
5 files changed, 101 insertions, 0 deletions
diff --git a/media-libs/Manifest.gz b/media-libs/Manifest.gz Binary files differindex 148e3298595a..cda76e702824 100644 --- a/media-libs/Manifest.gz +++ b/media-libs/Manifest.gz diff --git a/media-libs/nvidia-vaapi-driver/Manifest b/media-libs/nvidia-vaapi-driver/Manifest new file mode 100644 index 000000000000..73b00ee93011 --- /dev/null +++ b/media-libs/nvidia-vaapi-driver/Manifest @@ -0,0 +1,4 @@ +AUX nvidia-vaapi-driver-0.0.10-driverpath.patch 1623 BLAKE2B 382f05be86c82d715d4558d2714541905830a37133aa144f97bae48096981f7cea24cdaf16dcea311944e2a13e7f82f21fb174240515ca9b18dd34f2e8422628 SHA512 f8d8ff9e284c7dc553120b3dc7e9a3f8b64d76f54bed921ffbd4fc18e6d8d1a416dcfc1acef07bf8d47406b21dcb55ac4fb9a2c5d8b431319aa93bc08107e5c1 +DIST nvidia-vaapi-driver-0.0.10.tar.gz 182313 BLAKE2B 45913c0ca29051d817513288041a73c2d65580ab5bb7f4d269c74ec5092460657eba30a0b6e38089dcb3966f9a01f71ca574c170cdcfe78ff6843a3dadc67a5e SHA512 0c0c718a452495b9750838f5625bce66be549aced165778ce2074becc95e4bb7f084d5af16000f61530c9b3059256cec5270759ffc2a53a35b5f237ab09a0ece +EBUILD nvidia-vaapi-driver-0.0.10.ebuild 666 BLAKE2B e2fbfcace352e69f1b9c148717987c4da7a8943219f74e25b3f16b864ba737cd489e76c577a84b8741e953ec7da1824fd08c8904fe2998216321ff9c641295a8 SHA512 e8720a8641305529622c25889b88c30dcd846cde70e485e3c8f6b0f9d8991e59c720ad0109da54508286970eca2117501fb3b57a23a7a30b9073073a8c0d988a +MISC metadata.xml 600 BLAKE2B 780e519992c02718417c1de7ca5c966c4795088bb649d862277959602ea6744c3d78589dc70e5c3eaefc989f9afd7eccded785b7e6e253fc8ae591731634c596 SHA512 5c43e6438c06d5631837711047ca2ccaccda39871af1eaef5ff997a5c35c2ec9f86a0188f44e961095c44823b11847289d04e16575e6061d4c894762a81b1c63 diff --git a/media-libs/nvidia-vaapi-driver/files/nvidia-vaapi-driver-0.0.10-driverpath.patch b/media-libs/nvidia-vaapi-driver/files/nvidia-vaapi-driver-0.0.10-driverpath.patch new file mode 100644 index 000000000000..bae86cb9a68f --- /dev/null +++ b/media-libs/nvidia-vaapi-driver/files/nvidia-vaapi-driver-0.0.10-driverpath.patch @@ -0,0 +1,49 @@ +From 60ab79608ae35bd929d3e1387d226547d18e6bed Mon Sep 17 00:00:00 2001 +From: "Azamat H. Hackimov" <azamat.hackimov@gmail.com> +Date: Tue, 11 Jul 2023 02:24:12 +0300 +Subject: [PATCH] Use libva's driverdir path instead hardcoded + +In some systems libva may expects driver location in different path. +Reusing driverdir variable from pkg-config to provide correct one. +--- + meson.build | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +diff --git a/meson.build b/meson.build +index 6fd72da..990c2b2 100644 +--- a/meson.build ++++ b/meson.build +@@ -18,10 +18,12 @@ deps = [ + cc.find_library('dl', required : false), + dependency('egl'), + dependency('ffnvcodec', version: '>= 11.1.5.1'), +- dependency('libva', version: '>= 1.8.0').partial_dependency(compile_args: true), + dependency('libdrm', version: '>=2.4.60').partial_dependency(compile_args: true), + dependency('threads'), + ] ++libva_deps = dependency('libva', version: '>= 1.8.0').partial_dependency(compile_args: true) ++deps += [libva_deps] ++ + gst_codecs_deps = dependency('gstreamer-codecparsers-1.0', required: false) + + if cc.get_argument_syntax() == 'gcc' +@@ -69,6 +71,7 @@ if gst_codecs_deps.found() + endif + + nvidia_incdir = include_directories('nvidia-include') ++nvidia_install_dir = libva_deps.get_variable(pkgconfig: 'driverdir') + + shared_library( + 'nvidia_drv_video', +@@ -77,7 +80,7 @@ shared_library( + dependencies: deps, + include_directories: nvidia_incdir, + install: true, +- install_dir: get_option('libdir') / 'dri', ++ install_dir: nvidia_install_dir, + gnu_symbol_visibility: 'hidden', + ) + +-- +2.41.0 + diff --git a/media-libs/nvidia-vaapi-driver/metadata.xml b/media-libs/nvidia-vaapi-driver/metadata.xml new file mode 100644 index 000000000000..90ad8a3e885d --- /dev/null +++ b/media-libs/nvidia-vaapi-driver/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>mozilla@gentoo.org</email> + <name>Gentoo Mozilla Team</name> + </maintainer> + <maintainer type="person"> + <email>azamat.hackimov@gmail.com</email> + <name>Azamat H. Hackimov</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <remote-id type="github">elFarto/nvidia-vaapi-driver</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-libs/nvidia-vaapi-driver/nvidia-vaapi-driver-0.0.10.ebuild b/media-libs/nvidia-vaapi-driver/nvidia-vaapi-driver-0.0.10.ebuild new file mode 100644 index 000000000000..3dda1c5670e0 --- /dev/null +++ b/media-libs/nvidia-vaapi-driver/nvidia-vaapi-driver-0.0.10.ebuild @@ -0,0 +1,29 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson-multilib + +DESCRIPTION="A VA-API implemention using NVIDIA's NVDEC" +HOMEPAGE="https://github.com/elFarto/nvidia-vaapi-driver" +SRC_URI="https://github.com/elFarto/nvidia-vaapi-driver/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + media-libs/gst-plugins-bad + media-libs/libglvnd + >=media-libs/libva-1.8.0 + >=x11-libs/libdrm-2.4.60 +" +DEPEND="${RDEPEND} + >=media-libs/nv-codec-headers-11.1.5.1 +" +BDEPEND="virtual/pkgconfig" + +PATCHES=" + ${FILESDIR}/nvidia-vaapi-driver-0.0.10-driverpath.patch +" |