Update mail/postfix-current to version 3.2.20161008,4
[dports.git] / mail / evolution / Makefile
1 # Created by: Ade Lovett <ade@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       evolution
5 PORTVERSION=    3.18.5.1
6 PORTREVISION=   2
7 CATEGORIES=     mail gnome
8 MASTER_SITES=   GNOME
9 DIST_SUBDIR=    gnome3
10
11 MAINTAINER=     gnome@FreeBSD.org
12 COMMENT=        Integrated mail, calendar and address book distributed suite
13
14 LICENSE=        GFDL GPLv2+ LGPL21+ MPL OPENLDAP
15 LICENSE_COMB=   multi
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
19
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
32
33 PORTSCOUT=      limitw:1,even
34
35 USES=           desktop-file-utils bison gettext gmake gnome libtool \
36                 pathfix perl5 pkgconfig tar:xz
37 USE_GNOME=      evolutiondataserver3 gnomedesktop3 intltool
38 GNU_CONFIGURE=  yes
39 USE_GSTREAMER1= yes
40 INSTALLS_ICONS= yes
41 USE_LDCONFIG=   yes
42 CONFIGURE_ARGS= --enable-nss=yes \
43                 --disable-autoar \
44                 --with-sub-version=" FreeBSD GNOME Team Port"
45 CPPFLAGS+=      -I${LOCALBASE}/include
46 LDFLAGS+=       -L${LOCALBASE}/lib
47 INSTALL_TARGET= install-strip
48
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
67
68 EVO_VERSION=    3.18
69 PLIST_SUB=      VERSION=${EVO_VERSION} \
70                 PORTVERSION=2.12
71
72 OPTIONS_DEFINE= LDAP WEATHER CANBERRA PST
73 OPTIONS_DEFAULT=LDAP WEATHER CANBERRA BOGOFILTER
74 OPTIONS_GROUP=  SPAM
75 OPTIONS_GROUP_SPAM=SPAMASSASSIN BOGOFILTER
76
77 OPTIONS_SUB=    yes
78
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
86
87 LDAP_CONFIGURE_WITH=    openldap
88 LDAP_USE=       OPENLDAP=yes
89
90 WEATHER_LIB_DEPENDS=    libgweather-3.so:net/libgweather
91 WEATHER_CONFIGURE_ENABLE=       weather
92
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
97
98 BOGOFILTER_CONFIGURE_WITH=      bogofilter=${LOCALBASE}/bin/bogofilter
99 BOGOFILTER_BUILD_DEPENDS=       bogofilter:mail/bogofilter
100 BOGOFILTER_RUN_DEPENDS= bogofilter:mail/bogofilter
101
102 CANBERRA_LIB_DEPENDS=   libcanberra-gtk3.so:audio/libcanberra-gtk3
103 CANBERRA_CONFIGURE_ENABLE=      canberra
104
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
108
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
114
115 .include <bsd.port.options.mk>
116
117 post-patch:
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' \
122                 ${WRKSRC}/configure
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}
127
128 .include <bsd.port.mk>