git: ec9fff767494 - main - x11/nvidia-driver: make vulkan PREFIX safe
Kevin Bowling
kbowling at FreeBSD.org
Mon Aug 2 23:17:33 UTC 2021
The branch main has been updated by kbowling:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ec9fff767494883b0dc6b677c9a00a516f9df045
commit ec9fff767494883b0dc6b677c9a00a516f9df045
Author: Alex S <iwtcex at gmail.com>
AuthorDate: 2021-08-02 23:13:40 +0000
Commit: Kevin Bowling <kbowling at FreeBSD.org>
CommitDate: 2021-08-02 23:13:40 +0000
x11/nvidia-driver: make vulkan PREFIX safe
PR: 253285
Reported by: mi
Approved by: danfe (maintainer)
---
x11/nvidia-driver/Makefile | 9 +++++---
.../files/460-patch-lib-libGLX_nvidia-Makefile | 27 ----------------------
2 files changed, 6 insertions(+), 30 deletions(-)
diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile
index 4791f9f0fce5..b4e0b2906533 100644
--- a/x11/nvidia-driver/Makefile
+++ b/x11/nvidia-driver/Makefile
@@ -44,9 +44,13 @@ USE_LDCONFIG= yes
GLVND_JSON_PATH= ${PREFIX}/share/glvnd/egl_vendor.d
WAYLAND_JSON_PATH= ${PREFIX}/share/egl/egl_external_platform.d
+VKICD_PATH= ${PREFIX}/share/vulkan/icd.d
+VKLAYERS_PATH= ${PREFIX}/share/vulkan/implicit_layer.d
MAKE_ENV= DEBUG_FLAGS=${DEBUG_FLAGS} \
EGL_GLVND_JSON_PATH=${STAGEDIR}${GLVND_JSON_PATH} \
- EGL_WAYLAND_JSON_PATH=${STAGEDIR}${WAYLAND_JSON_PATH}
+ EGL_WAYLAND_JSON_PATH=${STAGEDIR}${WAYLAND_JSON_PATH} \
+ VKICD_PATH=${STAGEDIR}${VKICD_PATH} \
+ VKLAYERS_PATH=${STAGEDIR}${VKLAYERS_PATH}
SUB_FILES= pkg-message
.if !defined(LIBGLDIR)
SUB_FILES+= nvidia.conf
@@ -82,8 +86,7 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src_nvidia-modeset_nvidia-modeset-freebs
SUB_PATCHES+= extra-patch-src-nvidia_ctl.c \
extra-patch-src-nvidia_linux.c
.else
-EXTRA_PATCHES+= ${FILESDIR}/460-patch-lib-libGLX_nvidia-Makefile \
- ${FILESDIR}/460-patch-src-nvidia-nvidia_ctl.c \
+EXTRA_PATCHES+= ${FILESDIR}/460-patch-src-nvidia-nvidia_ctl.c \
${FILESDIR}/460-patch-src-nvidia-nvidia_linux.c \
${FILESDIR}/460-patch-src_nvidia-modeset_nvidia-modeset-freebsd.c
.endif
diff --git a/x11/nvidia-driver/files/460-patch-lib-libGLX_nvidia-Makefile b/x11/nvidia-driver/files/460-patch-lib-libGLX_nvidia-Makefile
deleted file mode 100644
index 44dbc0e633b3..000000000000
--- a/x11/nvidia-driver/files/460-patch-lib-libGLX_nvidia-Makefile
+++ /dev/null
@@ -1,27 +0,0 @@
---- lib/libGLX_nvidia/Makefile.orig
-+++ lib/libGLX_nvidia/Makefile
-@@ -16,18 +16,18 @@ EXTRADEPS= nvidia-application-profiles-rc nvidia_icd.j
- # look for this file.
-
- nvidia_icd.json:
-- @mkdir -p ${VKICD_PATH}
-+ @mkdir -p ${DESTDIR}${VKICD_PATH}
- @${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
- ${NVIDIA_ROOT}/nvidia_icd.json \
-- ${VKICD_PATH}
-- @sed -i '' -e "s/__NV_VK_ICD__/lib${LIB}.so/" ${VKICD_PATH}/nvidia_icd.json
-+ ${DESTDIR}${VKICD_PATH}
-+ @sed -i '' -e "s/__NV_VK_ICD__/lib${LIB}.so/" ${DESTDIR}${VKICD_PATH}/nvidia_icd.json
-
- nvidia_layers.json:
-- @mkdir -p ${VKLAYERS_PATH}
-+ @mkdir -p ${DESTDIR}${VKLAYERS_PATH}
- @${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
- ${NVIDIA_ROOT}/nvidia_layers.json \
-- ${VKLAYERS_PATH}
-- @sed -i '' -e "s/__NV_VK_ICD__/lib${LIB}.so/" ${VKLAYERS_PATH}/nvidia_layers.json
-+ ${DESTDIR}${VKLAYERS_PATH}
-+ @sed -i '' -e "s/__NV_VK_ICD__/lib${LIB}.so/" ${DESTDIR}${VKLAYERS_PATH}/nvidia_layers.json
-
-
- nvidia-application-profiles-rc:
More information about the dev-commits-ports-all
mailing list