1 # Created by: Ade Lovett <ade@FreeBSD.org>
11 MAINTAINER= gnome@FreeBSD.org
12 COMMENT= Integrated mail, calendar and address book distributed suite
14 LICENSE= GFDL GPLv2+ LGPL21+ MPL OPENLDAP
16 LICENSE_NAME_OPENLDAP= OpenLDAP Public License
17 LICENSE_FILE_OPENLDAP= ${WRKSRC}/COPYING.OPENLDAP
18 LICENSE_PERMS_OPENLDAP= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
20 BUILD_DEPENDS= itstool:textproc/itstool \
21 highlight:textproc/highlight
22 LIB_DEPENDS= libnss3.so:security/nss \
23 libgcr-3.so:security/gcr \
24 libgtkspell3-3.so:textproc/gtkspell3 \
25 libgeocode-glib.so:net/geocode-glib \
26 libwebkitgtk-3.0.so:www/webkit-gtk3 \
27 libcryptui.so:security/libcryptui \
28 libcanberra-gtk3.so:audio/libcanberra-gtk3 \
29 libnotify.so:devel/libnotify
30 RUN_DEPENDS= highlight:textproc/highlight \
31 gnome-keyring>=3.0.0:security/gnome-keyring
33 PORTSCOUT= limitw:1,even
35 USES= desktop-file-utils bison gettext gmake gnome libtool \
36 pathfix perl5 pkgconfig tar:xz
37 USE_GNOME= evolutiondataserver3 gnomedesktop3 intltool
42 CONFIGURE_ARGS= --enable-nss=yes \
44 --with-sub-version=" FreeBSD GNOME Team Port"
45 CPPFLAGS+= -I${LOCALBASE}/include
46 LDFLAGS+= -L${LOCALBASE}/lib
47 INSTALL_TARGET= install-strip
49 GLIB_SCHEMAS= org.gnome.evolution.gschema.xml \
50 org.gnome.evolution.addressbook.gschema.xml \
51 org.gnome.evolution.calendar.gschema.xml \
52 org.gnome.evolution.importer.gschema.xml \
53 org.gnome.evolution.mail.gschema.xml \
54 org.gnome.evolution.shell.gschema.xml \
55 org.gnome.evolution.bogofilter.gschema.xml \
56 org.gnome.evolution.spamassassin.gschema.xml \
57 org.gnome.evolution.plugin.attachment-reminder.gschema.xml \
58 org.gnome.evolution.plugin.autocontacts.gschema.xml \
59 org.gnome.evolution.plugin.email-custom-header.gschema.xml \
60 org.gnome.evolution.plugin.external-editor.gschema.xml \
61 org.gnome.evolution.plugin.face-picture.gschema.xml \
62 org.gnome.evolution.plugin.itip.gschema.xml \
63 org.gnome.evolution.plugin.mail-notification.gschema.xml \
64 org.gnome.evolution.plugin.prefer-plain.gschema.xml \
65 org.gnome.evolution.plugin.publish-calendar.gschema.xml \
66 org.gnome.evolution.plugin.templates.gschema.xml
69 PLIST_SUB= VERSION=${EVO_VERSION} \
72 OPTIONS_DEFINE= LDAP WEATHER CANBERRA PST
73 OPTIONS_DEFAULT=LDAP WEATHER CANBERRA BOGOFILTER
75 OPTIONS_GROUP_SPAM=SPAMASSASSIN BOGOFILTER
79 CANBERRA_DESC= Canberra theme audio plugin
80 WEATHER_DESC= Weather calendar backend
81 SPAM_DESC= Spam filter support
82 SPAMASSASSIN_DESC= SpamAssassin spam filtering
83 BOGOFILTER_DESC= Bogofilter spam filtering
84 PST_DESC= Outlook .pst importer
85 MAPS_DESC= Contact maps
87 LDAP_CONFIGURE_WITH= openldap
88 LDAP_USE= OPENLDAP=yes
90 WEATHER_LIB_DEPENDS= libgweather-3.so:net/libgweather
91 WEATHER_CONFIGURE_ENABLE= weather
93 SPAMASSASSIN_CONFIGURE_WITH= spamassassin=${LOCALBASE}/bin/spamassassin \
94 sa-learn=${LOCALBASE}/bin/sa-learn
95 SPAMASSASSIN_BUILD_DEPENDS= spamassassin:mail/spamassassin
96 SPAMASSASSIN_RUN_DEPENDS= spamassassin:mail/spamassassin
98 BOGOFILTER_CONFIGURE_WITH= bogofilter=${LOCALBASE}/bin/bogofilter
99 BOGOFILTER_BUILD_DEPENDS= bogofilter:mail/bogofilter
100 BOGOFILTER_RUN_DEPENDS= bogofilter:mail/bogofilter
102 CANBERRA_LIB_DEPENDS= libcanberra-gtk3.so:audio/libcanberra-gtk3
103 CANBERRA_CONFIGURE_ENABLE= canberra
105 PST_CONFIGURE_ENABLE= pst-import
106 PST_BUILD_DEPENDS= libpst>=0.6.58_1:mail/libpst
107 PST_RUN_DEPENDS= libpst>=0.6.58_1:mail/libpst
109 CONFIGURE_ARGS+=--disable-contact-maps
110 #MAPS_CONFIGURE_ENABLE= contact-maps
111 #MAPS_LIB_DEPENDS= libchamplain-0.12.so:graphics/libchamplain \
112 # libclutter-gtk-1.0.so:graphics/clutter-gtk3
113 #MAPS_BUILD_DEPENDS= geoclue>=0:net/geoclue
115 .include <bsd.port.options.mk>
118 @${REINPLACE_CMD} -e '/^plugins_standard_always/s/audio-inline//' \
119 -e 's|-lkrb5 -lcrypto -lasn1 -lcom_err -lroken -lgssapi|${KRB5_LIB}|g' \
120 -e 's|-Wl,--no-undefined||g' \
121 -e 's|-Wmissing-include-dirs||g' \
123 @${REINPLACE_CMD} -e 's|/usr|${LOCALBASE}|g' \
124 ${WRKSRC}/modules/spamassassin/evolution-spamassassin.c \
125 ${WRKSRC}/modules/bogofilter/evolution-bogofilter.c
126 # @${SH} ${FILESDIR}/fix-plugins.sh ${WRKSRC}
128 .include <bsd.port.mk>