aboutsummaryrefslogtreecommitdiff
path: root/x11/nvidia-driver/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Use LINUX_DEFAULT unmodified. The _64 suffix is no longer used. AlsoTijl Coosemans2019-07-101-2/+2
| | | | | | | | compare with c6 instead of c7 because c6 is expected to be the only distribution that doesn't use libglvnd from now on. Notes: svn path=/head/; revision=506356
* On amd64 adding DEFAULT_VERSIONS+=linux=c6 to /etc/make.conf made LinuxTijl Coosemans2019-07-101-12/+14
| | | | | | | | | | | | | | | | | | | | infrastructure ports (linux_base-c6 and linux-c6*) install i386 CentOS 6 packages. Using c6_64 instead of c6 made them install mixed amd64/i386 CentOS 6 packages and allowed Linux application ports to install amd64 binaries when available. The i386-only configuration was only useful for users of x11/nvidia-driver* which didn't provide Linux amd64 emulation until recently. With x11/nvidia-driver* now supporting Linux amd64 there's no longer a need for i386-only Linux on amd64. Let DEFAULT_VERSIONS+=linux=c6 make Linux infrastructure ports install mixed amd64/i386 CentOS 6 packages, like c6_64 before, and remove support for c6_64 as a value. Replace LINUX_ARCH with ARCH everywhere because they are always the same now. Notes: svn path=/head/; revision=506352
* Update CentOS 7 ports to 7.6.1810.Tijl Coosemans2019-06-081-89/+104
| | | | | | | | | | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=503722
* Unbreak the build after base (src) r347984.Alexey Dokuchaev2019-05-221-0/+5
| | | | | | | | PR: 238018 Differential Revision: https://reviews.freebsd.org/D20350 Notes: svn path=/head/; revision=502258
* Recreate symlinks instead of renaming them, so they point to the rightTijl Coosemans2019-01-181-5/+9
| | | | | | | | | | | file. PR: 226403 Submitted by: Tatu Kilappa <tatu.kilappa@iki.fi> Approved by: maintainer timeout (10 months) Notes: svn path=/head/; revision=490643
* Install both 32 bit and 64 bit Linux libraries from the official LinuxTijl Coosemans2018-12-141-29/+377
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 amd64. - Set LINUX_LIBDIR to the main lib directory: (/compat/linux)/usr/lib on i386 and (/compat/linux)/usr/lib64 on amd64. (The compat32 directory is (/compat/linux)/usr/lib.) - Define LINUX_LIBS, LINUX_LINKS, LINUX32_LIBS, LINUX32_LINKS, LINUX_PROGS, LINUX_MANS, and LINUX_DATA for all driver versions from 304.137 to 390.87. LINUX_LIBS and LINUX32_LIBS contain main libraries (i386/amd64) and compat32 libraries respectively. These are installed with INSTALL_LIB in post-install. LINUX_LINKS and LINUX32_LINKS contain symbolic link sources and their target. LINUX_PROGS are binaries installed with INSTALL_PROGRAM. LINUX_MANS are manuals installed with INSTALL_MAN. LINUX_DATA are data files and their destination, installed with INSTALL_DATA. The .if blocks for the different versions are sorted alphabetically on the first file. - Define PLIST_RE for all versions. These are sed commands applied to TMPPLIST in post-install. - Include bsd.port.pre.mk instead of bsd.port.options.mk to obtain LINUX_ARCH. - Adjust post-patch to disable installation of Linux libraries bundled with the FreeBSD driver. - Add post-patch-LINUX-on to setup nvidia_icd.json like nvidia-installer does on Linux. - Adjust existing post-install TMPPLIST edits to apply only to non-Linux files. - Add post-install-LINUX-on to install the Linux files. - Add files/extra-patch-src-nvidia_ctl.c.in and extra-patch-src-nvidia_dev.c.in. These patches make Linux stat(2) return the right major and minor number for /dev/nvidiactl and /dev/nvidia[0-9]+. Recent versions of the Linux libraries verify these. [1] Define the struct passed to linux_device_register_handler on the stack in nvidia_*_attach instead of as a global variable in case multiple graphics cards are attached in parallel. - Add files/extra-patch-src-nvidia_linux.c.in. It rewrites the Linux ioctl handler. The current implementation does not copyin arguments leading to kernel panics on FreeBSD 12 on machines that support Supervisor Mode Access Prevention (SMAP). - Add files/extra-patch-src-nvidia_pci.c.in. It adds a dependency on the linux_common kernel module for linux_device_register_handler. - Modify files/extra-patch-src_nvidia-modeset_nvidia-modeset-freebsd.c to add major/minor numbers (global struct here, because it is constant), rewrite ioctl, and add a dependency on linux_common for /dev/nvidia-modeset. PR: 217901 Analysed by: Alex S <iwtcex@gmail.com> [1] Tested by: Hannes Hauswedell <h2+fbsdports@fsfe.org> (390.87) Tested by: tijl (304.137) Approved by: maintainer timeout (15 days) Notes: svn path=/head/; revision=487446
* Update `x11/nvidia-driver' to version 390.87, which fixed a resourceAlexey Dokuchaev2018-09-301-7/+9
| | | | | | | | | | | | | leak introduced in the 390 series of drivers that could lead to reduced performance after starting and stopping several OpenGL and/or Vulkan applications. While here, replace deprecated @[un]exec keywords which do not specify when they should be executed with @post[un]exec and move KPI-related patching to a better place within the Makefile. PR: 231721 Notes: svn path=/head/; revision=480954
* Change x11/xorgproto to become a build depNiclas Zeising2018-09-111-1/+1
| | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=479538
* Unbreak nVidia drivers on recent -CURRENT, after change toGleb Smirnoff2018-08-311-2/+3
| | | | | | | | | kmem_free() in r338318. PR: 230780 Notes: svn path=/head/; revision=478606
* Unbreak nVidia drivers on recent -CURRENT, after change toGleb Smirnoff2018-08-211-0/+4
| | | | | | | | | kmem_alloc_contig() in r338143. PR: 230780 Notes: svn path=/head/; revision=477761
* Cleanup patch code that does nothing useful these days (changes are longAlexey Dokuchaev2018-07-231-11/+2
| | | | | | | integrated upstream). Notes: svn path=/head/; revision=475170
* Update `x11/nvidia-driver' to version 390.77. Changes in this release:Alexey Dokuchaev2018-07-211-1/+1
| | | | | | | | | | - Removed informational messages that were printed by `nvidia-modeset.ko' whenever a GPU device was allocated or freed - Fixed a bug that caused kwin OpenGL compositing to crash when launching certain OpenGL applications Notes: svn path=/head/; revision=475067
* Update nVidia driver to the latest long lived branch version 390.67.Alexey Dokuchaev2018-07-021-1/+2
| | | | Notes: svn path=/head/; revision=473697
* Garbage-collect some no longer relevant patching (it does nothing theseAlexey Dokuchaev2018-06-071-13/+0
| | | | | | | | | | | | | days); these are not the changes being made, these are previous changes being removed: - Fix CTLFLAG_* values for SYSCTL_ADD_PROC() after FreeBSD src r273377 - Replace `d_thread_t' (FreeBSD 4 support compat shim) with `struct thread' Reviewed by: grep(1), diff(1), sha1(1) Notes: svn path=/head/; revision=471930
* Unbreak nVidia drivers on recent -CURRENT, after memset() changes by mjg@Alexey Dokuchaev2018-06-041-3/+4
| | | | | | | | | in r334533 have revealed an existing bug in the nVidia code. PR: 228709 Notes: svn path=/head/; revision=471574
* Update nVidia driver long lived branch to version 390.59, which had addedAlexey Dokuchaev2018-05-271-1/+1
| | | | | | | | | | support for GeForce GTX 1050 (with Max-Q Design), Quadro P3200, and Quadro P4200, but most importantly, for X.Org xserver ABI 24 (xorg-server 1.20). PR: 228383 Notes: svn path=/head/; revision=470972
* Update nVidia driver to the latest long lived branch version 390.48.Alexey Dokuchaev2018-03-301-1/+1
| | | | Notes: svn path=/head/; revision=465942
* Update to the latest long lived branch version, 390.25.Alexey Dokuchaev2018-02-021-1/+1
| | | | | | | PR: 225574 Notes: svn path=/head/; revision=460676
* Update nVidia drivers to their latest versions which fix frequent kernelAlexey Dokuchaev2018-01-221-1/+1
| | | | | | | | | panics reported by some users. PR: 225346 Notes: svn path=/head/; revision=459638
* Update nVidia driver ports to their most recent versions, bringing assortedAlexey Dokuchaev2017-12-261-1/+1
| | | | | | | | | bugfixes and support for X.Org xserver ABI 23 (xorg-server version 1.19). PR: 224597 Notes: svn path=/head/; revision=457308
* Update nVidia driver to the most recent long lived branch version 384.90.Alexey Dokuchaev2017-10-031-1/+1
| | | | | | | | PR: 222547 Submitted by: kbowling Notes: svn path=/head/; revision=451134
* Update nVidia driver to the recent long lived branch version 384.59.Alexey Dokuchaev2017-08-031-1/+1
| | | | | | | PR: 221017 Notes: svn path=/head/; revision=447200
* Update `x11/nvidia-driver' to version 375.66, which fixes multipleAlexey Dokuchaev2017-05-241-2/+2
| | | | | | | | | | | vulnerabilities in the kernel mode layer handler. Security: f52e3a8d-3f7e-11e7-97a9-a0d3c19bfa21 PR: 219465 Submitted by: Andrew Marks Notes: svn path=/head/; revision=441608
* Revision bump of all ports with USE_GL after consolidation of mesa-libsMatthew Rezny2017-05-231-1/+1
| | | | | | | | Approved by: swills (mentor) Differential Revision: https://reviews.freebsd.org/D10845 Notes: svn path=/head/; revision=441503
* - Remove always true/false OSVERSION conditionsDmitry Marakasov2017-04-181-15/+2
| | | | | | | Approved by: portmgr blanket Notes: svn path=/head/; revision=438783
* Update nVidia drivers to their most recent versions: 375.39 (long livedAlexey Dokuchaev2017-04-031-2/+2
| | | | | | | | | branch); legacy versions: 340.102 and 304.135. PR: 216574, 217341 Notes: svn path=/head/; revision=437618
* Unbreak the build of nvidia-driver-304, which I broke in r433892 [1]Koop Mast2017-02-121-2/+2
| | | | | | | | | | While here add += to the SUB_LIST lines so we don't accidently overwrite other SUB_LIST if they should be added later. Reported by: Walter Schwarzenfeld <w.schwarzenfeld@utanet.at> [1] Notes: svn path=/head/; revision=433936
* Now that all supported FreeBSD versions support libmap.conf files installedKoop Mast2017-02-111-11/+28
| | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=433892
* Cosmetic change: reword comments to improve consistency and readability:Alexey Dokuchaev2017-01-271-6/+6
| | | | | | | | quote type and structure names and drop extra `SVN' word when referring to a particular code revision. Notes: svn path=/head/; revision=432550
* Chase `sys/capability.h' rename to `sys/capsicum.h' in FreeBSD src r263232.Alexey Dokuchaev2017-01-271-1/+11
| | | | | | | | | | | This is to unbreak the build on recent -CURRENT, where deprecation warning was added in r312758 (FreeBSD src aka base). While here, wrap one overly long line. PR: 216478 Notes: svn path=/head/; revision=432548
* Update nvidia driver to 375.26 and legacy drivers to 340.101 and 304.134.Tijl Coosemans2017-01-131-2/+2
| | | | | | | | | | | This brings official support for FreeBSD 11 and Xorg server 1.19. PR: 215370 Submitted by: kbowling Approved by: danfe (maintainer) Notes: svn path=/head/; revision=431369
* Add build dependency on linux_base so the build process can run tls_test.Tijl Coosemans2016-12-191-1/+2
| | | | | | | | | | | 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 Notes: svn path=/head/; revision=428960
* Add libEGL to linux-c7-dri, needed by linux-c7-cairo.Tijl Coosemans2016-11-051-1/+1
| | | | Notes: svn path=/head/; revision=425385
* Allow linux-*-dri and nvidia-driver to coexist.Tijl Coosemans2016-11-031-1/+1
| | | | Notes: svn path=/head/; revision=425269
* Fix `linux.ko' false dependency. Starting with version 358.09, the driverAlexey Dokuchaev2016-10-121-0/+4
| | | | | | | | | | | | | | includes a new kernel module, `nvidia-modeset.ko', a driver component that works in conjunction with the `nvidia.ko' kernel module. However, previously the build process did not respect LINUX compile (port) option. Adopt the same way this is done for the core driver. PR: 213222 Submitted by: peter Notes: svn path=/head/; revision=423810
* - Replace Mk/bsd.linux-apps.mk and Mk/bsd.linux-rpm.mk withTijl Coosemans2016-09-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mk/Uses/linux.mk. - Replace USE_LINUX=yes with USES+=linux and USE_LINUX=(.*) with USES+=linux:\1 in all ports. - Replace USE_LINUX_APPS with USE_LINUX in all ports. - Use INSTALL_SCRIPT instead of INSTALL_PROGRAM to install scripts in some ports. - When USE_LINUX_RPM is defined, simplify the way DISTFILES and EXTRACT_ONLY are defined. - Remove BRANDELF_DIRS and BRANDELF_FILES handling. In the very rare cases that it is still necessary ports can run ${BRANDELF} from post-patch. - Remove AUTOMATIC_PLIST handling. Only one port used it. - Fix Linux MASTER_SITES. - Replace OVERRIDE_LINUX_BASE_PORT and OVERRIDE_LINUX_NONBASE_PORTS with default versions framework. - bsd.port.mk: - Move Linux related bits to Uses/linux.mk, except USE_LINUX_PREFIX. - Put USE_LINUX_PREFIX handling after USES processing. - Define DOCSDIR, DATADIR, etc. after handling USE_LINUX_PREFIX so it can give these variables a different default value. - When a package needs to run Linux ldconfig check before installation if Linux support is enabled. - emulators/linux_base-*: - Use USES=linux and remove duplication. - Remove files/lp. FreeBSD or CUPS lp(1) should work. - Remove files/yp.conf. No longer seems to be used. - Remove pkg-deinstall and move pkg-install into pkg-plist. - Update pkg-descr and pkg-message. - Fix handling of ldconfig cache in pkg-plist. - devel/fb-adb: Use a Linux shell to run a Linux script but patch the script to use FreeBSD mkdir so mkdir -p $path creates $path and not /compat/linux/$path. PR: 211645 Exp-run by: antoine Approved by: portmgr (antoine) Notes: svn path=/head/; revision=421387
* x11/nvidia-driver: Update to 367.44Conrad Meyer2016-09-011-2/+2
| | | | | | | | | | | | | May fix an issue with a dark screen at first Xorg init for some users (reported on GTX960). PR: 212287 Reported by: O. Hartmann <ohartman at zedat.fu-berlin.de> Approved by: danfe, jonathan Differential Revision: https://reviews.freebsd.org/D7723 Notes: svn path=/head/; revision=421240
* Fix damage done in r421117: UPDATING entries do not make good `pkg-message'Alexey Dokuchaev2016-08-301-4/+1
| | | | | | | | | | | 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 Notes: svn path=/head/; revision=421123
* nvidia-driver: Add a note about nvidia-modeset.ko for 367.35 updateConrad Meyer2016-08-301-1/+1
| | | | | | | | | | | | Add a note in pkg-message and UPDATING. Correct a pkg-plist sorting mistake while here. Reviewed by: dhw, wblock Approved by: brd (previous version) Differential Revision: https://reviews.freebsd.org/D7700 Notes: svn path=/head/; revision=421117
* x11/nvidia-driver: Update to 367.35Conrad Meyer2016-08-281-21/+64
| | | | | | | | | | | | | | | | | | | | * Add needed x11 and xext dependencies Thanks to everyone who submitted patches, tested, and reviewed this update. PR: 201340 Submitted by: Bengt Ahlgren <bengta at sics.se>, Kevin Bowling <kbowling@>, Oleg <zoleg at vusovich.ru>, Tomoaki AOKI <junchoon at dec.sakura.ne.jp>, Ultima <Ultima1252 at gmail.com> Tested by: Jeremy Cox <jeremy.m.cox at gmail.com>, O. Hartmann <ohartman at zedat.fu-berlin.de>, Tomoaki AOKI Approved by: danfe Differential Revision: https://reviews.freebsd.org/D7569 Notes: svn path=/head/; revision=421027
* Remove another no-op sed(1) in-place patch: none of the currently supportedAlexey Dokuchaev2016-08-241-3/+0
| | | | | | | drivers attempt to allocate fixed width buffer bus_type[] on stack now. Notes: svn path=/head/; revision=420797
* Clean up the Makefile after recent changes: put source code and build logicAlexey Dokuchaev2016-08-191-25/+26
| | | | | | | | patching closer together and move OPTIONS-related patching thereafter. Non functional. Notes: svn path=/head/; revision=420499
* Deorbit support for nVidia driver legacy versions, part 3:Alexey Dokuchaev2016-08-191-16/+1
| | | | | | | | | | | | - libnvidia-cfg.so* files are always installed since version 81.074 - Au contraire, libnvidia-wfb.so.1 is not (since version 195.022) - Remove now useless checks for NVVERSIONs before 180.029 and 185.01829 (always false) and after 304.128 (always true) - Unconditionally rename libGLcore -> libnvidia-glcore in pkg-plist (been that way since version 256.053) Notes: svn path=/head/; revision=420496
* Deorbit support for nVidia driver legacy versions by cleaning up in-placeAlexey Dokuchaev2016-08-191-38/+1
| | | | | | | | | | | | | | | | | | patching of the driver(s) source code (part 2): - Only legacy drivers didn't know about new d_mmap() after src r201223, and page queue locking changes after src r207410, r207617, r207644, and r163622; ditto for /return/s/ioctl/sys_&/ after src r225617 - Remove now always true condition when adjusting Linux headers #include's after src r246085 - Contemporary driver versions are now aware of the +1 argument count in vm_map_find() since src r255426 - Do not try to unbreak the build of 173.14.xx series on recent -CURRENT: this legacy driver version was removed by kwm@ in r399180 last year - Remove remaining checks and patching code for outdated NVVERSION values Notes: svn path=/head/; revision=420490
* In sight of upcoming update, deorbit support for legacy versions (part 1):Alexey Dokuchaev2016-08-191-58/+14
| | | | | | | | | | | | | | | | | - Make the top comment reflect the current reality - MASTER_SITE_SUBDIR does not have be set later, as it no longer depends on NVVERSION (this also allows to move ONLY_FOR_ARCHS where it belongs) - Delete no longer relevant legacy only versions specific patches; retain EXTRA_PATCHES as this separation would still be needed in new versions - All security patches only touch legacy drivers and thus also deleted - PAE and WBINVD options are now unconditional (independent of NVVERSION) - Drop no longer needed LIB_DEPENDS on libm.so.3 from `misc/compat5x' - Adjust a comment and simplify regexp that had been sitting in my tree - Stop mentioning that this driver does not support PAE-enabled kernels in pkg-message Notes: svn path=/head/; revision=420482
* Simplify custom `update-distinfo' convenience target and make it more robust:Alexey Dokuchaev2016-06-301-8/+5
| | | | | | | | | | | previous join(1)-based implementation depended on how the file is sorted and often failed to work properly. While here, do not suppress default `.bak' suffix when editing files in-place to make debugging easier, shall it be needed. Notes: svn path=/head/; revision=417812
* Remove unneeded usage of:Mathieu Arnold2016-06-061-1/+1
| | | | | | | | | | | - MASTER_SITE_SUBDIR - ${MASTER_SITES_FOO} - :DEFAULT (and use a default when appropriate) Sponsored by: Absolight Notes: svn path=/head/; revision=416469
* Remove ${PORTSDIR}/ from dependencies, categories v, w, x, y, and z.Mathieu Arnold2016-04-011-1/+1
| | | | | | | | With hat: portmgr Sponsored by: Absolight Notes: svn path=/head/; revision=412351
* Drop 8 support.Mathieu Arnold2015-10-151-3/+3
| | | | | | | | | With hat: portmgr Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3694 Notes: svn path=/head/; revision=399346
* Fix a typo for x11/nvidia-driver-304.Jung-uk Kim2015-09-251-1/+1
| | | | | | | | Spotted by: Lena at lena dot kiev dot ua Approved by: danfe (maintainer, implicit) Notes: svn path=/head/; revision=397841