git: f85994a9462b - main - net-p2p/torrent-file-editor: Fix build with llvm15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 08 Jun 2023 15:31:08 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f85994a9462b7fdbbdf62a4db5f2b1f43135de95
commit f85994a9462b7fdbbdf62a4db5f2b1f43135de95
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-08 14:15:21 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-08 15:30:54 +0000
net-p2p/torrent-file-editor: Fix build with llvm15
---
net-p2p/torrent-file-editor/Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/net-p2p/torrent-file-editor/Makefile b/net-p2p/torrent-file-editor/Makefile
index 23ea32847f69..10ee0769e4db 100644
--- a/net-p2p/torrent-file-editor/Makefile
+++ b/net-p2p/torrent-file-editor/Makefile
@@ -23,6 +23,12 @@ 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
@@ -30,4 +36,4 @@ post-patch:
@${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>