aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2011-05-23 15:14:50 +0800
committerdanfe <danfe@FreeBSD.org>2011-05-23 15:14:50 +0800
commit624cc40b12c7a904e3f24bd6bc3ba17dc468fffc (patch)
tree41b5035edb2566907fe02c5e45c5ba0cc4780fc4 /x11
parentf1d83e87f8921078e3d669a571c958e298dd467c (diff)
downloadfreebsd-ports-gnome-624cc40b12c7a904e3f24bd6bc3ba17dc468fffc.tar.gz
freebsd-ports-gnome-624cc40b12c7a904e3f24bd6bc3ba17dc468fffc.tar.zst
freebsd-ports-gnome-624cc40b12c7a904e3f24bd6bc3ba17dc468fffc.zip
Unbreak on -CURRENT after r221320.
Reported by: several Submitted by: Pan Tsu
Diffstat (limited to 'x11')
-rw-r--r--x11/nvidia-driver/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile
index c884a09d443f..05dd690e6521 100644
--- a/x11/nvidia-driver/Makefile
+++ b/x11/nvidia-driver/Makefile
@@ -25,6 +25,11 @@ ARCH_SUFX= ${ARCH:S/i386//:S/amd/_/}
USE_XORG= xorg-server
USE_GL= gl
USE_LDCONFIG= yes
+# NVIDIA_ROOT is not set in src/Makefile, which results in bogus -I/src
+# passed to compiler and broken build on HEAD since r221320 when option
+# -Wmissing-include-dirs was added for kernel sources. Until properly
+# fixed upstream, use this hack below to universally set NVIDIA_ROOT.
+MAKE_ENV= NVIDIA_ROOT=${WRKSRC}
SUB_FILES= pkg-message
DOCSDIR= ${PREFIX}/share/doc/NVIDIA_GLX-1.0
MODULESDIR= lib/xorg/modules