git: 07042622f3af - main - emulators/wine: Clean environment for gmake

From: Gerald Pfeifer <gerald_at_FreeBSD.org>
Date: Sun, 12 May 2024 10:43:48 UTC
The branch main has been updated by gerald:

URL: https://cgit.FreeBSD.org/ports/commit/?id=07042622f3af82e624f996fb442a4627678abdf4

commit 07042622f3af82e624f996fb442a4627678abdf4
Author:     Gerald Pfeifer <gerald@FreeBSD.org>
AuthorDate: 2024-05-12 10:43:15 +0000
Commit:     Gerald Pfeifer <gerald@FreeBSD.org>
CommitDate: 2024-05-12 10:43:15 +0000

    emulators/wine: Clean environment for gmake
    
    Backport c9fcc6ef30 from emulators/wine-devel.
    
    PR:             277913
---
 emulators/wine/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emulators/wine/Makefile b/emulators/wine/Makefile
index df8365ba92ac..18a23f4eb33a 100644
--- a/emulators/wine/Makefile
+++ b/emulators/wine/Makefile
@@ -156,7 +156,7 @@ PLIST_SUB+=		WINE32="" WINE64="@comment " WINEARCH="i386"
 .endif
 
 pre-build:
-	cd ${WRKSRC} && ${MAKE_CMD} depend
+	cd ${WRKSRC} && ${SETENVI} ${WRK_ENV} ${MAKE_CMD} depend
 
 post-install:
 .if ${ARCH} == i386