1 |
# $MidnightBSD$ |
2 |
|
3 |
PORTNAME= evolution |
4 |
PORTVERSION= 3.18.5.1 |
5 |
PORTREVISION= 2 |
6 |
CATEGORIES= mail gnome |
7 |
MASTER_SITES= GNOME |
8 |
DIST_SUBDIR= gnome3 |
9 |
|
10 |
MAINTAINER= ports@MidnightBSD.org |
11 |
COMMENT= Integrated mail, calendar and address book distributed suite |
12 |
|
13 |
LICENSE= gpl2 lgpl2.1 mpl OPENLDAP |
14 |
LICENSE_COMB= multi |
15 |
LICENSE_NAME_OPENLDAP= OpenLDAP Public License |
16 |
LICENSE_FILE_OPENLDAP= ${WRKSRC}/COPYING.OPENLDAP |
17 |
LICENSE_PERMS_OPENLDAP= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept |
18 |
|
19 |
BUILD_DEPENDS= itstool:textproc/itstool \ |
20 |
highlight:textproc/highlight |
21 |
LIB_DEPENDS= libnss3.so:security/nss \ |
22 |
libgcr-3.so:security/gcr \ |
23 |
libgtkspell3-3.so:textproc/gtkspell3 \ |
24 |
libgeocode-glib.so:net/geocode-glib \ |
25 |
libwebkitgtk-3.0.so:www/webkit-gtk3 \ |
26 |
libcryptui.so:security/libcryptui \ |
27 |
libcanberra-gtk3.so:audio/libcanberra-gtk3 \ |
28 |
libnotify.so:devel/libnotify |
29 |
RUN_DEPENDS= highlight:textproc/highlight \ |
30 |
gnome-keyring>=3.0.0:security/gnome-keyring |
31 |
|
32 |
PORTSCOUT= limitw:1,even |
33 |
|
34 |
USES= desktop-file-utils bison gettext gmake gnome libtool \ |
35 |
pathfix perl5 pkgconfig tar:xz |
36 |
USE_GNOME= evolutiondataserver3 gnomedesktop3 intltool |
37 |
GNU_CONFIGURE= yes |
38 |
USE_GSTREAMER1= yes |
39 |
INSTALLS_ICONS= yes |
40 |
USE_LDCONFIG= yes |
41 |
CONFIGURE_ARGS= --enable-nss=yes \ |
42 |
--disable-autoar \ |
43 |
--with-sub-version="BSD GNOME Team Port" |
44 |
CPPFLAGS+= -I${LOCALBASE}/include |
45 |
LDFLAGS+= -L${LOCALBASE}/lib |
46 |
INSTALL_TARGET= install-strip |
47 |
|
48 |
GLIB_SCHEMAS= org.gnome.evolution.gschema.xml \ |
49 |
org.gnome.evolution.addressbook.gschema.xml \ |
50 |
org.gnome.evolution.calendar.gschema.xml \ |
51 |
org.gnome.evolution.importer.gschema.xml \ |
52 |
org.gnome.evolution.mail.gschema.xml \ |
53 |
org.gnome.evolution.shell.gschema.xml \ |
54 |
org.gnome.evolution.bogofilter.gschema.xml \ |
55 |
org.gnome.evolution.spamassassin.gschema.xml \ |
56 |
org.gnome.evolution.plugin.attachment-reminder.gschema.xml \ |
57 |
org.gnome.evolution.plugin.autocontacts.gschema.xml \ |
58 |
org.gnome.evolution.plugin.email-custom-header.gschema.xml \ |
59 |
org.gnome.evolution.plugin.external-editor.gschema.xml \ |
60 |
org.gnome.evolution.plugin.face-picture.gschema.xml \ |
61 |
org.gnome.evolution.plugin.itip.gschema.xml \ |
62 |
org.gnome.evolution.plugin.mail-notification.gschema.xml \ |
63 |
org.gnome.evolution.plugin.prefer-plain.gschema.xml \ |
64 |
org.gnome.evolution.plugin.publish-calendar.gschema.xml \ |
65 |
org.gnome.evolution.plugin.templates.gschema.xml |
66 |
|
67 |
EVO_VERSION= 3.18 |
68 |
PLIST_SUB= VERSION=${EVO_VERSION} \ |
69 |
PORTVERSION=2.12 |
70 |
|
71 |
OPTIONS_DEFINE= LDAP WEATHER CANBERRA PST |
72 |
OPTIONS_DEFAULT=LDAP WEATHER CANBERRA |
73 |
OPTIONS_GROUP= SPAM |
74 |
OPTIONS_GROUP_SPAM=SPAMASSASSIN |
75 |
|
76 |
OPTIONS_SUB= yes |
77 |
|
78 |
CANBERRA_DESC= Canberra theme audio plugin |
79 |
WEATHER_DESC= Weather calendar backend |
80 |
SPAM_DESC= Spam filter support |
81 |
SPAMASSASSIN_DESC= SpamAssassin spam filtering |
82 |
PST_DESC= Outlook .pst importer |
83 |
MAPS_DESC= Contact maps |
84 |
|
85 |
LDAP_CONFIGURE_WITH= openldap |
86 |
LDAP_USE= OPENLDAP=yes |
87 |
|
88 |
WEATHER_LIB_DEPENDS= libgweather-3.so:net/libgweather |
89 |
WEATHER_CONFIGURE_ENABLE= weather |
90 |
|
91 |
SPAMASSASSIN_CONFIGURE_WITH= spamassassin=${LOCALBASE}/bin/spamassassin \ |
92 |
sa-learn=${LOCALBASE}/bin/sa-learn |
93 |
SPAMASSASSIN_BUILD_DEPENDS= spamassassin:mail/spamassassin |
94 |
SPAMASSASSIN_RUN_DEPENDS= spamassassin:mail/spamassassin |
95 |
|
96 |
CANBERRA_LIB_DEPENDS= libcanberra-gtk3.so:audio/libcanberra-gtk3 |
97 |
CANBERRA_CONFIGURE_ENABLE= canberra |
98 |
|
99 |
PST_CONFIGURE_ENABLE= pst-import |
100 |
PST_BUILD_DEPENDS= libpst>=0.6.58_1:mail/libpst |
101 |
PST_RUN_DEPENDS= libpst>=0.6.58_1:mail/libpst |
102 |
|
103 |
CONFIGURE_ARGS+=--disable-contact-maps |
104 |
#MAPS_CONFIGURE_ENABLE= contact-maps |
105 |
#MAPS_LIB_DEPENDS= libchamplain-0.12.so:graphics/libchamplain \ |
106 |
# libclutter-gtk-1.0.so:graphics/clutter-gtk3 |
107 |
#MAPS_BUILD_DEPENDS= geoclue>=0:net/geoclue |
108 |
|
109 |
.include <bsd.mport.options.mk> |
110 |
|
111 |
post-patch: |
112 |
@${REINPLACE_CMD} -e '/^plugins_standard_always/s/audio-inline//' \ |
113 |
-e 's|-lkrb5 -lcrypto -lasn1 -lcom_err -lroken -lgssapi|${KRB5_LIB}|g' \ |
114 |
-e 's|-Wl,--no-undefined||g' \ |
115 |
-e 's|-Wmissing-include-dirs||g' \ |
116 |
${WRKSRC}/configure |
117 |
@${REINPLACE_CMD} -e 's|/usr|${LOCALBASE}|g' \ |
118 |
${WRKSRC}/modules/spamassassin/evolution-spamassassin.c \ |
119 |
${WRKSRC}/modules/bogofilter/evolution-bogofilter.c |
120 |
# @${SH} ${FILESDIR}/fix-plugins.sh ${WRKSRC} |
121 |
|
122 |
.include <bsd.port.mk> |