git: f3b510eb8212 - main - games/xray_re-tools: try to unbreak the port in "build-as-user" mode

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Wed, 26 Oct 2022 06:10:52 UTC
The branch main has been updated by danfe:

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

commit f3b510eb8212bcc4ff0c4da4ba5678d37e90388b
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2022-10-26 06:09:56 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2022-10-26 06:09:56 +0000

    games/xray_re-tools: try to unbreak the port in "build-as-user" mode
    
    For some reason, extracted nVidia Texture Tools copy cannot be patched
    in-place.  Instead, create dummy configuration file within the port's
    own working directory.
    
    Reported by:    pkg-fallout
---
 games/xray_re-tools/Makefile | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/games/xray_re-tools/Makefile b/games/xray_re-tools/Makefile
index 6267cb8bf449..7e162e8e333b 100644
--- a/games/xray_re-tools/Makefile
+++ b/games/xray_re-tools/Makefile
@@ -56,8 +56,7 @@ post-patch:
 
 post-configure:
 	@${LN} -sf ${_NVTT_WRKSRC:sh}/src ${WRKSRC}/sources/3rd-party/nvtt
-	@${REINPLACE_CMD} -e '/#include "nvconfig\.h"/d' \
-		${WRKSRC}/sources/3rd-party/nvtt/nvcore/nvcore.h
+	@${ECHO_CMD} > ${WRKSRC}/sources/xray_re/nvconfig.h
 
 do-install:
 	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/converter \