aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2004-06-21 22:01:52 +0800
committerfjoe <fjoe@FreeBSD.org>2004-06-21 22:01:52 +0800
commitcca26ca2464da0948befb82fc188b6bf7dae47e9 (patch)
treed7617a4b5e307682f35ae459017ac6317f8c906a /x11
parent7a1a8f0855fe8dfd2ddd0e1e1b2730e690e3b11e (diff)
downloadfreebsd-ports-graphics-cca26ca2464da0948befb82fc188b6bf7dae47e9.tar.gz
freebsd-ports-graphics-cca26ca2464da0948befb82fc188b6bf7dae47e9.tar.zst
freebsd-ports-graphics-cca26ca2464da0948befb82fc188b6bf7dae47e9.zip
Fix build on FreeBSD > 502115.
PR: 68162 Submitted by: MAINTAINER
Diffstat (limited to 'x11')
-rw-r--r--x11/nvidia-driver/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile
index ce155188f39..385d357e166 100644
--- a/x11/nvidia-driver/Makefile
+++ b/x11/nvidia-driver/Makefile
@@ -26,10 +26,6 @@ NVVERSION= 4365
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 502117
-BROKEN= "Does not compile on FreeBSD >= 5.x"
-.endif
-
# XXX Should use ${PKG_INFO} XXX
#
XSERVVERSION!= /usr/sbin/pkg_info -O x11-servers/XFree86-4-Server 2>/dev/null | ${GREP} Server- || true
@@ -82,6 +78,11 @@ post-patch:
. if ${OSVERSION} > 501106
@${REINPLACE_CMD} 's/PCIR_HEADERTYPE/PCIR_HDRTYPE/' ${WRKSRC}/src/nvidia_sysctl.c
. endif
+. if ${OSVERSION} > 502115
+. for f in nv-freebsd.h nvidia_ctl.c nvidia_dev.c nvidia_subr.c
+ @${REINPLACE_CMD} 's/dev_t/struct cdev \*/g' ${WRKSRC}/src/${f}
+. endfor
+. endif
.endif
pre-install: