Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jul 2023 11:51:27 GMT
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 00ad410bc008 - main - games/trenchbroom: unbreak the port's build against Clang 16
Message-ID:  <202307041151.364BpRAo063911@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307041151.364BpRAo063911>