Lines 12-18
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?= 1 |
18 |
CATEGORIES= x11 |
18 |
CATEGORIES= x11 |
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} >= 525.08902 |
38 |
LIB_DEPENDS+= libnvidia-egl-wayland.so.1: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 135-142
PLIST_SUB+= LIBGLDIR=${LIBGLDIR} LIBGLMAP="@comment "
Link Here
|
135 |
.else |
138 |
.else |
136 |
PLIST_SUB+= LIBGLDIR="@comment " LIBGLMAP="" |
139 |
PLIST_SUB+= LIBGLDIR="@comment " LIBGLMAP="" |
137 |
.endif |
140 |
.endif |
|
|
141 |
.if ${NVVERSION} >= 525.08902 |
142 |
PLIST_SUB+= NVEGL="" |
143 |
.else |
144 |
PLIST_SUB+= NVEGL="@comment " |
145 |
.endif |
138 |
|
146 |
|
139 |
.if ${NVVERSION} >= 515.8601 |
147 |
.if ${NVVERSION} >= 515.08601 |
140 |
PLIST_FILES+= lib/libnvidia-wayland-client.so.${DISTVERSION} |
148 |
PLIST_FILES+= lib/libnvidia-wayland-client.so.${DISTVERSION} |
141 |
.endif |
149 |
.endif |
142 |
|
150 |
|
Lines 397-401
post-install: .SILENT
Link Here
|
397 |
@${ECHO_CMD} "libGLX_indirect.so.0 libGLX_nvidia.so.0" \ |
405 |
@${ECHO_CMD} "libGLX_indirect.so.0 libGLX_nvidia.so.0" \ |
398 |
>${STAGEDIR}${PREFIX}/etc/libmap.d/nvidia.conf |
406 |
>${STAGEDIR}${PREFIX}/etc/libmap.d/nvidia.conf |
399 |
.endif |
407 |
.endif |
|
|
408 |
.if ${NVVERSION} >= 525.08902 |
409 |
${MKDIR} ${STAGEDIR}${PREFIX}/lib/gbm |
410 |
${LN} -sf ../libnvidia-allocator.so.1 \ |
411 |
${STAGEDIR}${PREFIX}/lib/gbm/nvidia-drm_gbm.so |
412 |
.endif |
400 |
|
413 |
|
401 |
.include <bsd.port.post.mk> |
414 |
.include <bsd.port.post.mk> |