Index: head/net-p2p/torrent-file-editor/Makefile =================================================================== --- head/net-p2p/torrent-file-editor/Makefile (revision 494586) +++ head/net-p2p/torrent-file-editor/Makefile (revision 494587) @@ -1,44 +1,49 @@ # Created by: Alexey Dokuchaev # $FreeBSD$ PORTNAME= torrent-file-editor PORTVERSION= 0.3.13 PORTREVISION= 2 CATEGORIES= net-p2p MASTER_SITES= SF/${PORTNAME}/v${PORTVERSION} MAINTAINER= danfe@FreeBSD.org COMMENT= Qt-based GUI tool for creating and editing .torrent files LICENSE= GPLv3 USES= cmake compiler:c++11-lang desktop-file-utils _QT4_DEPS= linguisttools_build moc_build qmake_build rcc_build \ uic_build corelib gui _QT5_DEPS= buildtools_build linguisttools_build qmake_build \ core gui widgets OPTIONS_DEFINE= DONATION QT5 OPTIONS_DEFAULT= DONATION DONATION_DESC= Show donation text in the About dialog QT5_DESC= Build against Qt 5 instead of Qt 4 DONATION_CMAKE_OFF= -DDISABLE_DONATION:BOOL=ON QT5_USES= qt:5 QT5_USES_OFF= qt:4 QT5_USE= QT=${_QT5_DEPS:ts,} QT5_USE_OFF= QT=${_QT4_DEPS:ts,} QT5_LIB_DEPENDS_OFF= libqjson.so:devel/qjson@qt4 QT5_CMAKE_BOOL= QT5_BUILD .include .if ! ${PORT_OPTIONS:MQT5} DEPRECATED= Qt4 has been EOL since december 2015 EXPIRATION_DATE= 2019-03-15 .endif +post-patch: +# Avoid conflict with C++20 by adding .txt suffix + @${REINPLACE_CMD} -i .c++20 '/file/s/version/&.txt/' \ + ${WRKSRC}/Version.cmake ${WRKSRC}/Dmg.cmake + .include