git: 2b5e1fb0c48b - main - x11/nvidia-driver-[204,340]: Fix build on CURRENT

From: Kevin Bowling <kbowling_at_FreeBSD.org>
Date: Thu, 14 Aug 2025 08:06:19 UTC
The branch main has been updated by kbowling:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2b5e1fb0c48b20bd1d3b8dec829ccc50d20036dd

commit 2b5e1fb0c48b20bd1d3b8dec829ccc50d20036dd
Author:     Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
AuthorDate: 2025-08-14 08:04:02 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2025-08-14 08:05:58 +0000

    x11/nvidia-driver-[204,340]: Fix build on CURRENT
    
    Commit 9302fb05a0c6 "x11/nvidia-driver: Fix build after kva_layout"
    accidentally broke builds for x11/nvidia-driver-304 and
    x11/nvidia-driver-340.
    
    Fix builds for these 2 slave (child) ports.
    Other slave ports are not affected with this breakage.
    
    Reported by:    pkg-fallout
    Differential Revision:  https://reviews.freebsd.org/D51888
---
 x11/nvidia-driver/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile
index 317e494ecbdf..ad87c00eb3fd 100644
--- a/x11/nvidia-driver/Makefile
+++ b/x11/nvidia-driver/Makefile
@@ -328,7 +328,7 @@ post-patch: .SILENT
 .if ${OSVERSION} >= 1500051
 	${REINPLACE_CMD} -e 's/DMAP_MIN_ADDRESS/kva_layout.dmap_low/' \
 		-e 's/DMAP_MAX_ADDRESS/kva_layout.dmap_high/' \
-		${WRKSRC}/src/nvidia/nvidia_subr.c
+		${WRKSRC}/src/${NVSRC}/nvidia_subr.c
 .endif
 
 pre-install: