summaryrefslogtreecommitdiff
path: root/x11/nvidia-driver
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2007-11-24 21:55:46 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2007-11-24 21:55:46 +0000
commit99e04bc80337b77ab7c8f4deb304404d87441b49 (patch)
tree54767f0fe0248155e95ab803a9cb15b9d4e9db20 /x11/nvidia-driver
parentMark broken on 5.x: fails to install. (diff)
- Fix `agpvar.h' location on recent -CURRENT
- Building with -Werror requires prototype for suser() Based on PR: ports/118063 Submitted by: Yuri Pankov Approved by: portmgr (linimon)
Notes
Notes: svn path=/head/; revision=202820
Diffstat (limited to 'x11/nvidia-driver')
-rw-r--r--x11/nvidia-driver/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile
index 79fa26277d78..b460034283da 100644
--- a/x11/nvidia-driver/Makefile
+++ b/x11/nvidia-driver/Makefile
@@ -91,6 +91,14 @@ LIB_DEPENDS+= m.3:${PORTSDIR}/misc/compat5x
post-patch: .SILENT
# We should support -CURRENT: kill the check
${REINPLACE_CMD} '24,26d' ${WRKSRC}/src/nv-freebsd.h
+# Fix `agpvar.h' location on recent -CURRENT
+.if ${OSVERSION} >= 800004
+ ${REINPLACE_CMD} -e 's,pci/agpvar\.h,dev/agp/agpvar.h,' \
+ ${WRKSRC}/src/nv-freebsd.h
+.endif
+# Building with -Werror requires prototype for suser()
+ ${REINPLACE_CMD} -e '15s,^,#include <sys/priv.h>,' \
+ ${WRKSRC}/src/nvidia_os.c
.if defined(WITH_FREEBSD_AGP)
${REINPLACE_CMD} -E 's/undef (NV_SUPPORT_OS_AGP)/define \1/' \
${WRKSRC}/src/nv-freebsd.h