Lines 2-8
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= nvidia-driver |
4 |
PORTNAME= nvidia-driver |
5 |
DISTVERSION?= 331.67 |
5 |
DISTVERSION?= 340.32 |
6 |
# Always try to set PORTREVISION as it can be overridden by the slave ports |
6 |
# Always try to set PORTREVISION as it can be overridden by the slave ports |
7 |
PORTREVISION?= 0 |
7 |
PORTREVISION?= 0 |
8 |
CATEGORIES= x11 |
8 |
CATEGORIES= x11 |
Lines 147-159
post-patch: .SILENT
Link Here
|
147 |
${WRKSRC}/src/nvidia_linux.c |
148 |
${WRKSRC}/src/nvidia_linux.c |
148 |
.endif |
149 |
.endif |
149 |
# Adjust Linux headers #include's after FreeBSD src SVN r246085 |
150 |
# Adjust Linux headers #include's after FreeBSD src SVN r246085 |
150 |
.if ${OSVERSION} > 1000027 && ${NVVERSION} >= 964323 |
151 |
.if ${OSVERSION} > 1000027 && ${NVVERSION} >= 964323 && ${NVVERSION} < 3316700 |
151 |
${REINPLACE_CMD} -E '/#include "machine\/\.\.\/linux(32)?\/linux.h"/ \ |
152 |
${REINPLACE_CMD} -E '/#include "machine\/\.\.\/linux(32)?\/linux.h"/ \ |
152 |
{ x ; s/.*/#include "machine\/..\/..\/compat\/linux\/linux_ioctl.h"/ ; H ; x ; }' \ |
153 |
{ x ; s/.*/#include "machine\/..\/..\/compat\/linux\/linux_ioctl.h"/ ; H ; x ; }' \ |
153 |
${WRKSRC}/src/nvidia_linux.c |
154 |
${WRKSRC}/src/nvidia_linux.c |
154 |
.endif |
155 |
.endif |
155 |
# Adjust vm_object locking after FreeBSD src SVN r248084 |
156 |
# Adjust vm_object locking after FreeBSD src SVN r248084 |
156 |
.if ${OSVERSION} > 1000029 |
157 |
.if ${OSVERSION} > 1000029 && ${NVVERSION} < 3316700 |
157 |
${REINPLACE_CMD} -e '/#include <vm\/vm_object.h>/ \ |
158 |
${REINPLACE_CMD} -e '/#include <vm\/vm_object.h>/ \ |
158 |
{ x ; s/.*/#include <sys\/rwlock.h>/ ; G ; }' \ |
159 |
{ x ; s/.*/#include <sys\/rwlock.h>/ ; G ; }' \ |
159 |
${WRKSRC}/src/nv-freebsd.h |
160 |
${WRKSRC}/src/nv-freebsd.h |
Lines 183-188
post-patch: .SILENT
Link Here
|
183 |
/return SYSCTL_OUT\(req, bus_type/d' \ |
184 |
/return SYSCTL_OUT\(req, bus_type/d' \ |
184 |
${WRKSRC}/src/nvidia_sysctl.c |
185 |
${WRKSRC}/src/nvidia_sysctl.c |
185 |
.endif |
186 |
.endif |
|
|
187 |
# Fix prefix for application profiles (chase x11/nvidia-settings) |
188 |
.if ${NVVERSION} >= 3341600 |
189 |
${REINPLACE_CMD} -e 's,/usr/share,${STAGEDIR}${PREFIX}/share,' \ |
190 |
${WRKSRC}/doc/Makefile \ |
191 |
${WRKSRC}/lib/libGL/Makefile |
192 |
${REINPLACE_CMD} -e 's,/usr/share,${PREFIX}/share,' \ |
193 |
${WRKSRC}/doc/html/profiles.html \ |
194 |
${WRKSRC}/doc/README \ |
195 |
${WRKSRC}/obj/nvidia-bug-report.sh |
196 |
.endif |
186 |
# Unbreak the build of 173.14.xx legacy series on recent -CURRENT |
197 |
# Unbreak the build of 173.14.xx legacy series on recent -CURRENT |
187 |
.if ${NVVERSION} < 1952200 && ${NVVERSION} >= 1690400 |
198 |
.if ${NVVERSION} < 1952200 && ${NVVERSION} >= 1690400 |
188 |
${REINPLACE_CMD} -E 's/os_(alloc|free)_contig_pages/NV_API_CALL &/' \ |
199 |
${REINPLACE_CMD} -E 's/os_(alloc|free)_contig_pages/NV_API_CALL &/' \ |
Lines 275-280
post-install: .SILENT
Link Here
|
275 |
${REINPLACE_CMD} -E '/lib(nvidia-)?(EGL|eglcore|GLESv|glsi)/d' \ |
286 |
${REINPLACE_CMD} -E '/lib(nvidia-)?(EGL|eglcore|GLESv|glsi)/d' \ |
276 |
${TMPPLIST} |
287 |
${TMPPLIST} |
277 |
.endif |
288 |
.endif |
|
|
289 |
.if ${NVVERSION} < 3341600 |
290 |
${REINPLACE_CMD} -e '/share\/nvidia/d' ${TMPPLIST} |
291 |
.endif |
278 |
.if ${NVVERSION} >= 1952200 |
292 |
.if ${NVVERSION} >= 1952200 |
279 |
${REINPLACE_CMD} -e '/does not support PAE/,+1d' ${PKGMESSAGE} |
293 |
${REINPLACE_CMD} -e '/does not support PAE/,+1d' ${PKGMESSAGE} |
280 |
.endif |
294 |
.endif |