svn commit: r423810 - head/x11/nvidia-driver
Alexey Dokuchaev
danfe at FreeBSD.org
Wed Oct 12 00:31:29 UTC 2016
Author: danfe
Date: Wed Oct 12 00:31:28 2016
New Revision: 423810
URL: https://svnweb.freebsd.org/changeset/ports/423810
Log:
Fix `linux.ko' false dependency. Starting with version 358.09, the driver
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
Modified:
head/x11/nvidia-driver/Makefile
Modified: head/x11/nvidia-driver/Makefile
==============================================================================
--- head/x11/nvidia-driver/Makefile Wed Oct 12 00:18:31 2016 (r423809)
+++ head/x11/nvidia-driver/Makefile Wed Oct 12 00:31:28 2016 (r423810)
@@ -195,6 +195,10 @@ post-patch: .SILENT
.if ! ${PORT_OPTIONS:MLINUX}
${REINPLACE_CMD} -E 's/define (NV_SUPPORT_LINUX_COMPAT)/undef \1/' \
${WRKSRC}/src/${NVSRC}/nv-freebsd.h
+. if ${NVVERSION} >= 358.009
+ ${REINPLACE_CMD} -E 's/define (NVKMS_SUPPORT_LINUX_COMPAT)/undef \1/' \
+ ${WRKSRC}/src/nvidia-modeset/nvidia-modeset-freebsd.c
+. endif
.endif
.if ${PORT_OPTIONS:MPAE}
${REINPLACE_CMD} -E 's/undef (NV_SUPPORT_PAE)/define \1/' \
More information about the svn-ports-all
mailing list