aboutsummaryrefslogtreecommitdiff
path: root/x11/nvidia-driver
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2011-11-08 06:22:02 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2011-11-08 06:22:02 +0000
commitf273d6785e181ba8ac3eb1999b4d209e5b018259 (patch)
treeee72e16a71d2a1dddf784cd46275cb5c3bc74eae /x11/nvidia-driver
parent869e9fd5739edcdcb3bbc83d1f9fddb93d97490b (diff)
downloadports-f273d6785e181ba8ac3eb1999b4d209e5b018259.tar.gz
ports-f273d6785e181ba8ac3eb1999b4d209e5b018259.zip
Notes
Diffstat (limited to 'x11/nvidia-driver')
-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 837b58da0320..d3b4784d45b3 100644
--- a/x11/nvidia-driver/Makefile
+++ b/x11/nvidia-driver/Makefile
@@ -103,6 +103,11 @@ post-patch: .SILENT
s/int nprot/&, vm_memattr_t *memattr/' \
${WRKSRC}/src/nvidia_dev.c
.endif
+# Catch up with FreeBSD SVN r225617
+.if ${OSVERSION} > 900043 && ${NVVERSION} < 1952200
+ ${REINPLACE_CMD} -e '/return/s/ioctl/sys_&/' \
+ ${WRKSRC}/src/nvidia_linux.c
+.endif
.if defined(WITH_FREEBSD_AGP)
${REINPLACE_CMD} -E 's/undef (NV_SUPPORT_OS_AGP)/define \1/' \
${WRKSRC}/src/nv-freebsd.h