git: ef1f7856c102 - main - multimedia/libva-nvidia-driver: better document how to run
Date: Fri, 04 Jul 2025 21:13:43 UTC
The branch main has been updated by jbeich:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ef1f7856c102db7f36fc466773b8489834fc25e9
commit ef1f7856c102db7f36fc466773b8489834fc25e9
Author: Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2025-07-04 20:30:07 +0000
Commit: Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2025-07-04 21:11:22 +0000
multimedia/libva-nvidia-driver: better document how to run
---
multimedia/libva-nvidia-driver/Makefile | 1 +
multimedia/libva-nvidia-driver/pkg-descr | 5 -----
multimedia/libva-nvidia-driver/pkg-message | 18 ++++++++++++++++++
3 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/multimedia/libva-nvidia-driver/Makefile b/multimedia/libva-nvidia-driver/Makefile
index 4649c82759f2..e6ee6c08c04f 100644
--- a/multimedia/libva-nvidia-driver/Makefile
+++ b/multimedia/libva-nvidia-driver/Makefile
@@ -1,6 +1,7 @@
PORTNAME= libva-nvidia-driver
DISTVERSIONPREFIX= v
DISTVERSION= 0.0.14
+PORTREVISION= 1
CATEGORIES= multimedia
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
diff --git a/multimedia/libva-nvidia-driver/pkg-descr b/multimedia/libva-nvidia-driver/pkg-descr
index 01d24de66009..8119052fb637 100644
--- a/multimedia/libva-nvidia-driver/pkg-descr
+++ b/multimedia/libva-nvidia-driver/pkg-descr
@@ -2,8 +2,3 @@ This is an VA-API implementation that uses NVDEC as a backend. This
implementation is specifically designed to be used by Firefox for
accelerated decode of web content, and may not operate correctly in
other applications.
-
-System requirements:
-- Non-legacy NVIDIA GPU
-- nvidia-drm-kmod for DMA-BUF
-- libc6-shim (nv-sglrun) for NVDEC
diff --git a/multimedia/libva-nvidia-driver/pkg-message b/multimedia/libva-nvidia-driver/pkg-message
new file mode 100644
index 000000000000..8589fa028d31
--- /dev/null
+++ b/multimedia/libva-nvidia-driver/pkg-message
@@ -0,0 +1,18 @@
+[
+{ type: install
+ message: <<EOM
+To use VA-API apps like Firefox make sure DRM and CUDA are enabled e.g.,
+
+ # pkg install nvidia-drm-kmod libc6-shim libva-utils
+ # sysrc kld_list+=nvidia-drm
+ # service kld restart
+ $ test -e /dev/dri/renderD* || bsddialog --title Error --msgbox "nvidia-drm-kmod failed" 0 0
+ $ nv-sglrun vainfo
+ $ nv-sglrun firefox
+
+Note, legacy nvidia-driver series like 470 or older are not supported
+by nvidia-drm-kmod required by this package. Consider using
+libva-vdpau-driver instead.
+EOM
+}
+]