aboutsummaryrefslogtreecommitdiff
path: root/mail/evolution/Makefile
blob: 200b3bfc06e131e43bedd08affb167b308f45a18 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# Created by: Ade Lovett <ade@FreeBSD.org>

PORTNAME=	evolution
DISTVERSION=	3.44.0
PORTREVISION=	2
CATEGORIES=	mail gnome
MASTER_SITES=	GNOME
DIST_SUBDIR=	gnome

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Integrated mail, calendar and address book distributed suite

LICENSE=	GFDL GPLv2+ LGPL21+ MPL11 OPENLDAP
LICENSE_COMB=	multi
LICENSE_NAME_OPENLDAP=	OpenLDAP Public License
LICENSE_FILE_OPENLDAP=	${WRKSRC}/COPYING.OPENLDAP
LICENSE_PERMS_OPENLDAP=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

BUILD_DEPENDS=	highlight:textproc/highlight \
		iso-codes>=0:misc/iso-codes \
		itstool:textproc/itstool
LIB_DEPENDS=	libcmark.so:textproc/cmark \
		libcryptui.so:security/libcryptui \
		libdbus-1.so:devel/dbus \
		libdbus-glib-1.so:devel/dbus-glib \
		libenchant-2.so:textproc/enchant2 \
		libenchant.so:textproc/enchant \
		libfribidi.so:converters/fribidi \
		libgcr-base-3.so:security/gcr \
		libgnome-autoar-gtk-0.so:archivers/gnome-autoar \
		libgspell-1.so:textproc/gspell \
		libgtkspell3-3.so:textproc/gtkspell3 \
		libical.so:devel/libical \
		libicuuc.so:devel/icu \
		libnotify.so:devel/libnotify \
		libnspr4.so:devel/nspr \
		libnss3.so:security/nss \
		libp11-kit.so:security/p11-kit \
		libsecret-1.so:security/libsecret \
		libsoup-2.4.so:devel/libsoup \
		libwebkit2gtk-4.0.so:www/webkit2-gtk3
RUN_DEPENDS=	highlight:textproc/highlight \
		iso-codes>=0:misc/iso-codes

PORTSCOUT=	limitw:1,even

USES=		cmake compiler:c11 cpe desktop-file-utils gettext gnome \
		iconv:wchar_t libarchive localbase pathfix pkgconfig sqlite \
		tar:xz xorg
USE_GNOME=	cairo evolutiondataserver3 glib20 gnomedesktop3 intltool
GNU_CONFIGURE=	yes
USE_XORG=	x11
USE_LDCONFIG=	yes
CPE_VENDOR=	gnome
CMAKE_ARGS=	-DENABLE_TEXT_HIGHLIGHT=YES \
		-DVERSION_COMMENT="FreeBSD GNOME Team" \
		-DWITH_ENCHANT_VERSION=2

GLIB_SCHEMAS=	org.gnome.evolution.addressbook.gschema.xml \
		org.gnome.evolution.bogofilter.gschema.xml \
		org.gnome.evolution.calendar.gschema.xml \
		org.gnome.evolution.gschema.xml \
		org.gnome.evolution.importer.gschema.xml \
		org.gnome.evolution.mail.gschema.xml \
		org.gnome.evolution.plugin.attachment-reminder.gschema.xml \
		org.gnome.evolution.plugin.autocontacts.gschema.xml \
		org.gnome.evolution.plugin.email-custom-header.gschema.xml \
		org.gnome.evolution.plugin.external-editor.gschema.xml \
		org.gnome.evolution.plugin.face-picture.gschema.xml \
		org.gnome.evolution.plugin.itip.gschema.xml \
		org.gnome.evolution.plugin.mail-notification.gschema.xml \
		org.gnome.evolution.plugin.prefer-plain.gschema.xml \
		org.gnome.evolution.plugin.publish-calendar.gschema.xml \
		org.gnome.evolution.plugin.sender-validator.gschema.xml \
		org.gnome.evolution.plugin.templates.gschema.xml \
		org.gnome.evolution.shell.gschema.xml \
		org.gnome.evolution.spamassassin.gschema.xml \
		org.gnome.evolution.text-highlight.gschema.xml

EVO_VERSION=	3.24
PLIST_SUB=	PORTVERSION=2.12 \
		VERSION=${EVO_VERSION}

OPTIONS_SUB=		yes
OPTIONS_DEFINE=		CANBERRA LDAP MAPS PST WEATHER YTNEF
OPTIONS_DEFAULT=	BOGOFILTER CANBERRA LDAP WEATHER

SPAM_DESC=		Spam filter support
OPTIONS_GROUP=		SPAM
OPTIONS_GROUP_SPAM=	BOGOFILTER SPAMASSASSIN

LDAP_CMAKE_ON=	-DWITH_OPENLDAP=${LOCALBASE}
LDAP_CMAKE_OFF=	-DWITH_OPENLDAP=OFF
LDAP_USE=	OPENLDAP=yes

YTNEF_DESC=		Support MS Outlook TNEF format
YTNEF_LIB_DEPENDS=	libytnef.so:converters/ytnef
YTNEF_CMAKE_BOOL=	ENABLE_YTNEF

WEATHER_DESC=		Weather calendar backend
WEATHER_LIB_DEPENDS=	libgweather-3.so:net/libgweather
WEATHER_CMAKE_BOOL=	ENABLE_WEATHER

SPAMASSASSIN_DESC=		SpamAssassin spam filtering
SPAMASSASSIN_CMAKE_ON=		-DWITH_SA_LEARN=${LOCALBASE}/bin/sa-learn \
				-DWITH_SPAMASSASSIN=${LOCALBASE}/spamassassin
SPAMASSASSIN_CMAKE_OFF=		-DWITH_SPAMASSASSIN=NO
SPAMASSASSIN_BUILD_DEPENDS=	spamassassin:mail/spamassassin
SPAMASSASSIN_RUN_DEPENDS=	spamassassin:mail/spamassassin

BOGOFILTER_DESC=		Bogofilter spam filtering
BOGOFILTER_CMAKE_ON=		-DWITH_BOGOFILTER=${LOCALBASE}/bin/bogofilter
BOGOFILTER_CMAKE_OFF=		-DWITH_BOGOFILTER=OFF
BOGOFILTER_BUILD_DEPENDS=	bogofilter:mail/bogofilter
BOGOFILTER_RUN_DEPENDS=		bogofilter:mail/bogofilter

CANBERRA_DESC=		Canberra theme audio plugin
CANBERRA_LIB_DEPENDS=	libcanberra-gtk3.so:audio/libcanberra-gtk3 \
			libcanberra.so:audio/libcanberra
CANBERRA_CMAKE_BOOL=	ENABLE_CANBERRA

PST_DESC=		Outlook .pst importer
PST_CMAKE_BOOL=		ENABLE_PST_IMPORT
PST_BUILD_DEPENDS=	libpst>=0.6.58_1:mail/libpst
PST_RUN_DEPENDS=	libpst>=0.6.58_1:mail/libpst

MAPS_DESC=		Contact maps
MAPS_CMAKE_BOOL=	ENABLE_CONTACT_MAPS
MAPS_LIB_DEPENDS=	libchamplain-0.12.so:graphics/libchamplain \
			libclutter-1.0.so:graphics/clutter \
			libclutter-gtk-1.0.so:graphics/clutter-gtk3 \
			libcogl.so:graphics/cogl \
			libgeocode-glib.so:net/geocode-glib \
			libjson-glib-1.0.so:devel/json-glib
MAPS_USES=		gl xorg
MAPS_USE=		GL=egl \
			XORG=xcomposite,xdamage,xext,xfixes,xi,xrandr

.include <bsd.port.mk>