1PORTNAME=	evolution
2DISTVERSION=	3.56.2
3PORTREVISION=	3
4CATEGORIES=	mail gnome
5MASTER_SITES=	GNOME
6DIST_SUBDIR=	gnome
7
8MAINTAINER=	ports@MidnightBSD.org
9COMMENT=	Integrated mail, calendar and address book distributed suite
10WWW=		https://gitlab.gnome.org/GNOME/evolution
11
12LICENSE=	gfdl gpl2 lgpl2.1 MPL20 OPENLDAP
13LICENSE_COMB=	multi
14LICENSE_NAME_OPENLDAP=	OpenLDAP Public License
15LICENSE_FILE_OPENLDAP=	${WRKSRC}/COPYING.OPENLDAP
16LICENSE_PERMS_OPENLDAP=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
17
18BUILD_DEPENDS=	highlight:textproc/highlight \
19		iso-codes>=0:misc/iso-codes \
20		itstool:textproc/itstool \
21		gsettings-desktop-schemas>0:devel/gsettings-desktop-schemas
22LIB_DEPENDS=	libdbus-1.so:devel/dbus \
23		libdbus-glib-1.so:devel/dbus-glib \
24		libenchant-2.so:textproc/enchant2 \
25		libgnome-autoar-gtk-0.so:archivers/gnome-autoar \
26		libgspell-1.so:textproc/gspell \
27		libical.so:devel/libical \
28		libicuuc.so:devel/icu \
29		libnotify.so:devel/libnotify \
30		libnspr4.so:devel/nspr \
31		libnss3.so:security/nss \
32		libp11-kit.so:security/p11-kit \
33		libsecret-1.so:security/libsecret \
34		libsoup-3.0.so:devel/libsoup3 \
35		libwebkit2gtk-4.1.so:www/webkit2-gtk@41 \
36		libjson-glib-1.0.so:devel/json-glib
37RUN_DEPENDS=	highlight:textproc/highlight \
38		iso-codes>=0:misc/iso-codes
39
40USES=		cmake compiler:c11 cpe desktop-file-utils gettext gnome \
41		iconv:wchar_t libarchive localbase pathfix pkgconfig sqlite \
42		tar:xz xorg
43USE_GNOME=	atk cairo evolutiondataserver3 gdkpixbuf glib20 gnomedesktop3 \
44		gtk30 intltool:build libxml2
45USE_XORG=	x11
46USE_LDCONFIG=	yes
47CPE_VENDOR=	gnome
48CMAKE_ARGS=	-DENABLE_TEXT_HIGHLIGHT=YES \
49		-DVERSION_COMMENT="MidnightBSD GNOME Team" \
50		-DWITH_ENCHANT_VERSION=2
51
52GLIB_SCHEMAS=	org.gnome.evolution.addressbook.gschema.xml \
53		org.gnome.evolution.bogofilter.gschema.xml \
54		org.gnome.evolution.calendar.gschema.xml \
55		org.gnome.evolution.gschema.xml \
56		org.gnome.evolution.importer.gschema.xml \
57		org.gnome.evolution.mail.gschema.xml \
58		org.gnome.evolution.plugin.attachment-reminder.gschema.xml \
59		org.gnome.evolution.plugin.autocontacts.gschema.xml \
60		org.gnome.evolution.plugin.email-custom-header.gschema.xml \
61		org.gnome.evolution.plugin.external-editor.gschema.xml \
62		org.gnome.evolution.plugin.face-picture.gschema.xml \
63		org.gnome.evolution.plugin.itip.gschema.xml \
64		org.gnome.evolution.plugin.mail-notification.gschema.xml \
65		org.gnome.evolution.plugin.prefer-plain.gschema.xml \
66		org.gnome.evolution.plugin.publish-calendar.gschema.xml \
67		org.gnome.evolution.plugin.sender-validator.gschema.xml \
68		org.gnome.evolution.plugin.templates.gschema.xml \
69		org.gnome.evolution.shell.gschema.xml \
70		org.gnome.evolution.spamassassin.gschema.xml \
71		org.gnome.evolution.text-highlight.gschema.xml
72
73PLIST_SUB=	EVO_VERSION="1.2" CAL_API_VERSION="2.0"
74
75OPTIONS_SUB=		yes
76OPTIONS_DEFINE=		CANBERRA LDAP MAPS MARKDOWN PST WEATHER YTNEF
77OPTIONS_DEFAULT=	BOGOFILTER CANBERRA LDAP MARKDOWN WEATHER
78
79SPAM_DESC=		Spam filter support
80OPTIONS_GROUP=		SPAM
81OPTIONS_GROUP_SPAM=	BOGOFILTER SPAMASSASSIN
82
83LDAP_CMAKE_ON=	-DWITH_OPENLDAP=${LOCALBASE}
84LDAP_CMAKE_OFF=	-DWITH_OPENLDAP=OFF
85LDAP_USES=	ldap
86
87YTNEF_DESC=		Support MS Outlook TNEF format
88YTNEF_LIB_DEPENDS=	libytnef.so:converters/ytnef
89YTNEF_CMAKE_BOOL=	ENABLE_YTNEF
90
91WEATHER_DESC=		Weather calendar backend
92WEATHER_LIB_DEPENDS=	libgweather-4.so:net/libgweather4 \
93			libgeocode-glib-2.so:net/geocode-glib2
94WEATHER_CMAKE_BOOL=	ENABLE_WEATHER
95
96SPAMASSASSIN_DESC=		SpamAssassin spam filtering
97SPAMASSASSIN_CMAKE_ON=		-DWITH_SA_LEARN=${LOCALBASE}/bin/sa-learn \
98				-DWITH_SPAMASSASSIN=${LOCALBASE}/spamassassin
99SPAMASSASSIN_CMAKE_OFF=		-DWITH_SPAMASSASSIN=NO
100SPAMASSASSIN_BUILD_DEPENDS=	spamassassin:mail/spamassassin
101SPAMASSASSIN_RUN_DEPENDS=	spamassassin:mail/spamassassin
102
103BOGOFILTER_DESC=		Bogofilter spam filtering
104BOGOFILTER_CMAKE_ON=		-DWITH_BOGOFILTER=${LOCALBASE}/bin/bogofilter
105BOGOFILTER_CMAKE_OFF=		-DWITH_BOGOFILTER=OFF
106BOGOFILTER_BUILD_DEPENDS=	bogofilter:mail/bogofilter
107BOGOFILTER_RUN_DEPENDS=		bogofilter:mail/bogofilter
108
109CANBERRA_DESC=		Canberra theme audio plugin
110CANBERRA_LIB_DEPENDS=	libcanberra-gtk3.so:audio/libcanberra-gtk3 \
111			libcanberra.so:audio/libcanberra
112CANBERRA_CMAKE_BOOL=	ENABLE_CANBERRA
113
114PST_DESC=		Outlook .pst importer
115PST_CMAKE_BOOL=		ENABLE_PST_IMPORT
116PST_BUILD_DEPENDS=	libpst>=0.6.58_1:mail/libpst
117PST_RUN_DEPENDS=	libpst>=0.6.58_1:mail/libpst
118
119MAPS_DESC=		Contact maps
120MAPS_CMAKE_BOOL=	ENABLE_CONTACT_MAPS
121MAPS_LIB_DEPENDS=	libchamplain-0.12.so:graphics/libchamplain \
122			libclutter-1.0.so:graphics/clutter \
123			libclutter-gtk-1.0.so:graphics/clutter-gtk3 \
124			libcogl.so:graphics/cogl \
125			libgeocode-glib-2.so:net/geocode-glib2
126MAPS_USES=		gl xorg
127MAPS_USE=		GL=egl \
128			XORG=xcomposite,xdamage,xext,xfixes,xi,xrandr
129
130MARKDOWN_DESC=		Markdown support
131MARKDOWN_CMAKE_ON=	-DENABLE_MARKDOWN=ON
132MARKDOWN_CMAKE_OFF=	-DENABLE_MARKDOWN=OFF
133MARKDOWN_LIB_DEPENDS=	libcmark.so:textproc/cmark
134
135.include <bsd.port.mk>
136