1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-04 11:23:46 +00:00

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
This commit is contained in:
Alexey Dokuchaev 2021-11-30 07:02:18 +00:00
parent b0c353539e
commit 9fe58b6dc3

View File

@ -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: ,' \