Skip to content

Commit

Permalink
net-p2p/torrent-file-editor: Fix build with llvm15
Browse files Browse the repository at this point in the history
  • Loading branch information
5u623l20 committed Jun 8, 2023
1 parent ec96570 commit f85994a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion net-p2p/torrent-file-editor/Makefile
Expand Up @@ -23,11 +23,17 @@ OPTIONS_DEFAULT= DONATION
DONATION_DESC= Show donation text in the About dialog
DONATION_CMAKE_OFF= -DDISABLE_DONATION:BOOL=ON

.include <bsd.port.pre.mk>

.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=unused-but-set-variable
.endif

post-patch:
@${REINPLACE_CMD} -e 's,const auto file,const auto \&file,' \
${WRKSRC}/bencodemodel.cpp ${WRKSRC}/mainwindow.cpp
# Avoid conflict with C++20 <version> by adding .txt suffix
@${REINPLACE_CMD} -i .c++20 '/file/s/version/&.txt/' \
${WRKSRC}/cmake/Dmg.cmake ${WRKSRC}/cmake/Version.cmake

.include <bsd.port.mk>
.include <bsd.port.post.mk>

0 comments on commit f85994a

Please sign in to comment.