Skip to content

Commit

Permalink
games/trenchbroom: unbreak the port's build against Clang 16
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Alexey Dokuchaev authored and Alexey Dokuchaev committed Jul 4, 2023
1 parent 908c62a commit 00ad410
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions games/trenchbroom/Makefile
Expand Up @@ -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
Expand Down

0 comments on commit 00ad410

Please sign in to comment.