notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Ukraine
Some details on the 2023-01-16 website outage.
We just rebooted with several updates: * new HMTLify code * no port maintainer is now highly visible (e.g. https://freshports.org/security/sssd/) * fixed search logic error when using plain/ text details at https://github.com/FreshPorts/freshports/releases/tag/2.2.34
Port details
nvidia-driver-340 NVidia graphics card binary drivers for hardware OpenGL rendering
340.108_3 x11 on this many watch lists=3 search for ports that depend on this port An older version of this port was marked as vulnerable. Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout Version of this port present on the latest quarterly branch. NOTE: Slave port - quarterly revision is most likely wrong.
Maintainer: danfe@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2015-02-03 16:18:41
Last Update: 2022-07-20 14:23:32
Commit Hash: d357bca
People watching this port, also watch:: xf86-input-keyboard, rsync, cscope, pkg, git
Also Listed In: kld
License: NVIDIA
Description:
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb
pkg-plist: as obtained via: make generate-plist
Expand this list (110 items)
Collapse this list.
  1. @kld /boot/modules
  2. @ldconfig
  3. /usr/local/share/licenses/nvidia-driver-340-340.108_3/catalog.mk
  4. /usr/local/share/licenses/nvidia-driver-340-340.108_3/LICENSE
  5. /usr/local/share/licenses/nvidia-driver-340-340.108_3/NVIDIA
  6. bin/nvidia-bug-report.sh
  7. bin/nvidia-debugdump
  8. bin/nvidia-smi
  9. etc/libmap.d/nvidia.conf
  10. @comment /libGL.so.1
  11. @comment /libEGL.so.1
  12. @comment /libGLESv2.so.2
  13. lib/libEGL-NVIDIA.so
  14. lib/libEGL-NVIDIA.so.1
  15. lib/libEGL_nvidia.so
  16. lib/libEGL_nvidia.so.0
  17. lib/libGL-NVIDIA.so
  18. lib/libGL-NVIDIA.so.1
  19. lib/libGLESv1_CM_nvidia.so
  20. lib/libGLESv1_CM_nvidia.so.1
  21. lib/libGLESv2-NVIDIA.so
  22. lib/libGLESv2-NVIDIA.so.2
  23. lib/libGLESv2_nvidia.so
  24. lib/libGLESv2_nvidia.so.2
  25. @comment /libGLX.so
  26. @comment /libGLX.so.0
  27. @comment lib/libGLX_indirect.so.0
  28. lib/libGLX_nvidia.so
  29. lib/libGLX_nvidia.so.0
  30. lib/libGLdispatch.so
  31. lib/libGLdispatch.so.0
  32. lib/libOpenGL.so
  33. lib/libOpenGL.so.0
  34. lib/libXvMCNVIDIA.a
  35. lib/libXvMCNVIDIA.so
  36. lib/libXvMCNVIDIA.so.1
  37. lib/libXvMCNVIDIA_dynamic.so.1
  38. lib/libnvidia-cfg.so
  39. lib/libnvidia-cfg.so.1
  40. @comment lib/libnvidia-egl-gbm.so
  41. @comment lib/libnvidia-egl-gbm.so.1
  42. @comment lib/libnvidia-egl-wayland.so
  43. @comment lib/libnvidia-egl-wayland.so.1
  44. lib/libnvidia-eglcore.so
  45. lib/libnvidia-eglcore.so.1
  46. lib/libnvidia-glcore.so
  47. lib/libnvidia-glcore.so.1
  48. lib/libnvidia-glsi.so
  49. lib/libnvidia-glsi.so.1
  50. lib/libnvidia-glvkspirv.so
  51. lib/libnvidia-glvkspirv.so.1
  52. lib/libnvidia-ml.so
  53. lib/libnvidia-ml.so.1
  54. lib/libnvidia-tls.so
  55. lib/libnvidia-tls.so.1
  56. lib/libnvidia-vulkan-producer.so
  57. lib/libnvidia-vulkan-producer.so.1
  58. lib/libvdpau_nvidia.so
  59. lib/vdpau/libvdpau_nvidia.so.1
  60. lib32/libEGL.so
  61. lib32/libEGL.so.1
  62. lib32/libEGL_nvidia.so
  63. lib32/libEGL_nvidia.so.0
  64. lib32/libGL.so
  65. lib32/libGL.so.1
  66. lib32/libGLESv1_CM.so
  67. lib32/libGLESv1_CM.so.1
  68. lib32/libGLESv1_CM_nvidia.so
  69. lib32/libGLESv1_CM_nvidia.so.1
  70. lib32/libGLESv2.so
  71. lib32/libGLESv2.so.2
  72. lib32/libGLESv2_nvidia.so
  73. lib32/libGLESv2_nvidia.so.2
  74. lib32/libGLX.so
  75. lib32/libGLX.so.0
  76. lib32/libGLX_nvidia.so
  77. lib32/libGLX_nvidia.so.0
  78. lib32/libGLdispatch.so
  79. lib32/libGLdispatch.so.0
  80. lib32/libOpenGL.so
  81. lib32/libOpenGL.so.0
  82. lib32/libnvidia-cfg.so
  83. lib32/libnvidia-cfg.so.1
  84. lib32/libnvidia-eglcore.so
  85. lib32/libnvidia-eglcore.so.1
  86. lib32/libnvidia-glcore.so
  87. lib32/libnvidia-glcore.so.1
  88. lib32/libnvidia-glsi.so
  89. lib32/libnvidia-glsi.so.1
  90. lib32/libnvidia-glvkspirv.so
  91. lib32/libnvidia-glvkspirv.so.1
  92. lib32/libnvidia-tls.so
  93. lib32/libnvidia-tls.so.1
  94. lib32/vdpau/libvdpau_nvidia.so.1
  95. man/man1/nvidia-smi.1.gz
  96. @comment share/egl/egl_external_platform.d/10_nvidia_wayland.json
  97. @comment share/egl/egl_external_platform.d/15_nvidia_gbm.json
  98. share/glvnd/egl_vendor.d/10_nvidia.json
  99. share/vulkan/icd.d/nvidia_icd.json
  100. share/vulkan/implicit_layer.d/nvidia_layers.json
  101. lib/xorg/modules/drivers/nvidia_drv.so
  102. lib/xorg/modules/extensions/.nvidia/libglx.so
  103. lib/xorg/modules/extensions/.nvidia/libglx.so.1
  104. lib/xorg/modules/extensions/libglxserver_nvidia.so
  105. lib/xorg/modules/extensions/libglxserver_nvidia.so.1
  106. /boot/modules/nvidia.ko
  107. /boot/modules/nvidia-modeset.ko
  108. @owner
  109. @group
  110. @mode
Collapse this list.
Dependency lines:
  • nvidia-driver-340>0:x11/nvidia-driver-340
Conflicts:
CONFLICTS_INSTALL:
  • nvidia-driver
  • nvidia-driver-*
  • nvidia-secondary-driver
Conflicts Matches:
There are no Conflicts Matches for this port. This is usually an error.
To install the port:
cd /usr/ports/x11/nvidia-driver-340/ && make install clean
To add the package, run one of these commands:
  • pkg install x11/nvidia-driver-340
  • pkg install nvidia-driver-340
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: nvidia-driver-340
Flavors: there is no flavor information for this port.
ONLY_FOR_ARCHS: i386 amd64
distinfo:

Packages (timestamps in pop-ups are UTC):
nvidia-driver-340
ABIlatestquarterly
FreeBSD:11:aarch64pkg-falloutpkg-fallout
FreeBSD:11:amd64340.108_3340.108_3
FreeBSD:11:armv6pkg-falloutpkg-fallout
FreeBSD:11:i386340.108_3340.108_3
FreeBSD:11:mipspkg-falloutpkg-fallout
FreeBSD:11:mips64pkg-falloutpkg-fallout
FreeBSD:12:aarch64pkg-falloutpkg-fallout
FreeBSD:12:amd64340.108_3340.108_3
FreeBSD:12:armv6pkg-falloutpkg-fallout
FreeBSD:12:armv7pkg-falloutpkg-fallout
FreeBSD:12:i386340.108_3340.108_3
FreeBSD:12:mipspkg-falloutpkg-fallout
FreeBSD:12:mips64pkg-falloutpkg-fallout
FreeBSD:12:powerpc64pkg-falloutpkg-fallout
FreeBSD:13:aarch64pkg-falloutpkg-fallout
FreeBSD:13:amd64340.108_3340.108_3
FreeBSD:13:armv6pkg-falloutpkg-fallout
FreeBSD:13:armv7pkg-falloutpkg-fallout
FreeBSD:13:i386340.108_3340.108_3
FreeBSD:13:mipspkg-falloutpkg-fallout
FreeBSD:13:mips64pkg-falloutpkg-fallout
FreeBSD:13:powerpc64pkg-falloutpkg-fallout
FreeBSD:13:riscv64pkg-falloutpkg-fallout
FreeBSD:14:aarch64pkg-falloutpkg-fallout
FreeBSD:14:amd64340.108_3pkg-fallout
FreeBSD:14:armv6pkg-falloutpkg-fallout
FreeBSD:14:armv7pkg-falloutpkg-fallout
FreeBSD:14:i386340.108_3pkg-fallout
FreeBSD:14:mipspkg-falloutpkg-fallout
FreeBSD:14:mips64pkg-falloutpkg-fallout
FreeBSD:14:powerpc64pkg-falloutpkg-fallout
FreeBSD:14:riscv64pkg-falloutpkg-fallout
 
Master port: x11/nvidia-driver
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. x11.pc : x11/libX11
  2. xorg-server.pc : x11-servers/xorg-server
  3. xext.pc : x11/libXext
Runtime dependencies:
  1. x11.pc : x11/libX11
  2. xorg-server.pc : x11-servers/xorg-server
  3. xext.pc : x11/libXext
There are no ports dependent upon this port

Configuration Options:
Options name:
USES:
pkg-message:
For install:
WWW: https://www.nvidia.com/object/unix.html
Master Sites:
Expand this list (7 items)
Collapse this list.
  1. ftp://download.nvidia.com/XFree86/FreeBSD-x86_64/340.108/
  2. ftp://download1.nvidia.com/XFree86/FreeBSD-x86_64/340.108/
  3. http://download.nvidia.com/XFree86/FreeBSD-x86_64/340.108/
  4. http://us.download.nvidia.com/XFree86/FreeBSD-x86_64/340.108/
  5. https://download1.nvidia.com/XFree86/FreeBSD-x86_64/340.108/
  6. https://jp.download.nvidia.com/XFree86/FreeBSD-x86_64/340.108/
  7. https://tw.download.nvidia.com/XFree86/FreeBSD-x86_64/340.108/
Collapse this list.

Number of commits found: 25

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
This is a slave port. You may also want to view the commits to the master port: x11/nvidia-driver
CommitCreditsLog message
340.108_3
20 Jul 2022 14:23:32
commit hash:d357bca4f0e71714865e030d7a1e611845d9050bcommit hash:d357bca4f0e71714865e030d7a1e611845d9050bcommit hash:d357bca4f0e71714865e030d7a1e611845d9050bcommit hash:d357bca4f0e71714865e030d7a1e611845d9050b files touched by this commit
Tobias C. Berner (tcberner) search for other commits by this committer
x11: remove 'Created by' lines

A big Thank You to the original contributors of these ports:

  *  Adam Weinberger <adam@vectors.cx>
  *  Adam Weinberger <adamw@FreeBSD.org>
  *  Alex Dupre <ale@FreeBSD.org>
  *  Alexander Matey <matey@cis.ohio-state.edu>
  *  Alexander Nedotsukov <bland@FreeBSD.org>
  *  Alexey Dokuchaev <danfe@FreeBSD.org>
  *  Alexey Dokuchaev <danfe@regency.nsu.ru>
  *  Alexey Mikhailov <karma@ez.pereslavl.ru>
  *  Andrew Pantyukhin <infofarmer@FreeBSD.org>
  *  Anton Berezin <tobez@FreeBSD.org>
  *  Anton Toernqvist <antont@inbox.lv>
(Only the first 15 lines of the commit message are shown above View all of this commit message)
340.108_3
22 Jun 2021 18:53:08
commit hash:da3162c7c9f01912ba1940e188b253f2b5c7ba77commit hash:da3162c7c9f01912ba1940e188b253f2b5c7ba77commit hash:da3162c7c9f01912ba1940e188b253f2b5c7ba77commit hash:da3162c7c9f01912ba1940e188b253f2b5c7ba77 files touched by this commit
Kevin Bowling (kbowling) search for other commits by this committer
graphics/mesa-libs: Bump reverse deps for libglvnd

Per discussion with bapt on helping pkg handle the changing of these
deps and avoiding impossible upgrade senarios.

PR:		246767
Reviewed by:	manu, bapt
Approved by:	x11
Differential Revision:	https://reviews.freebsd.org/D30824
340.108_2
06 Apr 2021 14:31:07
commit hash:305f148f482daf30dcf728039d03d019f88344ebcommit hash:305f148f482daf30dcf728039d03d019f88344ebcommit hash:305f148f482daf30dcf728039d03d019f88344ebcommit hash:305f148f482daf30dcf728039d03d019f88344eb files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
Remove # $FreeBSD$ from Makefiles.
340.108_2
21 Sep 2020 09:05:04
Revision:549424Original commit files touched by this commit
manu search for other commits by this committer
Fix nvidia-driver* after r548950

Now that mesa include glesv1 lib, remove the nvidia generic named lib
and add more entries in libmap.conf so the nvidia ones are used.

PR:		249448
Reported by:	VVD <vvd@unislabs.com>
340.108_1
30 Jun 2020 07:42:02
Revision:540866Original commit files touched by this commit
0mp search for other commits by this committer
Do not mention loading modules via loader.conf

It is generally discouraged to load graphics kernel modules via
loader.conf(5). According to kevans@, loading Nvidia modules like this is
fragile for UEFI on FreeBSD <= 12.1. It might work, but those modules are
large and the loader's staging area is insufficient to contain kernel,
Nvidia modules, and much of anything else at the same time.

Also, while here, encourage people to use sysrc to modify the contents of
rc.conf(5).

Reviewed by:	danfe
Approved by:	maintainer (danfe)
Differential Revision:	https://reviews.freebsd.org/D25506
340.108
22 Feb 2020 07:55:37
Revision:526742Original commit files touched by this commit
danfe search for other commits by this committer
Update nVidia drivers to their most recent versions.  The prominent change
is that 32-bit libraries are now provided with the 4xx driver versions, so
games should work under Wine.

PR:	242177
340.107_6
20 Feb 2020 21:15:45
Revision:526589Original commit files touched by this commit
zeising search for other commits by this committer
Update xorg x11 servers to 1.20.7

Update xorg x11 servers to 1.20.7.  This updates x11-servers/xorg-server,
xephyr, xorg-dmx, xorg-nestserver, xorg-vbserver and xwayland.

Enable the UDEV backend by default, instead of the DEVD backend, for
autoconfiguration of input devices on FreeBSD 12 and later.
FreeBSD 11 lacks the needed support in base and will keep on using the DEVD
backend.
Support for the HAL backend is dropped completely, it has been deprecated
for a long time.
Update and improve the DEVD backend.
Add a pkg message about sysctl configuration that might be needed when using
UDEV.
(Only the first 15 lines of the commit message are shown above View all of this commit message)
340.107_5
25 Oct 2019 08:00:21
Revision:515584Original commit files touched by this commit
danfe search for other commits by this committer
Move Linux versions of NVidia graphics libraries (OpenGL/GLX/EGL/GLES/GLVND)
to its own ports instead of abusing the driver ports and making maintenance
thereof a nightmare.  This is also what most, if not all, GNU/Linux distros
do, allows to properly annotate ports with correct CATETORIES, USES, macros
like NO_BUILD etc., and greatly simplify Makefiles and distinfo files.
340.107_4
08 Jun 2019 12:13:47
Revision:503722Original commit files touched by this commit
tijl search for other commits by this committer
Update CentOS 7 ports to 7.6.1810.

This adds some new ports:
converters/linux-c7-fribidi required by x11-toolkits/linux-c7-pango.
graphics/linux-c7-libglvnd required by graphics/linux-c7-dri.
graphics/linux-c7-wayland required by graphics/linux-c7-dri.
print/linux-c7-freetype unbundled from emulators/linux_base-c7 because it
depends on graphics/linux-c7-png now.

Mesa OpenGL libraries in graphics/linux-c7-dri now support libglvnd (GL
Vendor-Neutral Dispatch library) which allows some applications to use
Mesa while others use Nvidia OpenGL.  The x11/nvidia-driver* ports have
been changed so versions above 390.42 now use CentOS libglvnd and no longer
install a bundled copy.

PR:		229431
Submitted by:	pkubaj (partly)
340.107_3
18 Jan 2019 17:52:59
Revision:490643Original commit files touched by this commit
tijl search for other commits by this committer
Recreate symlinks instead of renaming them, so they point to the right
file.

PR:		226403
Submitted by:	Tatu Kilappa <tatu.kilappa@iki.fi>
Approved by:	maintainer timeout (10 months)
340.107_2
14 Dec 2018 16:24:02
Revision:487446Original commit files touched by this commit
tijl search for other commits by this committer
Install both 32 bit and 64 bit Linux libraries from the official Linux
driver distribution instead of the ones bundled with the FreeBSD driver
which are incomplete and 32 bit only.  This makes amd64 Linux OpenGL
programs work on FreeBSD 12.0 and recent 11-STABLE.  This does not enable
CUDA.

- Initialise DISTFILES so a file can be added by the LINUX option.
- Set EXTRACT_ONLY because the file added by the LINUX option is a
  self-extracting archive handled in post-extract.
- The patches for <355.06 and >=355.06 are identical except for the path.
  Keep only one set (listed in SUB_PATCHES) because more patches have been
  added.  Modify their path in pre-patch.  The patches have been renamed
  from extra-patch-* to extra-patch-*.in.
- Set OPTIONS_SUB and use option helpers for the LINUX option.
- Define LINUX_ARCH_SUFX like ARCH_SUFX because LINUX_ARCH can be i386 on
(Only the first 15 lines of the commit message are shown above View all of this commit message)
340.107_1
11 Sep 2018 18:34:28
Revision:479538Original commit files touched by this commit
zeising search for other commits by this committer
Change x11/xorgproto to become a build dep

Change x11/xorgproto to become a build time dependency when added to
USE_XORG.  Change the dependency to be on the port, rather than a file the
port installs.
Fix fallout.
Bump portrevision on depending ports.

PR:		230909
Reviewed by:	eadler
Approved by:	portmgr (antoine)
Obtained
from:	https://github.com/FreeBSDDesktop/freebsd-ports/tree/feature/xorgproto
exp-run:	antoine
Differential Revision:	https://reviews.freebsd.org/D16906
340.107
07 Jun 2018 20:22:51
Revision:471954Original commit files touched by this commit
danfe search for other commits by this committer
Update `x11/nvidia-driver-340' to the latest version of 340.107:

  - Added support for X.Org xserver ABI 24 (xorg-server 1.20)
  - Fixed a bug which could cause X servers that export a Video Driver
    ABI earlier than 0.8 to crash when running X11 applications which
    call XRenderAddTraps()
340.106
22 Jan 2018 09:05:44
Revision:459638Original commit files touched by this commit
danfe search for other commits by this committer
Update nVidia drivers to their latest versions which fix frequent kernel
panics reported by some users.

PR:	225346
340.104
26 Dec 2017 18:55:18
Revision:457308Original commit files touched by this commit
danfe search for other commits by this committer
Update nVidia driver ports to their most recent versions, bringing assorted
bugfixes and support for X.Org xserver ABI 23 (xorg-server version 1.19).

PR:	224597
340.102
03 Apr 2017 12:08:32
Revision:437618Original commit files touched by this commit
danfe search for other commits by this committer
Update nVidia drivers to their most recent versions: 375.39 (long lived
branch); legacy versions: 340.102 and 304.135.

PR:	216574, 217341
340.101_1
11 Feb 2017 16:43:11
Revision:433892Original commit files touched by this commit This port version is marked as vulnerable.
kwm search for other commits by this committer
Now that all supported FreeBSD versions support libmap.conf files installed
from ports, remove the symlink dance with libGL/libEGL/libgles and the
nvidia-driver ports.

* Revert libGL/libEGL/libglesv2 ports to normal.
* Rename the conflicting libraries from the nvidia-driver ports with a
  -NVIDIA prefix and install a libmap.conf file to map to these versions.
* Remove the special case from Mk/Scripts/qa.sh for libGL and libEGL.
* Sadly the symlink dance between nvidia-driver and xorg-server for glx.so
  need to stay, due to xorg-server opening that file with dlopen(3).

Approved by:	portmgr@ (mat@ (prio version))
Differential Revision:	https://reviews.freebsd.org/D7848
340.101
13 Jan 2017 12:02:49
Revision:431369Original commit files touched by this commit This port version is marked as vulnerable.
tijl search for other commits by this committer
Update nvidia driver to 375.26 and legacy drivers to 340.101 and 304.134.

This brings official support for FreeBSD 11 and Xorg server 1.19.

PR:		215370
Submitted by:	kbowling
Approved by:	danfe (maintainer)
340.96_4
19 Dec 2016 21:13:03
Revision:428960Original commit files touched by this commit This port version is marked as vulnerable.
tijl search for other commits by this committer
Add build dependency on linux_base so the build process can run tls_test.
This affects which copy of Linux libnvidia-tls gets installed.
Also add a run dependency on Linux Xorg libraries needed by some of the
installed libraries.

PR:		215345
340.96_3
05 Nov 2016 12:57:38
Revision:425385Original commit files touched by this commit This port version is marked as vulnerable.
tijl search for other commits by this committer
Add libEGL to linux-c7-dri, needed by linux-c7-cairo.
340.96_2
03 Nov 2016 19:46:18
Revision:425269Original commit files touched by this commit This port version is marked as vulnerable.
tijl search for other commits by this committer
Allow linux-*-dri and nvidia-driver to coexist.
340.96_1
30 Aug 2016 16:51:21
Revision:421123Original commit files touched by this commit This port version is marked as vulnerable.
danfe search for other commits by this committer
Fix damage done in r421117: UPDATING entries do not make good `pkg-message'
files, especially when there already is existing `files/pkg-message.in'.

Unfortunately, this now requires port revision bump in all three ports.

Pointy hat to:	cem
340.96
02 Jul 2016 06:42:22
Revision:417910Original commit files touched by this commit This port version is marked as vulnerable.
danfe search for other commits by this committer
Update nVidia legacy driver versions to 304.131 and 340.96, respectively,
to gain advantage of added support for X.Org X server ABI 20 (xorg-server
1.18).  They also fixed a bug that could cause texture corruption in some
OpenGL applications when video memory is exhausted by a combination of
simultaneously running graphical and compute workloads.

PR:	209027
340.93
24 Sep 2015 22:09:55
Revision:397773Original commit files touched by this commit This port version is marked as vulnerable.
jkim search for other commits by this committer
- Update x11/nvidia-driver to 346.96.
- Update x11/nvidia-driver-340 to 340.93.
- Update x11/nvidia-driver-304 to 304.128.

Approved by:	danfe (maintainer)
340.76
03 Feb 2015 16:18:34
Revision:378360Original commit files touched by this commit This port version is marked as vulnerable.
danfe search for other commits by this committer
- Move mainstream version to 346.xx (update to 346.35) and create another
  legacy slave port `x11/nvidia-driver-340'; update top comment accordingly
- No longer explicitly advertise brokenness for ${OSVERSION} > 1000041 and
  ${NVVERSION} <= 71.08615 combination: not only old legacy ports recently
  had been removed, but frankly users of those old gfx cards should either
  not be running FreeBSD 10.x or totally rely on self-support, thus making
  this BROKEN statement merely an annoyance for them (other checks for some
  older driver versions still remain as being functional)
- Change CONFLICTS to CONFLICTS_INSTALL (honestly, this change *should* be
  no-op since CONFLICTS should be installation-time conflicts in the first
  place, but adhere to this stupidity of the framework for the time being)

Number of commits found: 25