git: 9fe58b6dc350 - main - games/trenchbroom: unbreak the build on recent -CURRENT (Clang 13.0.0)

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Tue, 30 Nov 2021 07:03:11 UTC
The branch main has been updated by danfe:

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

commit 9fe58b6dc350c0b46483b64875cab5dfd43331db
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2021-11-30 07:02:18 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2021-11-30 07:02:18 +0000

    games/trenchbroom: unbreak the build on recent -CURRENT (Clang 13.0.0)
    
       common/src/SharedPointer.h:28:10: fatal error: 'tr1/memory' file
       not found
       #include <tr1/memory>
                ^~~~~~~~~~~~
    
    While here, register explicit dependency on the `print/freetype2' port
    per stage Q/A report.
    
    Reported by:    pkg-fallout
---
 games/trenchbroom/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/games/trenchbroom/Makefile b/games/trenchbroom/Makefile
index 31cad862435a..602ec6f66d48 100644
--- a/games/trenchbroom/Makefile
+++ b/games/trenchbroom/Makefile
@@ -1,6 +1,6 @@
 # Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
 
-PORTNAME=	trenchbroom
+PORTNAME=	${GH_PROJECT:tl}
 PORTVERSION=	2.0.0.b
 PORTREVISION=	11
 CATEGORIES=	games cad
@@ -10,7 +10,8 @@ COMMENT=	Cross-platform level editor for Quake-engine based games
 
 LICENSE=	GPLv3
 
-LIB_DEPENDS=	libfreeimage.so:graphics/freeimage
+LIB_DEPENDS=	libfreeimage.so:graphics/freeimage \
+		libfreetype.so:print/freetype2
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	kduske
@@ -27,6 +28,8 @@ PORTDOCS=	README.md
 OPTIONS_DEFINE=	DOCS
 
 post-patch:
+	@${REINPLACE_CMD} -e 's,_MSC_VER,__${OPSYS}__,' \
+		${WRKSRC}/common/src/SharedPointer.h
 	@${GREP} -Rl --null std::tr1:: ${WRKSRC}/common/src | ${XARGS} -0 \
 		${REINPLACE_CMD} -e 's,std::tr1::,std::,g'
 	@${REINPLACE_CMD} -e 's,Build ,&Type: ,' \