freebsd-ports/net-p2p/torrent-file-editor/Makefile
Adriaan de Groot 8d33403410 net-p2p/torrent-file-editor turn off PCH (pre-compiled headers)
This is prep-work to landing CMake 3.17 -- something has changed in
dependency handling, and the configure step fails. This is the
last fall-out item before a new exp-run.

PR:		245356
2020-04-05 11:11:00 +00:00

35 lines
955 B
Makefile

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= torrent-file-editor
PORTVERSION= 0.3.17
DISTVERSIONPREFIX= v
CATEGORIES= net-p2p
MAINTAINER= danfe@FreeBSD.org
COMMENT= GUI tool for creating and editing .torrent files
LICENSE= GPLv3+
USES= cmake compiler:c++11-lang desktop-file-utils qt:5
USE_GITHUB= yes
USE_QT= buildtools_build linguisttools_build qmake_build \
core gui widgets
CMAKE_ARGS= -DQT5_BUILD:BOOL=ON \
-DENABLE_PCH:BOOL=OFF
OPTIONS_DEFINE= DONATION
OPTIONS_DEFAULT= DONATION
DONATION_DESC= Show donation text in the About dialog
DONATION_CMAKE_OFF= -DDISABLE_DONATION:BOOL=ON
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>