summaryrefslogtreecommitdiffstats
path: root/mail/evolution/Makefile
blob: 620f034efd150af60b2d20e0b8dd363490e49739 (plain)
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
# Created by: Ade Lovett <ade@FreeBSD.org>
# $FreeBSD$

PORTNAME=	evolution
PORTVERSION=	3.18.5.1
PORTREVISION=	1
CATEGORIES=	mail gnome
MASTER_SITES=	GNOME
DIST_SUBDIR=	gnome3

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

LICENSE=	GFDL GPLv2+ LGPL21+ MPL 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 \
		highlight:textproc/highlight
LIB_DEPENDS=	libnss3.so:security/nss \
		libgcr-3.so:security/gcr \
		libgtkspell3-3.so:textproc/gtkspell3 \
		libgeocode-glib.so:net/geocode-glib \
		libwebkitgtk-3.0.so:www/webkit-gtk3 \
		libcryptui.so:security/libcryptui \
		libcanberra-gtk3.so:audio/libcanberra-gtk3 \
		libnotify.so:devel/libnotify
RUN_DEPENDS=	highlight:textproc/highlight \
		gnome-keyring>=3.0.0:security/gnome-keyring

PORTSCOUT=	limitw:1,even

USES=		desktop-file-utils bison gettext gmake gnome libtool \
		pathfix perl5 pkgconfig tar:xz
USE_GNOME=	evolutiondataserver3 gnomedesktop3 intltool
GNU_CONFIGURE=	yes
USE_GSTREAMER1=	yes
INSTALLS_ICONS=	yes
USE_LDCONFIG=	yes
CONFIGURE_ARGS=	--enable-nss=yes \
		--disable-autoar \
		--with-sub-version=" FreeBSD GNOME Team Port"
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
INSTALL_TARGET=	install-strip

GLIB_SCHEMAS=	org.gnome.evolution.gschema.xml \
		org.gnome.evolution.addressbook.gschema.xml \
		org.gnome.evolution.calendar.gschema.xml \
		org.gnome.evolution.importer.gschema.xml \
		org.gnome.evolution.mail.gschema.xml \
		org.gnome.evolution.shell.gschema.xml \
		org.gnome.evolution.bogofilter.gschema.xml \
		org.gnome.evolution.spamassassin.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

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

OPTIONS_DEFINE=	LDAP WEATHER CANBERRA PST
OPTIONS_DEFAULT=LDAP WEATHER CANBERRA BOGOFILTER
OPTIONS_GROUP=	SPAM
OPTIONS_GROUP_SPAM=SPAMASSASSIN BOGOFILTER

OPTIONS_SUB=	yes

CANBERRA_DESC=	Canberra theme audio plugin
WEATHER_DESC=	Weather calendar backend
SPAM_DESC=	Spam filter support
SPAMASSASSIN_DESC=	SpamAssassin spam filtering
BOGOFILTER_DESC=	Bogofilter spam filtering
PST_DESC=	Outlook .pst importer
MAPS_DESC=	Contact maps

LDAP_CONFIGURE_WITH=	openldap
LDAP_USE=	OPENLDAP=yes

WEATHER_LIB_DEPENDS=	libgweather-3.so:net/libgweather
WEATHER_CONFIGURE_ENABLE=	weather

SPAMASSASSIN_CONFIGURE_WITH=	spamassassin=${LOCALBASE}/bin/spamassassin \
				sa-learn=${LOCALBASE}/bin/sa-learn
SPAMASSASSIN_BUILD_DEPENDS=	spamassassin:mail/spamassassin
SPAMASSASSIN_RUN_DEPENDS=	spamassassin:mail/spamassassin

BOGOFILTER_CONFIGURE_WITH=	bogofilter=${LOCALBASE}/bin/bogofilter
BOGOFILTER_BUILD_DEPENDS=	bogofilter:mail/bogofilter
BOGOFILTER_RUN_DEPENDS=	bogofilter:mail/bogofilter

CANBERRA_LIB_DEPENDS=	libcanberra-gtk3.so:audio/libcanberra-gtk3
CANBERRA_CONFIGURE_ENABLE=	canberra

PST_CONFIGURE_ENABLE=	pst-import
PST_BUILD_DEPENDS=	libpst>=0.6.58_1:mail/libpst
PST_RUN_DEPENDS=	libpst>=0.6.58_1:mail/libpst

CONFIGURE_ARGS+=--disable-contact-maps
#MAPS_CONFIGURE_ENABLE=	contact-maps
#MAPS_LIB_DEPENDS=	libchamplain-0.12.so:graphics/libchamplain \
#			libclutter-gtk-1.0.so:graphics/clutter-gtk3
#MAPS_BUILD_DEPENDS=	geoclue>=0:net/geoclue

.include <bsd.port.options.mk>

post-patch:
	@${REINPLACE_CMD} -e '/^plugins_standard_always/s/audio-inline//' \
		-e 's|-lkrb5 -lcrypto -lasn1 -lcom_err -lroken -lgssapi|${KRB5_LIB}|g' \
		-e 's|-Wl,--no-undefined||g' \
		-e 's|-Wmissing-include-dirs||g' \
		${WRKSRC}/configure
	@${REINPLACE_CMD} -e 's|/usr|${LOCALBASE}|g' \
		${WRKSRC}/modules/spamassassin/evolution-spamassassin.c \
		${WRKSRC}/modules/bogofilter/evolution-bogofilter.c
#	@${SH} ${FILESDIR}/fix-plugins.sh ${WRKSRC}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud