Lines 7-17
Link Here
|
7 |
# Starting with version 1.0-7667, NVidia has dropped support for numerous |
7 |
# Starting with version 1.0-7667, NVidia has dropped support for numerous |
8 |
# "legacy" GPUs. Consult NVidia README (the Appendix) to find out whether |
8 |
# "legacy" GPUs. Consult NVidia README (the Appendix) to find out whether |
9 |
# you need to use legacy driver version and install one of corresponding |
9 |
# you need to use legacy driver version and install one of corresponding |
10 |
# slave ports instead (`x11/nvidia-driver-173', `x11/nvidia-driver-304', |
10 |
# slave ports instead (`x11/nvidia-driver-304', or `x11/nvidia-driver-340'). |
11 |
# or `x11/nvidia-driver-340'). |
|
|
12 |
|
11 |
|
13 |
PORTNAME= nvidia-driver |
12 |
PORTNAME= nvidia-driver |
14 |
DISTVERSION?= 346.96 |
13 |
DISTVERSION?= 364.19 |
15 |
# Always try to set PORTREVISION as it can be overridden by the slave ports |
14 |
# Always try to set PORTREVISION as it can be overridden by the slave ports |
16 |
PORTREVISION?= 0 |
15 |
PORTREVISION?= 0 |
17 |
CATEGORIES= x11 |
16 |
CATEGORIES= x11 |
Lines 57-101
Link Here
|
57 |
. endif |
56 |
. endif |
58 |
.endif |
57 |
.endif |
59 |
|
58 |
|
60 |
.if ${NVVERSION} >= 195.022 |
|
|
61 |
MASTER_SITE_SUBDIR= XFree86/FreeBSD-${ARCH_SUFX}/${DISTVERSION} |
59 |
MASTER_SITE_SUBDIR= XFree86/FreeBSD-${ARCH_SUFX}/${DISTVERSION} |
62 |
ONLY_FOR_ARCHS= i386 amd64 |
60 |
ONLY_FOR_ARCHS= i386 amd64 |
63 |
.else |
|
|
64 |
MASTER_SITE_SUBDIR= freebsd/${DISTVERSION} |
65 |
ONLY_FOR_ARCHS= i386 |
66 |
.endif |
67 |
|
61 |
|
68 |
.if ${NVVERSION} <= 190.042 |
62 |
.if ${NVVERSION} < 355.006 |
69 |
EXTRA_PATCHES= ${FILESDIR}/legacy-patch-mk-nvidia.lib.mk |
|
|
70 |
.else |
71 |
EXTRA_PATCHES= ${FILESDIR}/extra-patch-mk-nvidia.lib.mk |
72 |
.endif |
73 |
|
74 |
.if ${NVVERSION} >= 304.088 |
75 |
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src-Makefile \ |
63 |
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src-Makefile \ |
76 |
${FILESDIR}/extra-patch-src-nv-freebsd.h \ |
64 |
${FILESDIR}/extra-patch-src-nv-freebsd.h \ |
77 |
${FILESDIR}/extra-patch-src-nv-misc.h |
65 |
${FILESDIR}/extra-patch-src-nv-misc.h |
78 |
.endif |
|
|
79 |
|
80 |
.if ${NVVERSION} >= 304.125 # 331.020 |
81 |
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-x11-driver-Makefile |
82 |
.else |
66 |
.else |
83 |
EXTRA_PATCHES+= ${FILESDIR}/legacy-patch-x11-driver-Makefile |
67 |
NVSRC=nvidia |
|
|
68 |
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src_nvidia_Makefile \ |
69 |
${FILESDIR}/extra-patch-src_nvidia_nv-freebsd.h \ |
70 |
${FILESDIR}/extra-patch-src_nvidia_nv-misc.h |
84 |
.endif |
71 |
.endif |
85 |
|
72 |
.if ${NVVERSION} >= 358.009 |
86 |
# Fix recent arbitrary memory access vulnerability in legacy drivers |
73 |
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src_nvidia-modeset_nvidia-modeset-freebsd.c |
87 |
.if ${NVVERSION} <= 190.053 |
|
|
88 |
. if ${NVVERSION} != 173.01435 |
89 |
EXTRA_PATCHES+= ${FILESDIR}/security-patch-CVE-2012-0946 |
90 |
. endif |
91 |
EXTRA_PATCHES+= ${FILESDIR}/security-patch-CVE-2012-4225 |
92 |
.endif |
74 |
.endif |
93 |
|
75 |
|
94 |
OPTIONS_DEFINE= ACPI_PM LINUX DOCS |
76 |
OPTIONS_DEFINE= ACPI_PM LINUX DOCS WBINVD |
95 |
OPTIONS_DEFAULT= LINUX |
77 |
OPTIONS_DEFAULT= LINUX |
96 |
|
78 |
|
97 |
ACPI_PM_DESC= ACPI Power Management support |
79 |
ACPI_PM_DESC= ACPI Power Management support |
98 |
LINUX_DESC= Linux compatibility support |
80 |
LINUX_DESC= Linux compatibility support |
|
|
81 |
WBINVD_DESC= Flush CPU caches directly with WBINVD |
99 |
|
82 |
|
100 |
.if ${NVVERSION} < 310.014 |
83 |
.if ${NVVERSION} < 310.014 |
101 |
OPTIONS_DEFINE+= FREEBSD_AGP |
84 |
OPTIONS_DEFINE+= FREEBSD_AGP |
Lines 102-112
Link Here
|
102 |
FREEBSD_AGP_DESC= Use FreeBSD AGP GART driver |
85 |
FREEBSD_AGP_DESC= Use FreeBSD AGP GART driver |
103 |
.endif |
86 |
.endif |
104 |
|
87 |
|
105 |
.if ${NVVERSION} >= 195.022 |
|
|
106 |
OPTIONS_DEFINE+= WBINVD |
107 |
WBINVD_DESC= Flush CPU caches directly with WBINVD |
108 |
.endif |
109 |
|
110 |
.if ${NVVERSION} >= 304.088 |
88 |
.if ${NVVERSION} >= 304.088 |
111 |
OPTIONS_DEFINE_i386= PAE |
89 |
OPTIONS_DEFINE_i386= PAE |
112 |
PAE_DESC= Physical Address Extensions support |
90 |
PAE_DESC= Physical Address Extensions support |
Lines 127-223
Link Here
|
127 |
MAKE_ENV+= WITHOUT_LINUX=yes |
105 |
MAKE_ENV+= WITHOUT_LINUX=yes |
128 |
.endif |
106 |
.endif |
129 |
|
107 |
|
130 |
.if ${NVVERSION} < 195.022 |
|
|
131 |
# ABI version is hardcoded inside the binary, so specify it explicitly here |
132 |
LIB_DEPENDS= libm.so.3:misc/compat5x |
133 |
.endif |
134 |
|
135 |
post-patch: .SILENT |
108 |
post-patch: .SILENT |
136 |
# We should support -CURRENT: kill the check |
109 |
${REINPLACE_CMD} -e '24,26d' ${WRKSRC}/src/${NVSRC}/nv-freebsd.h |
137 |
${REINPLACE_CMD} -e '24,26d' ${WRKSRC}/src/nv-freebsd.h |
|
|
138 |
# Adjust legacy drivers for updated d_mmap() since FreeBSD src SVN r201223 |
139 |
.if ${NVVERSION} < 195.022 |
140 |
${REINPLACE_CMD} -e 's/vm_offset_t offset/vm_ooffset_t offset/ ; \ |
141 |
s/vm_offset_t \*address/vm_paddr_t *address/ ; \ |
142 |
s/int nprot/&, vm_memattr_t *memattr/' \ |
143 |
${WRKSRC}/src/nvidia_dev.c |
144 |
.endif |
145 |
# In the legacy drivers: remove page queue locking and add page locking |
146 |
# around vm_page_(un)wire() after FreeBSD src SVN r207410, r207617, and |
147 |
# r207644; also remove page queue locking around vm_page_wakeup() after |
148 |
# FreeBSD src SVN r163622 |
149 |
.if ${NVVERSION} < 304.064 |
150 |
${REINPLACE_CMD} -E '/vm_page_(un)?lock_queues\(\);/d ; \ |
151 |
s/(vm_page_(un)?wire\()([^,]+)(, 0)?(\);)/vm_page_lock(\3); & vm_page_unlock(\3);/' \ |
152 |
${WRKSRC}/src/nvidia_subr.c |
153 |
.endif |
154 |
# Catch up legacy drivers with FreeBSD src SVN r225617 |
155 |
.if ${NVVERSION} < 195.022 |
156 |
${REINPLACE_CMD} -e '/return/s/ioctl/sys_&/' \ |
157 |
${WRKSRC}/src/nvidia_linux.c |
158 |
.endif |
159 |
# Adjust Linux headers #include's after FreeBSD src SVN r246085 |
110 |
# Adjust Linux headers #include's after FreeBSD src SVN r246085 |
160 |
.if ${OSVERSION} > 1000027 && ${NVVERSION} >= 96.04323 |
111 |
.if ${OSVERSION} > 1000027 && ${NVVERSION} >= 96.04323 |
161 |
${REINPLACE_CMD} -E '/#include "machine\/\.\.\/linux(32)?\/linux.h"/ \ |
112 |
${REINPLACE_CMD} -E '/#include "machine\/\.\.\/linux(32)?\/linux.h"/ \ |
162 |
{ x ; s/.*/#include "machine\/..\/..\/compat\/linux\/linux_ioctl.h"/ ; H ; x ; }' \ |
113 |
{ x ; s/.*/#include "machine\/..\/..\/compat\/linux\/linux_ioctl.h"/ ; H ; x ; }' \ |
163 |
${WRKSRC}/src/nvidia_linux.c |
114 |
${WRKSRC}/src/${NVSRC}/nvidia_linux.c |
164 |
.endif |
115 |
.endif |
165 |
# Adjust vm_object locking after FreeBSD src SVN r248084 |
116 |
# Adjust vm_object locking after FreeBSD src SVN r248084 |
166 |
.if ${OSVERSION} > 1000029 |
117 |
.if ${OSVERSION} > 1000029 |
167 |
${REINPLACE_CMD} -e '/#include <vm\/vm_object.h>/ \ |
118 |
${REINPLACE_CMD} -e '/#include <vm\/vm_object.h>/ \ |
168 |
{ x ; s/.*/#include <sys\/rwlock.h>/ ; G ; }' \ |
119 |
{ x ; s/.*/#include <sys\/rwlock.h>/ ; G ; }' \ |
169 |
${WRKSRC}/src/nv-freebsd.h |
120 |
${WRKSRC}/src/${NVSRC}/nv-freebsd.h |
170 |
${REINPLACE_CMD} -E 's/(VM_OBJECT_)(UN)?(LOCK)/\1W\2\3/' \ |
121 |
${REINPLACE_CMD} -E 's/(VM_OBJECT_)(UN)?(LOCK)/\1W\2\3/' \ |
171 |
${WRKSRC}/src/nvidia_subr.c |
122 |
${WRKSRC}/src/${NVSRC}/nvidia_subr.c |
172 |
.endif |
123 |
.endif |
173 |
# Adjust kmem(9) calls after FreeBSD src SVN r254025 |
124 |
# Adjust kmem(9) calls after FreeBSD src SVN r254025 |
174 |
.if ${OSVERSION} > 1000040 && ${NVVERSION} < 331.067 |
125 |
.if ${OSVERSION} > 1000040 && ${NVVERSION} < 331.067 |
175 |
${REINPLACE_CMD} -e '/kmem_/s/kernel_map/kernel_arena/' \ |
126 |
${REINPLACE_CMD} -e '/kmem_/s/kernel_map/kernel_arena/' \ |
176 |
${WRKSRC}/src/nvidia_subr.c |
127 |
${WRKSRC}/src/${NVSRC}/nvidia_subr.c |
177 |
.endif |
128 |
.endif |
178 |
# Argument count of vm_map_find() changed in FreeBSD src SVN r255426 |
|
|
179 |
.if ${OSVERSION} > 1000054 && ${NVVERSION} < 304.123 # < 331.067 |
180 |
${REINPLACE_CMD} -e 's/virtual_address, size,/& 0,/' \ |
181 |
${WRKSRC}/src/nvidia_subr.c |
182 |
.endif |
183 |
# Fix CTLFLAG_* values for SYSCTL_ADD_PROC() after FreeBSD src SVN r273377 |
129 |
# Fix CTLFLAG_* values for SYSCTL_ADD_PROC() after FreeBSD src SVN r273377 |
184 |
.if ${OSVERSION} > 1100039 || ${OSVERSION} > 1001501 && ${OSVERSION} < 1100000 |
130 |
.if ${OSVERSION} > 1100039 || ${OSVERSION} > 1001501 && ${OSVERSION} < 1100000 |
185 |
${REINPLACE_CMD} -e '/SYSCTL_ADD_PROC/,/;/ \ |
131 |
${REINPLACE_CMD} -e '/SYSCTL_ADD_PROC/,/;/ \ |
186 |
s/^[[:blank:]]*CTLFLAG_RD/CTLTYPE_STRING |&/' \ |
132 |
s/^[[:blank:]]*CTLFLAG_RD/CTLTYPE_STRING |&/' \ |
187 |
${WRKSRC}/src/nvidia_sysctl.c |
133 |
${WRKSRC}/src/${NVSRC}/nvidia_sysctl.c |
188 |
.endif |
134 |
.endif |
189 |
# Replace d_thread_t (compat shim to support FreeBSD 4) with `struct thread' |
135 |
# Replace d_thread_t (compat shim to support FreeBSD 4) with `struct thread' |
190 |
${REINPLACE_CMD} -e 's/d_thread_t/struct thread/' \ |
136 |
${REINPLACE_CMD} -e 's/d_thread_t/struct thread/' \ |
191 |
${WRKSRC}/src/nvidia_ctl.c ${WRKSRC}/src/nvidia_dev.c \ |
137 |
${WRKSRC}/src/${NVSRC}/nvidia_ctl.c ${WRKSRC}/src/${NVSRC}/nvidia_dev.c \ |
192 |
${WRKSRC}/src/nvidia_linux.c |
138 |
${WRKSRC}/src/${NVSRC}/nvidia_linux.c |
193 |
# Fix stack buffer overflow in nvidia_sysctl_bus_type() |
139 |
.if ${NVVERSION} >= 358.009 |
194 |
${REINPLACE_CMD} -e 's/8 bus_type\[4\]/8 bus_type[8]/' \ |
140 |
${REINPLACE_CMD} -e 's/d_thread_t/struct thread/' \ |
195 |
${WRKSRC}/src/nvidia_sysctl.c |
141 |
${WRKSRC}/src/nvidia-modeset/nvidia-modeset-freebsd.c |
196 |
# Unbreak the build of 173.14.xx legacy series on recent -CURRENT |
|
|
197 |
.if ${NVVERSION} < 195.022 && ${NVVERSION} >= 169.004 |
198 |
${REINPLACE_CMD} -E 's/os_(alloc|free)_contig_pages/NV_API_CALL &/' \ |
199 |
${WRKSRC}/src/nv-freebsd.h |
200 |
.endif |
142 |
.endif |
201 |
# Process OPTIONS |
143 |
# Process OPTIONS |
202 |
.if ${PORT_OPTIONS:MFREEBSD_AGP} |
144 |
.if ${PORT_OPTIONS:MFREEBSD_AGP} |
203 |
${REINPLACE_CMD} -E 's/undef (NV_SUPPORT_OS_AGP)/define \1/' \ |
145 |
${REINPLACE_CMD} -E 's/undef (NV_SUPPORT_OS_AGP)/define \1/' \ |
204 |
${WRKSRC}/src/nv-freebsd.h |
146 |
${WRKSRC}/src/${NVSRC}/nv-freebsd.h |
205 |
.endif |
147 |
.endif |
206 |
.if ${PORT_OPTIONS:MACPI_PM} |
148 |
.if ${PORT_OPTIONS:MACPI_PM} |
207 |
${REINPLACE_CMD} -E 's/undef (NV_SUPPORT_ACPI_PM)/define \1/' \ |
149 |
${REINPLACE_CMD} -E 's/undef (NV_SUPPORT_ACPI_PM)/define \1/' \ |
208 |
${WRKSRC}/src/nv-freebsd.h |
150 |
${WRKSRC}/src/${NVSRC}/nv-freebsd.h |
209 |
.endif |
151 |
.endif |
210 |
.if ! ${PORT_OPTIONS:MLINUX} |
152 |
.if ! ${PORT_OPTIONS:MLINUX} |
211 |
${REINPLACE_CMD} -E 's/define (NV_SUPPORT_LINUX_COMPAT)/undef \1/' \ |
153 |
${REINPLACE_CMD} -E 's/define (NV_SUPPORT_LINUX_COMPAT)/undef \1/' \ |
212 |
${WRKSRC}/src/nv-freebsd.h |
154 |
${WRKSRC}/src/${NVSRC}/nv-freebsd.h |
213 |
.endif |
155 |
.endif |
214 |
.if ${PORT_OPTIONS:MPAE} |
156 |
.if ${PORT_OPTIONS:MPAE} |
215 |
${REINPLACE_CMD} -E 's/undef (NV_SUPPORT_PAE)/define \1/' \ |
157 |
${REINPLACE_CMD} -E 's/undef (NV_SUPPORT_PAE)/define \1/' \ |
216 |
${WRKSRC}/src/nv-freebsd.h |
158 |
${WRKSRC}/src/${NVSRC}/nv-freebsd.h |
217 |
.endif |
159 |
.endif |
218 |
.if ${PORT_OPTIONS:MWBINVD} |
160 |
.if ${PORT_OPTIONS:MWBINVD} |
219 |
${REINPLACE_CMD} -E 's/undef (NV_USE_WBINVD)/define \1/' \ |
161 |
${REINPLACE_CMD} -E 's/undef (NV_USE_WBINVD)/define \1/' \ |
220 |
${WRKSRC}/src/nv-freebsd.h |
162 |
${WRKSRC}/src/${NVSRC}/nv-freebsd.h |
221 |
.endif |
163 |
.endif |
222 |
${REINPLACE_CMD} -e 's/exists(\/.*/& \&\& !defined(WITHOUT_LINUX)/' \ |
164 |
${REINPLACE_CMD} -e 's/exists(\/.*/& \&\& !defined(WITHOUT_LINUX)/' \ |
223 |
${WRKSRC}/lib/Makefile |
165 |
${WRKSRC}/lib/Makefile |
Lines 229-239
Link Here
|
229 |
.endif |
171 |
.endif |
230 |
# Do not build any binaries (native nvidia-settings and nvidia-xconfig are |
172 |
# Do not build any binaries (native nvidia-settings and nvidia-xconfig are |
231 |
# provided by corresponding ports) and manual pages |
173 |
# provided by corresponding ports) and manual pages |
232 |
.if ${NVVERSION} < 97.046 || ${NVVERSION} >= 195.022 |
|
|
233 |
${REINPLACE_CMD} -E 's/(extension).*/\1/' ${WRKSRC}/x11/Makefile |
234 |
.else |
235 |
${REINPLACE_CMD} -E 's/(lib).*/\1/' ${WRKSRC}/x11/Makefile |
236 |
.endif |
237 |
${REINPLACE_CMD} -e '/bin/d ; /man/d' ${WRKSRC}/x11/Makefile |
174 |
${REINPLACE_CMD} -e '/bin/d ; /man/d' ${WRKSRC}/x11/Makefile |
238 |
# Also do not install libnvidia-gtk* libraries which are for nvidia-settings |
175 |
# Also do not install libnvidia-gtk* libraries which are for nvidia-settings |
239 |
.if ${NVVERSION} >= 346.016 |
176 |
.if ${NVVERSION} >= 346.016 |
Lines 259-265
Link Here
|
259 |
# and "smart" installation of conflicting files heuristics) |
196 |
# and "smart" installation of conflicting files heuristics) |
260 |
${REINPLACE_CMD} -e 's/afterinstall/&_dontexecute/' ${WRKSRC}/Makefile |
197 |
${REINPLACE_CMD} -e 's/afterinstall/&_dontexecute/' ${WRKSRC}/Makefile |
261 |
${REINPLACE_CMD} -e 's/beforeinstall/&_dontexecute/' \ |
198 |
${REINPLACE_CMD} -e 's/beforeinstall/&_dontexecute/' \ |
262 |
${WRKSRC}/lib/Makefile ${WRKSRC}/src/Makefile |
199 |
${WRKSRC}/lib/Makefile ${WRKSRC}/src/${NVSRC}/Makefile |
263 |
# /usr/share/nvidia path is hardcoded in libGL and nvidia-settings, but we |
200 |
# /usr/share/nvidia path is hardcoded in libGL and nvidia-settings, but we |
264 |
# won't adhere to this stupidity and install nvidia-application-profiles-* |
201 |
# won't adhere to this stupidity and install nvidia-application-profiles-* |
265 |
# files as part of documentation |
202 |
# files as part of documentation |
Lines 267-272
Link Here
|
267 |
${REINPLACE_CMD} -e 's,/usr/share/nvidia,${STAGEDIR}${DOCSDIR},' \ |
204 |
${REINPLACE_CMD} -e 's,/usr/share/nvidia,${STAGEDIR}${DOCSDIR},' \ |
268 |
${WRKSRC}/lib/libGL/Makefile ${WRKSRC}/doc/Makefile |
205 |
${WRKSRC}/lib/libGL/Makefile ${WRKSRC}/doc/Makefile |
269 |
.endif |
206 |
.endif |
|
|
207 |
# Fix cap_rights, does not exist before 10.x |
208 |
.if ${OSVERSION} < 1000000 && ${NVVERSION} >= 358.009 |
209 |
${REINPLACE_CMD} '/<sys\/caprights.h>/d ; /cap_rights_t rights/d ; s/cap_rights_init(&rights, CAP_IOCTL)/CAP_IOCTL/' \ |
210 |
${WRKSRC}/src/nvidia-modeset/nvidia-modeset-freebsd.c |
211 |
.endif |
270 |
|
212 |
|
271 |
pre-install: |
213 |
pre-install: |
272 |
@${MKDIR} ${STAGEDIR}${PREFIX}/${MODULESDIR}/drivers \ |
214 |
@${MKDIR} ${STAGEDIR}${PREFIX}/${MODULESDIR}/drivers \ |
Lines 276-299
Link Here
|
276 |
${INSTALL_SCRIPT} ${WRKSRC}/obj/nvidia-bug-report.sh \ |
218 |
${INSTALL_SCRIPT} ${WRKSRC}/obj/nvidia-bug-report.sh \ |
277 |
${STAGEDIR}${PREFIX}/bin |
219 |
${STAGEDIR}${PREFIX}/bin |
278 |
# pkg-plist is already overbloated, so use these hacks instead of PLIST_SUB's |
220 |
# pkg-plist is already overbloated, so use these hacks instead of PLIST_SUB's |
279 |
.if ${NVVERSION} < 81.074 |
221 |
.if ${NVVERSION} >= 304.128 && ${NVVERSION} < 310.019 || ${NVVERSION} >= 361.016 |
280 |
${REINPLACE_CMD} -e '/libnvidia-cfg/d' ${TMPPLIST} |
|
|
281 |
.endif |
282 |
.if ${NVVERSION} < 97.046 || ${NVVERSION} >= 195.022 |
283 |
${REINPLACE_CMD} -e '/wfb/d' ${TMPPLIST} |
284 |
.endif |
285 |
.if ${NVVERSION} < 180.029 |
286 |
${REINPLACE_CMD} -e '/vdpau/d' ${TMPPLIST} |
287 |
.elif ${NVVERSION} >= 304.128 && ${NVVERSION} < 310.019 |
288 |
${REINPLACE_CMD} -E '/libvdpau(_trace)?\.so/d' ${TMPPLIST} |
222 |
${REINPLACE_CMD} -E '/libvdpau(_trace)?\.so/d' ${TMPPLIST} |
289 |
.endif |
223 |
.endif |
290 |
.if ${NVVERSION} < 185.01829 |
|
|
291 |
${REINPLACE_CMD} -e '/libcuda/d' ${TMPPLIST} |
292 |
.endif |
293 |
.if ${NVVERSION} >= 256.053 |
294 |
${REINPLACE_CMD} -E 's/libGLcore/libnvidia-glcore/ ; \ |
295 |
/usr.*(glcore|tls).*so\.1$$/d' ${TMPPLIST} |
296 |
.endif |
297 |
.if ${NVVERSION} >= 310.019 |
224 |
.if ${NVVERSION} >= 310.019 |
298 |
${REINPLACE_CMD} -e '/libXvMCNVIDIA/d' ${TMPPLIST} |
225 |
${REINPLACE_CMD} -e '/libXvMCNVIDIA/d' ${TMPPLIST} |
299 |
.else # some applications need this symlink (see PR ports/72877) |
226 |
.else # some applications need this symlink (see PR ports/72877) |
Lines 307-312
Link Here
|
307 |
.if ${NVVERSION} >= 195.022 |
234 |
.if ${NVVERSION} >= 195.022 |
308 |
${REINPLACE_CMD} -e '/does not support PAE/,+1d' ${PKGMESSAGE} |
235 |
${REINPLACE_CMD} -e '/does not support PAE/,+1d' ${PKGMESSAGE} |
309 |
.endif |
236 |
.endif |
|
|
237 |
.if ${NVVERSION} < 352.009 |
238 |
${REINPLACE_CMD} -E '/(lib)?nvidia-(debugdump|smi|ml)/d' ${TMPPLIST} |
239 |
.endif |
240 |
.if ${NVVERSION} < 355.006 |
241 |
${REINPLACE_CMD} -E '/(libEGL_nvidia|GLdispatch|OpenGL)/d' ${TMPPLIST} |
242 |
.else |
243 |
${REINPLACE_CMD} 's/libEGL\.so\.${PORTVERSION}/libEGL.so/' \ |
244 |
${TMPPLIST} |
245 |
.endif |
246 |
.if ${NVVERSION} < 358.009 |
247 |
${REINPLACE_CMD} '/nvidia-modeset.ko/d' ${TMPPLIST} |
248 |
.else |
249 |
${REINPLACE_CMD} 's/nvidia$$/nvidia-modeset/ ; s/nvidia_/nvidia-modeset_/' \ |
250 |
${PKGMESSAGE} |
251 |
.endif |
252 |
.if ${NVVERSION} >= 361.028 |
253 |
${REINPLACE_CMD} -E '/(EGL_nvidia\.so|GLESv[12](_CM)?(\.so\.[0-9]+\.[0-9]+))$$/d' \ |
254 |
${TMPPLIST} |
255 |
.else |
256 |
${REINPLACE_CMD} -E '/\/lib\/libGLESv[12](_CM)?(\.so)?(_nvidia.so(\.[0-9]|\.[0-9]+\.[0-9]+)?)?$$/d ; \ |
257 |
/libEGL_nvidia\.so\.${PORTVERSION}/d' ${TMPPLIST} |
258 |
.endif |
310 |
|
259 |
|
311 |
# Target below can be used instead of standard `makesum' to correctly |
260 |
# Target below can be used instead of standard `makesum' to correctly |
312 |
# update distinfo (i.e., keeping other driver version entries intact) |
261 |
# update distinfo (i.e., keeping other driver version entries intact) |