aboutsummaryrefslogtreecommitdiff
path: root/mail/evolution/Makefile
blob: 1a37698bcd4fe1f6e4b8f5463f3f856ab57c4906 (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
# Created by: Ade Lovett <ade@FreeBSD.org>

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

PORTSCOUT=	limitw:1,even

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

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.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=	VERSION=${EVO_VERSION} \
		PORTVERSION=2.12

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

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

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_SPAMASSASSIN=${LOCALBASE}/spamassassin \
				-DWITH_SA_LEARN=${LOCALBASE}/bin/sa-learn
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.so:audio/libcanberra \
			libcanberra-gtk3.so:audio/libcanberra-gtk3
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=	libjson-glib-1.0.so:devel/json-glib \
			libgeocode-glib.so:net/geocode-glib \
			libcogl.so:graphics/cogl \
			libclutter-1.0.so:graphics/clutter \
			libclutter-gtk-1.0.so:graphics/clutter-gtk3 \
			libchamplain-0.12.so:graphics/libchamplain
MAPS_USES=		gl xorg
MAPS_USE=		xorg=xcomposite,xdamage,xext,xfixes,xi,xrandr gl=egl

.include <bsd.port.mk>