diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2011-03-07 17:05:11 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2011-03-07 17:05:11 +0800 |
commit | cc802bc96f27689b6accf94bd49fe5cd62f1541f (patch) | |
tree | c75cc581a0e312de874ac1a9db89618268fd15b8 /mail/evolution/Makefile | |
parent | bd33cc0f47a86a5bd3806c50a575c82c8b070991 (diff) | |
download | marcuscom-ports-cc802bc96f27689b6accf94bd49fe5cd62f1541f.tar marcuscom-ports-cc802bc96f27689b6accf94bd49fe5cd62f1541f.tar.gz marcuscom-ports-cc802bc96f27689b6accf94bd49fe5cd62f1541f.tar.bz2 marcuscom-ports-cc802bc96f27689b6accf94bd49fe5cd62f1541f.tar.lz marcuscom-ports-cc802bc96f27689b6accf94bd49fe5cd62f1541f.tar.xz marcuscom-ports-cc802bc96f27689b6accf94bd49fe5cd62f1541f.tar.zst marcuscom-ports-cc802bc96f27689b6accf94bd49fe5cd62f1541f.zip |
Fix build with newer gtk.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@15374 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'mail/evolution/Makefile')
-rw-r--r-- | mail/evolution/Makefile | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/mail/evolution/Makefile b/mail/evolution/Makefile new file mode 100644 index 000000000..e5271f892 --- /dev/null +++ b/mail/evolution/Makefile @@ -0,0 +1,119 @@ +# New ports collection makefile for: evolution +# Date created: 28th June 2000 +# Whom: Ade Lovett <ade@FreeBSD.org> +# +# $FreeBSD: ports/mail/evolution/Makefile,v 1.188 2011/02/25 01:31:48 delphij Exp $ +# $MCom: ports/mail/evolution/Makefile,v 1.232 2010/11/15 20:40:29 kwm Exp $ +# + +PORTNAME= evolution +PORTVERSION= 2.32.1 +PORTREVISION= 1 +CATEGORIES= mail gnome +MASTER_SITES= GNOME +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= An integrated mail, calendar and address book distributed suite + +LIB_DEPENDS= nss3.1:${PORTSDIR}/security/nss \ + unique-1.0.2:${PORTSDIR}/x11-toolkits/unique \ + gtkimageview.0:${PORTSDIR}/x11-toolkits/gtkimageview +RUN_DEPENDS= ${LOCALBASE}/lib/gnome-spell/libgnome-spell-component-0.3.so:${PORTSDIR}/textproc/gnome-spell + +USE_BZIP2= yes +USE_GMAKE= yes +USE_BISON= build +USE_GETTEXT= yes +USE_GNOME= gnomeprefix gnomehack intlhack evolutiondataserver gtkhtml3 \ + desktopfileutils gnomedocutils ltasneededhack gnomedesktop +GNOME_DESKTOP_VERSION=2 +USE_AUTOTOOLS= libtool +USE_GSTREAMER= yes +INSTALLS_OMF= yes +INSTALLS_ICONS= yes +USE_LDCONFIG= ${PREFIX}/lib/evolution/${EVO_VERSION} +CONFIGURE_ARGS= --enable-nss=yes \ + --enable-mono=no \ + --disable-nm \ + --with-sub-version=" FreeBSD GNOME Team Port" +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +GCONF_SCHEMAS= apps_evolution_addressbook.schemas \ + apps-evolution-attachment-reminder.schemas \ + apps_evolution_calendar.schemas \ + apps_evolution_email_custom_header.schemas \ + apps-evolution-mail-notification.schemas \ + apps-evolution-mail-prompts-checkdefault.schemas \ + apps_evolution_shell.schemas \ + apps-evolution-template-placeholders.schemas \ + bogo-junk-plugin.schemas \ + evolution-mail.schemas + +EVO_VERSION= 2.32 +PLIST_SUB= VERSION=${EVO_VERSION} \ + PORTVERSION=2.12 + +OPTIONS= LDAP "Enable LDAP support" on \ + CANBERRA "Enable canberra plugin" on \ + SPAMASSASSIN "Enable SpamAssassin spam filtering" off + +.include <bsd.port.pre.mk> + +.if !defined(WITHOUT_LDAP) +USE_OPENLDAP= yes +CONFIGURE_ARGS+=--with-openldap=${LOCALBASE} +.else +CONFIGURE_ARGS+=--with-openldap=no +.endif + +.if defined(WITH_SPAMASSASSIN) +RUN_DEPENDS+= spamassassin:${PORTSDIR}/mail/p5-Mail-SpamAssassin +.endif + +.if defined(HEIMDAL_HOME) || defined(WITH_HEIMDAL) || defined(NO_KERBEROS) +HEIMDAL_HOME?= ${LOCALBASE} +LIB_DEPENDS+= krb5:${PORTSDIR}/security/heimdal +CONFIGURE_ARGS+= --with-krb5=${HEIMDAL_HOME} \ + --with-krb5-includes=${HEIMDAL_HOME}/include +KRB5_LIB= `${HEIMDAL_HOME}/bin/krb5-config gssapi --libs` +.elif !defined(NO_KERBEROS) +CONFIGURE_ARGS+= --with-krb5=/usr +KRB5_LIB= `/usr/bin/krb5-config gssapi --libs` +.endif + +.if defined(WITH_CANBERRA) +LIB_DEPENDS+= canberra-gtk.0:${PORTSDIR}/audio/libcanberra +CONFIGURE_ARGS+=--enable-canberra=yes +PLIST_SUB+= CANBERRA="" +.else +CONFIGURE_ARGS+=--enable-canberra=no +PLIST_SUB+= CANBERRA="@comment " +.endif + +# needs newer libpst version 0.6.41 or higher +#.if defined (WITH_PST) +#CONFIGURE_ARGS+= --enable-pst-import +#BUILD_DEPENDS+= lspst:${PORTSDIR}/mail/libpst +#RUN_DEPENDS+= lspst:${PORTSDIR}/mail/libpst +#PLIST_SUB+= PST="" +#.else +CONFIGURE_ARGS+= --disable-pst-import +PLIST_SUB+= PST="@comment " +#.endif + +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|-DGTK_DISABLE_DEPRECATED||g' \ + -e 's|-Wmissing-include-dirs||g' \ + ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|/usr|${LOCALBASE}|g' \ + ${WRKSRC}/plugins/bogo-junk-plugin/bf-junk-filter.c + @${REINPLACE_CMD} -e 's|/usr/sbin|${LOCALBASE}/bin|g' \ + ${WRKSRC}/plugins/sa-junk-plugin/em-junk-filter.c + @${SH} ${FILESDIR}/fix-plugins.sh ${WRKSRC} + +.include <bsd.port.post.mk> |