aboutsummaryrefslogtreecommitdiff
path: root/mail/trojita/Makefile
blob: 430629971b8edbbda9012119b08d32e8794c2dc8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Created by: Marco Broeder <marco.broeder@posteo.eu>
# $FreeBSD$

PORTNAME=	trojita
PORTVERSION=	0.5
PORTREVISION=	1
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 cpe desktop-file-utils tar:bzip2
CPE_PROJECT=	trojita_project
CMAKE_ARGS+=	-DCMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make \
		-DWITH_CLEARTEXT_PLUGIN:STRING=ON -DWITH_DBUS:STRING=ON \
		-DWITH_DESKTOP:STRING=ON -DWITH_HARMATTAN:STRING=OFF \
		-DWITH_QTKEYCHAIN_PLUGIN:STRING=ON -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]*
LIB_DEPENDS+=	libqtkeychain.so:${PORTSDIR}/security/qtkeychain-qt4
CMAKE_ARGS+=	-DWITH_QT5:STRING=OFF
USE_QT4=	linguisttools_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]*
LIB_DEPENDS+=	libqt5keychain.so:${PORTSDIR}/security/qtkeychain-qt5
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

.include <bsd.port.mk>