git: 00ad410bc008 - main - games/trenchbroom: unbreak the port's build against Clang 16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 04 Jul 2023 11:51:27 UTC
The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=00ad410bc0087d24ed61a88996839ec9aaeec023 commit 00ad410bc0087d24ed61a88996839ec9aaeec023 Author: Alexey Dokuchaev <danfe@FreeBSD.org> AuthorDate: 2023-07-04 11:50:50 +0000 Commit: Alexey Dokuchaev <danfe@FreeBSD.org> CommitDate: 2023-07-04 11:50:50 +0000 games/trenchbroom: unbreak the port's build against Clang 16 Replace deprecated since C++11 and removed from C++17 `std::auto_ptr' smart pointer class with `std::unique_ptr' which luckily can be used as a drop-in replacement in this case. Reported by: pkg-fallout --- games/trenchbroom/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/games/trenchbroom/Makefile b/games/trenchbroom/Makefile index 3be5b482b795..b278d139973f 100644 --- a/games/trenchbroom/Makefile +++ b/games/trenchbroom/Makefile @@ -37,6 +37,9 @@ post-patch: ${WRKSRC}/common/src/IO/SystemPaths.cpp @${REINPLACE_CMD} -e '/return m_.*Margin/s,(),,' \ ${WRKSRC}/common/src/View/CellLayout.h + @${REINPLACE_CMD} -e '/typedef std::/s,auto_ptr,unique_ptr,' \ + ${WRKSRC}/common/src/IO/NodeSerializer.h \ + ${WRKSRC}/common/src/Renderer/FontTexture.h do-install: ${INSTALL_PROGRAM} ${WRKSRC}/TrenchBroom ${STAGEDIR}${PREFIX}/bin