summaryrefslogtreecommitdiffstats
path: root/mail/evolution/Makefile
blob: 66d9bd0b0ef226fc54b7a4dd4d64c439590c2a5a (plain) (blame)
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
# New ports collection makefile for:    evolution
# Date created:             28th June 2000
# Whom:                 Ade Lovett <ade@FreeBSD.org>
#
# $FreeBSD: ports/mail/evolution/Makefile,v 1.91 2003/09/25 03:11:21 marcus Exp $
#

PORTNAME=   evolution
PORTVERSION=    1.5.2
CATEGORIES= mail gnome
MASTER_SITES=   ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/1.5
DIST_SUBDIR=    gnome2

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

LIB_DEPENDS=    edataserver.2:${PORTSDIR}/databases/evolution-data-server \
        nss3.1:${PORTSDIR}/security/nss

RUN_DEPENDS=    ${X11BASE}/lib/gnome-spell/libgnome-spell-component-0.3.so:${PORTSDIR}/textproc/gnomespell
.if defined(WITH_PILOT)
LIB_DEPENDS+=   gpilotdconduit.2:${PORTSDIR}/palm/gnomepilot2
.endif
.if !defined(WITHOUT_SPAMASSASSIN)
RUN_DEPENDS+=   spamassassin:${PORTSDIR}/mail/p5-Mail-SpamAssassin
.endif

USE_BZIP2=  yes
USE_GMAKE=  yes
USE_BISON=  yes
USE_X_PREFIX=   yes
USE_GNOME=  gnomeprefix gnomehack gnometarget intlhack
USE_REINPLACE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-nss=yes \
        --with-nss-includes=${LOCALBASE}/include/nss/nss \
        --with-nss-libs=${LOCALBASE}/lib \
        --with-nspr-includes=${LOCALBASE}/include/nspr \
        --with-nspr-libs=${LOCALBASE}/lib \
        --enable-openssl=no \
        --with-sub-version="FreeBSD GNOME Team Port"

EVO_VERSION=    1.5

.if !defined(WITHOUT_LDAP)
USE_OPENLDAP=   yes
CONFIGURE_ARGS+=--with-openldap=${LOCALBASE}
.else
CONFIGURE_ARGS+=--with-openldap=no
.endif

.if defined(WITH_PILOT)
CONFIGURE_ARGS+=    --with-pisock=${LOCALBASE} \
            --enable-pilot-conduits=yes
PLIST_SUB=  PILOT:=""
.else
PLIST_SUB=  PILOT:="@comment "
.endif
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LIBS="${PTHREAD_LIBS}" \
        LDFLAGS="-L${LOCALBASE}/lib"

PLIST_SUB+= VERSION=${EVO_VERSION}

pre-everything::
    @${ECHO_MSG} ""
    @${ECHO_MSG} "evolution has the following configurable option(s):"
    @${ECHO_MSG} "  WITH_PILOT      Build Palm Pilot sync support"
    @${ECHO_MSG} "  WITHOUT_LDAP        Disable LDAP support"
    @${ECHO_MSG} "  WITHOUT_SPAMASSASSIN    Do not add a runtime dependency on SpamAssassin (Evo uses SpamAssassin for spam filtering)"
    @${ECHO_MSG} ""

.include <bsd.port.mk>