Lines 12-20
Link Here
|
12 |
# ``make DISTVERSION=xxx.yy.zz -DNO_CHECKSUM'' should typically work. |
12 |
# ``make DISTVERSION=xxx.yy.zz -DNO_CHECKSUM'' should typically work. |
13 |
|
13 |
|
14 |
PORTNAME?= nvidia-driver |
14 |
PORTNAME?= nvidia-driver |
15 |
DISTVERSION?= 515.86.01 |
15 |
DISTVERSION?= 525.89.02 |
16 |
# Always try to set PORTREVISION as it can be overridden by the slave ports |
16 |
# Always try to set PORTREVISION as it can be overridden by the slave ports |
17 |
PORTREVISION?= 1 |
17 |
PORTREVISION?= 0 |
18 |
CATEGORIES= x11 |
18 |
CATEGORIES= x11 |
19 |
MASTER_SITES= NVIDIA/XFree86/FreeBSD-${ARCH_SUFX}/${DISTVERSION} |
19 |
MASTER_SITES= NVIDIA/XFree86/FreeBSD-${ARCH_SUFX}/${DISTVERSION} |
20 |
DISTNAME= NVIDIA-FreeBSD-${ARCH_SUFX}-${DISTVERSION} |
20 |
DISTNAME= NVIDIA-FreeBSD-${ARCH_SUFX}-${DISTVERSION} |
Lines 34-39
PATCH_DEPENDS= gsed:textproc/gsed
Link Here
|
34 |
BUILD_DEPENDS= pkg-config:devel/pkgconf |
34 |
BUILD_DEPENDS= pkg-config:devel/pkgconf |
35 |
LIB_DEPENDS= libOpenGL.so:graphics/libglvnd |
35 |
LIB_DEPENDS= libOpenGL.so:graphics/libglvnd |
36 |
.endif |
36 |
.endif |
|
|
37 |
.if ${NVVERSION} >= 415.013 |
38 |
LIB_DEPENDS+= libnvidia-egl-wayland.so:graphics/egl-wayland |
39 |
.endif |
37 |
|
40 |
|
38 |
USES= kmod uidfix xorg |
41 |
USES= kmod uidfix xorg |
39 |
.if ${NVVERSION} >= 470.04201 |
42 |
.if ${NVVERSION} >= 470.04201 |
Lines 136-142
PLIST_SUB+= LIBGLDIR=${LIBGLDIR} LIBGLMAP="@comment "
Link Here
|
136 |
PLIST_SUB+= LIBGLDIR="@comment " LIBGLMAP="" |
139 |
PLIST_SUB+= LIBGLDIR="@comment " LIBGLMAP="" |
137 |
.endif |
140 |
.endif |
138 |
|
141 |
|
139 |
.if ${NVVERSION} >= 515.8601 |
142 |
.if ${NVVERSION} >= 515.08601 |
140 |
PLIST_FILES+= lib/libnvidia-wayland-client.so.${DISTVERSION} |
143 |
PLIST_FILES+= lib/libnvidia-wayland-client.so.${DISTVERSION} |
141 |
.endif |
144 |
.endif |
142 |
|
145 |
|
Lines 243-248
post-patch: .SILENT
Link Here
|
243 |
${REINPLACE_CMD} -e '/void nvidia_dev_dtor/,+8s,.*status.*,,' \ |
246 |
${REINPLACE_CMD} -e '/void nvidia_dev_dtor/,+8s,.*status.*,,' \ |
244 |
${WRKSRC}/src/${NVSRC}/nvidia_dev.c |
247 |
${WRKSRC}/src/${NVSRC}/nvidia_dev.c |
245 |
.endif |
248 |
.endif |
|
|
249 |
# Move symlinks under PREFIX |
250 |
.if ${NVVERSION} >= 525.08902 |
251 |
${REINPLACE_CMD} -e '/ln/s/$${LOCALBASE}\/lib/../' \ |
252 |
-e '/LIBDIR/!s/$${LOCALBASE}/$${DESTDIR}$${PREFIX}/' \ |
253 |
${WRKSRC}/lib/libnvidia-allocator/Makefile |
254 |
.endif |
246 |
# After src 2a99dd30dfaa, DRIVER_MODULE should not include nvidia_devclass |
255 |
# After src 2a99dd30dfaa, DRIVER_MODULE should not include nvidia_devclass |
247 |
.if ${OSVERSION} >= 1400058 |
256 |
.if ${OSVERSION} >= 1400058 |
248 |
${REINPLACE_CMD} -e '/^DRIVER_MODULE/s/, nvidia_devclass//' \ |
257 |
${REINPLACE_CMD} -e '/^DRIVER_MODULE/s/, nvidia_devclass//' \ |
Lines 342-347
post-install: .SILENT
Link Here
|
342 |
${REINPLACE_CMD} -e '/libnvidia-egl-gbm\.so/d ; \ |
351 |
${REINPLACE_CMD} -e '/libnvidia-egl-gbm\.so/d ; \ |
343 |
/15_nvidia_gbm\.json/d' ${TMPPLIST} |
352 |
/15_nvidia_gbm\.json/d' ${TMPPLIST} |
344 |
.endif |
353 |
.endif |
|
|
354 |
.if ${NVVERSION} < 525.08902 |
355 |
${REINPLACE_CMD} -e '/libnvidia-allocator\.so/d ; \ |
356 |
/nvidia-drm_gbm\.so/d' ${TMPPLIST} |
357 |
.endif |
345 |
.if ${NVVERSION} < 410.057 |
358 |
.if ${NVVERSION} < 410.057 |
346 |
# Rename some libraries and install a libmap file to resolve conflict with |
359 |
# Rename some libraries and install a libmap file to resolve conflict with |
347 |
# Mesa libraries. |
360 |
# Mesa libraries. |