From nobody Sun Aug 20 23:51:20 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RTXST0490z4qtGh; Sun, 20 Aug 2023 23:51:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RTXSS50T3z4ZT7; Sun, 20 Aug 2023 23:51:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692575480; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OYOIjto3Ev/s7292RmDGszO3lDgKaFPnKGe0k8Z9H3c=; b=Pse+1hFLU1twIEUGjDK1EUd99RkbcW3Dz3BbtyOKbyMoBJ8n/bz+yDIvghwon1w4iQoWcA 02Z2qiIirXr0ng3bkrLy+uXSa1NNZx7Sq+r0Ld/yfu5X93QByPkmD7Tg93Bdfp8oiA2XkB RTd8MpYMtB1hIE+ovBwwvnYPCA+WgbOT/yPFun+CDCiwJyJWoU/o/gG1preKDXO1mkAgl4 a/PYq2cUQNm2UAdMCbkQ7nLAKFScvtNK54JUtUUL38CvQ/KcZ+i1Cj/K8ULlvSmsmP0tOZ uCLtD2TbZbRSoB4ejrDKFhoU7w0xVwx7gX8z5pFrMUKvvow+jfgGzobgKX2uxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692575480; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OYOIjto3Ev/s7292RmDGszO3lDgKaFPnKGe0k8Z9H3c=; b=hRMlyaA9TbF3eteJD7smtIQZdCtkQwWZkfdZFCPyX5Ksrs1+nR/s/TrOc1lNVGt+i5NLhv UAdPEEUcI+qnmkKtfYH7znS3Wn7AF7aosgb1shWyS7eVA++RI7ntm2E5CHCkNdusKLTc+6 kLHPXY4bOplWZZJdmpFFriELeMDGMmUop+CCU+9JNOkKkDPEjU0mP6rAd1eNL96VfkCBwS U9aEaPQLWk+MWk4uTXoFIn2fmgwPlfK3ys1QRvK+CYVu94tShMRvJDphs7IDxfDoX1jrOu ySItVvJRlzgOxSt7bxW1eb/uMs85XSkmxkEhI7iC6wEpj6805kKG21zOHgO5Aw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692575480; a=rsa-sha256; cv=none; b=dlhcfHLjsmOFK3iw2ClFpAmuwpXGK1+KiqtudjkZy9rxblocMxQ9+JYVKst538qFOixw5p PH6foRlaGs+o7qfccdctB8VTPcJY1JtxBp2p+KI6fwOoxSQ2atEkmKWbD/zYGqsYmy3TCg RStySvYXwegKUb0MTB9qLw3RbRWwH9E7PK3A7CwHDZiOf/dKB/8vbFvTozntBVGLsOMJ1g W155y7GAOLOXvgyM7Hs/OEcoPq/zcZ+mPhYDi+oJnCbExROcuTxH1Tea5YSoRz1BMSOJYo i9JKWFdmo4oz7hzBXfw1BtMMPULGdhLutOy6Tx+Oc0u3m3PbqArI+2x89fQ17A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RTXSS3zBhzypt; Sun, 20 Aug 2023 23:51:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37KNpKnE066871; Sun, 20 Aug 2023 23:51:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37KNpKi8066868; Sun, 20 Aug 2023 23:51:20 GMT (envelope-from git) Date: Sun, 20 Aug 2023 23:51:20 GMT Message-Id: <202308202351.37KNpKi8066868@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich <jbeich@FreeBSD.org> Subject: git: a6d6f608ea31 - main - multimedia/libva-nvidia-driver: add new port List-Id: Commit messages for all branches of the ports repository <dev-commits-ports-all.freebsd.org> List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: <mailto:dev-commits-ports-all+help@freebsd.org> List-Post: <mailto:dev-commits-ports-all@freebsd.org> List-Subscribe: <mailto:dev-commits-ports-all+subscribe@freebsd.org> List-Unsubscribe: <mailto:dev-commits-ports-all+unsubscribe@freebsd.org> Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a6d6f608ea3134f23ac47159df3f850555546abe Auto-Submitted: auto-generated The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=a6d6f608ea3134f23ac47159df3f850555546abe commit a6d6f608ea3134f23ac47159df3f850555546abe Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2023-06-10 09:21:05 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2023-08-20 23:48:22 +0000 multimedia/libva-nvidia-driver: add new port 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 https://github.com/elFarto/nvidia-vaapi-driver --- multimedia/Makefile | 1 + multimedia/libva-nvidia-driver/Makefile | 45 ++++++++++++++++++++++ multimedia/libva-nvidia-driver/distinfo | 17 ++++++++ .../libva-nvidia-driver/files/patch-meson.build | 21 ++++++++++ multimedia/libva-nvidia-driver/pkg-descr | 9 +++++ 5 files changed, 93 insertions(+) diff --git a/multimedia/Makefile b/multimedia/Makefile index 27e9c05c0cf9..580bdb4c2ed0 100644 --- a/multimedia/Makefile +++ b/multimedia/Makefile @@ -197,6 +197,7 @@ SUBDIR += libva-intel-driver SUBDIR += libva-intel-hybrid-driver SUBDIR += libva-intel-media-driver + SUBDIR += libva-nvidia-driver SUBDIR += libva-utils SUBDIR += libva-vdpau-driver SUBDIR += libvdpau diff --git a/multimedia/libva-nvidia-driver/Makefile b/multimedia/libva-nvidia-driver/Makefile new file mode 100644 index 000000000000..ac605cbd58c3 --- /dev/null +++ b/multimedia/libva-nvidia-driver/Makefile @@ -0,0 +1,45 @@ +PORTNAME= libva-nvidia-driver +DISTVERSIONPREFIX= v +DISTVERSION= 0.0.10 +CATEGORIES= multimedia + +PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ +PATCHFILES+= 8e8d49e11772.patch:-p1 # https://github.com/elFarto/nvidia-vaapi-driver/pull/220 +PATCHFILES+= 5dc46a5a2fab.patch:-p1 # https://github.com/elFarto/nvidia-vaapi-driver/pull/220 +PATCHFILES+= 22be7754bee5.patch:-p1 # https://github.com/elFarto/nvidia-vaapi-driver/pull/220 +PATCHFILES+= 119a5a3ac448.patch:-p1 # https://github.com/elFarto/nvidia-vaapi-driver/pull/220 +PATCHFILES+= 39c08a61a888.patch:-p1 # https://github.com/elFarto/nvidia-vaapi-driver/pull/220 +PATCHFILES+= fc1afd905f8c.patch:-p1 # https://github.com/elFarto/nvidia-vaapi-driver/pull/220 +PATCHFILES+= 97430842d11a.patch:-p1 # https://github.com/elFarto/nvidia-vaapi-driver/pull/220 + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= NVDEC-based backend for VAAPI +WWW= https://github.com/elFarto/nvidia-vaapi-driver + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/COPYING + +ONLY_FOR_ARCHS= amd64 +ONLY_FOR_ARCHS_REASON= Unusable without nvidia-drm-kmod and libc6-shim + +BUILD_DEPENDS= libdrm>=2.4.60,1:graphics/libdrm \ + ffnvcodec-headers>=11.1.5.1:multimedia/ffnvcodec-headers \ + libva>=2.8.0:multimedia/libva + +USES= compiler:c11 gl meson pkgconfig +USE_GITHUB= yes +USE_GL= egl +GH_ACCOUNT= elFarto +GH_PROJECT= nvidia-vaapi-driver +PLIST_FILES= lib/dri/nvidia-drm_drv_video.so + +OPTIONS_DEFINE= GSTREAMER +OPTIONS_DEFAULT=GSTREAMER + +GSTREAMER_USES= gstreamer:1 +GSTREAMER_USE= GSTREAMER=bad + +post-patch-GSTREAMER-off: + @${REINPLACE_CMD} 's/gstreamer-codecparsers-1\.0//' ${WRKSRC}/meson.build + +.include <bsd.port.mk> diff --git a/multimedia/libva-nvidia-driver/distinfo b/multimedia/libva-nvidia-driver/distinfo new file mode 100644 index 000000000000..ecd751f574e3 --- /dev/null +++ b/multimedia/libva-nvidia-driver/distinfo @@ -0,0 +1,17 @@ +TIMESTAMP = 1686388865 +SHA256 (elFarto-nvidia-vaapi-driver-v0.0.10_GH0.tar.gz) = df63b0832ccf9f74a90ff8b26d8e069606e0614d1748e35a857d2e53745ab95c +SIZE (elFarto-nvidia-vaapi-driver-v0.0.10_GH0.tar.gz) = 182313 +SHA256 (8e8d49e11772.patch) = 7bba9dc7e96961a4e9b7046c192cfe0bde7d76c9765dd3df4ad4c0368378a427 +SIZE (8e8d49e11772.patch) = 1258 +SHA256 (5dc46a5a2fab.patch) = 9d63405e05f60ac702a3842def28645907b5319dbcea124f97b965344f27cbd2 +SIZE (5dc46a5a2fab.patch) = 3602 +SHA256 (22be7754bee5.patch) = c41d0f88ed773c751d4f515d6e537232a679cbc5d38e985cb77f422259c107a9 +SIZE (22be7754bee5.patch) = 1248 +SHA256 (119a5a3ac448.patch) = d6d981539ea4c6c3143532ad0182aa68b6df72a5c58232e3692247f8afbeff6f +SIZE (119a5a3ac448.patch) = 2064 +SHA256 (39c08a61a888.patch) = c84fedb1e77f8465c44d48e4aefd9d78399b40c3f75ac3fa8b1ae730db285e4c +SIZE (39c08a61a888.patch) = 990 +SHA256 (fc1afd905f8c.patch) = 2afb9e9d0ad86d1b8bf286dbc9921f98c2c2efb0a0353e47d031a90dac515e3d +SIZE (fc1afd905f8c.patch) = 1229 +SHA256 (97430842d11a.patch) = 272c10f67ac344b83d87a8662eda6f18d6955157597e4171ba060455af0e5a6a +SIZE (97430842d11a.patch) = 1289 diff --git a/multimedia/libva-nvidia-driver/files/patch-meson.build b/multimedia/libva-nvidia-driver/files/patch-meson.build new file mode 100644 index 000000000000..e155c3c2f0ce --- /dev/null +++ b/multimedia/libva-nvidia-driver/files/patch-meson.build @@ -0,0 +1,21 @@ +- Avoid conflict with libva-vdpau-driver + +--- meson.build.orig 2023-06-10 09:21:05 UTC ++++ meson.build +@@ -71,7 +71,7 @@ shared_library( + nvidia_incdir = include_directories('nvidia-include') + + shared_library( +- 'nvidia_drv_video', ++ 'nvidia-drm_drv_video', + name_prefix: '', + sources: sources, + dependencies: deps, +@@ -83,6 +83,6 @@ meson.add_devenv(environment({ + + meson.add_devenv(environment({ + 'NVD_LOG': '1', +- 'LIBVA_DRIVER_NAME': 'nvidia', ++ 'LIBVA_DRIVER_NAME': 'nvidia-drm', + 'LIBVA_DRIVERS_PATH': meson.project_build_root(), + })) diff --git a/multimedia/libva-nvidia-driver/pkg-descr b/multimedia/libva-nvidia-driver/pkg-descr new file mode 100644 index 000000000000..01d24de66009 --- /dev/null +++ b/multimedia/libva-nvidia-driver/pkg-descr @@ -0,0 +1,9 @@ +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