1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00
freebsd-ports/mail/trojita/Makefile
Raphael Kubo da Costa 5be7d37dde Remove build-time dependency on devel/qt5-qmldevtools.
qt5-qmldevtools is likely to be removed when we move to Qt 5.3, and trojita
has never actually needed it.

PR:		194303
Approved by:	Marco Broeder <marco.broeder@posteo.eu> (maintainer)
2014-10-13 18:31:24 +00:00

47 lines
1.3 KiB
Makefile

# Created by: Marco Broeder <marco.broeder@posteo.eu>
# $FreeBSD$
PORTNAME= trojita
PORTVERSION= 0.4.1
PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= SF/${PORTNAME}/src/
MAINTAINER= marco.broeder@posteo.eu
COMMENT?= Fast cross-platform IMAP e-mail client using Qt 5 toolkit
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
USE_LDCONFIG= yes
USES= cmake compiler:c++11-lib desktop-file-utils tar:bzip2
CMAKE_ARGS+= -DCMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make \
-DWITH_DESKTOP:STRING=ON -DWITH_HARMATTAN:STRING=OFF \
-DWITH_RAGEL:STRING=OFF -DWITH_SHARED_PLUGINS:STRING=ON \
-DWITH_TESTS:STRING=OFF -DWITH_ZLIB:STRING=ON
HAS_CONFIGURE= yes
INSTALLS_ICONS= yes
.if defined(PKGNAMESUFFIX) && ${PKGNAMESUFFIX} == "-qt4"
CONFLICTS_INSTALL= trojita-[0-9]*
CMAKE_ARGS+= -DWITH_QT5:STRING=OFF
USE_QT4= linguist_build moc_build qmake_build rcc_build uic_build \
corelib dbus gui network opengl sql sql-sqlite3 webkit
.else
CONFLICTS_INSTALL= trojita-qt4-[0-9]*
CMAKE_ARGS+= -DWITH_QT5:STRING=ON
USE_QT5= buildtools_build linguisttools_build qmake_build \
core dbus gui network opengl printsupport \
qml quick sql sql-sqlite3 webkit widgets
.endif
post-patch:
${REINPLACE_CMD} -e 's|$${LINGUIST_PATH}/bin|${QT_BINDIR}|g' \
${WRKSRC}/cmake/FindQt5LinguistForTrojita.cmake
post-install:
.include <bsd.port.mk>