aboutsummaryrefslogtreecommitdiffstats
path: root/mail/evolution-exchange/Makefile
blob: c801dcf2fea0532bee075719d4afb780e4683f8f (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-exchange
# Date created:             28 April, 2005
# Whom:                 Adam Weinberger, based off kiesel's ximian-exchange port
#
# $FreeBSD$
#   $MCom: ports/mail/evolution-exchange/Makefile,v 1.172 2012/09/20 23:06:27 kwm Exp $
#

PORTNAME=   evolution-exchange
PORTVERSION=    2.32.1
PORTREVISION=   3
CATEGORIES= mail gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome2

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Evolution plugin to connect to Microsoft Exchange servers

EVO_PC_FILE=    ${LOCALBASE}/libdata/pkgconfig/evolution-mail.pc
BUILD_DEPENDS=  ${EVO_PC_FILE}:${PORTSDIR}/mail/evolution
RUN_DEPENDS=    ${EVO_PC_FILE}:${PORTSDIR}/mail/evolution

CONFLICTS=  evolution-exchange-3.[0-9]*

USE_BZIP2=  yes
USE_GETTEXT=    yes
USE_AUTOTOOLS=  libtool
USE_GMAKE=  yes
USE_BDB=    41
USE_OPENLDAP=   yes
USE_GNOME=  gnomeprefix intlhack gnomehack ltasneededhack
CPPFLAGS+=  -I${LOCALBASE}/include -I${BDB_INCLUDE_DIR}
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ARGS= --with-openldap=${LOCALBASE} \
        --with-static-ldap=no \
        --with-libdb=${LOCALBASE}

EVO_VERSION=    2.32
VERSION=    2.32
PLIST_SUB=  VERSION=${VERSION} EVO_VERSION=${EVO_VERSION} \
        EDS_VERSION="1.2"

GCONF_SCHEMAS=  apps_exchange_addressbook-${VERSION}.schemas

.include <bsd.port.pre.mk>

.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 ${ARCH} == "amd64"
CFLAGS+=    -fPIC
.endif

.if exists(${LOCALBASE}/include/mapi.h)
IGNORE= build fails when ${LOCALBASE}/include/mapi.h exists in system, run pkg_info -W ${LOCALBASE}/include/mapi.h to find the offending port and uninstall it, then install ${PORTNAME} and reinstall the port that installed mapi.h
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|-ldb|-l${BDB_LIB_NAME}|g' \
        -e 's|-lkrb5 -lcrypto -lasn1 -lcom_err -lroken -lgssapi|${KRB5_LIB}|g' \
        -e 's|-DGTK_DISABLE_DEPRECATED||g' \
        -e 's|-DG_DISABLE_DEPRECATED||g' \
        -e 's|-Wmissing-include-dirs||g' \
        ${WRKSRC}/configure

.include <bsd.port.post.mk>
ve fun, ya'll.ade2010-05-316-6/+6 * Presenting GNOME 2.30.1 for FreeBSD. The offical release notes for thiskwm2010-05-111-2/+2 * - fix option WITH_PNGdinoex2010-03-301-0/+6 * - update to 1.4.1dinoex2010-03-2812-11/+12 * - Chase x11-toolkits/fltk updategahr2010-03-241-1/+1 * Plugin for JPilot (jpilot.org) to download pictures, photos and videos fromamdmi32010-03-194-0/+50 * - Add backup mirror (looks like project site is down)miwi2010-03-101-1/+1 * - Update to 0.12.5miwi2010-03-102-4/+4 * - update to jpeg-8dinoex2010-02-0510-7/+10 * - Convert to DOCSDIRmiwi2010-02-032-4/+4 * - Remove unneeded dependencies which is in perl-5.8.9 distkuriyama2010-01-261-2/+1 * - Fix sorting and minor cleanups in category Makefilesamdmi32010-01-201-1/+1 * - remove broken/expired ports@ portspgollucci2010-01-1818-919/+0 * - Convert NOMANCOMPRESS to NO_MANCOMPRESS to sync with srcmiwi2009-12-291-1/+1 * For ports maintained by ports@FreeBSD.org, remove names and/ordougb2009-12-215-9/+1 * This port has been broken for 3+ months, thuspav2009-12-081-0/+2 * Presenting GNOME 2.28.1 for FreeBSD. The official release notes for thismarcus2009-11-293-4/+7 * - Fix build on 6.xavl2009-10-171-2/+2 * - Remove the patch which is required for upcoming GNOME 2.28 onlyavl2009-10-121-76/+0 * - Update to 0.14avl2009-10-122-6/+6 * - Update to 0.3avl2009-10-123-6/+93 * - Update to 0.14avl2009-10-122-5/+6 * - Forgot to include bsd.port.pre.mk and bsd.port.post.mk.avl2009-10-121-1/+3 * - Fix .if conditionavl2009-10-121-1/+1 * - Update to 0.14avl2009-10-124-13/+41 * - Update to 0.14avl2009-10-122-4/+4 * - Update to 0.14avl2009-10-127-34/+40 * - Update to 0.14avl2009-10-122-4/+4 * - Fix build with custom PREFIXavl2009-10-121-1/+1 * - Fix build with custom PREFIXavl2009-10-121-1/+1 * - Update to 0.12.4amdmi32009-09-094-15/+20 * - Update to 0.44.1fluffy2009-09-032-6/+6 * - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-2214-24/+14 * Mark BROKEN: does not build.erwin2009-08-031-0/+1 * -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.mezz2009-08-034-4/+4 * - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-319-2/+9 * - Update boost to 1.39pav2009-07-281-1/+1 * - Disable optimizations, they cause segfaults on runtimepav2009-07-281-2/+2 * - Mark BROKEN on amd64/8pav2009-07-261-0/+1 * - Update to 1.6.2amdmi32009-07-102-4/+4 * - Unbreak on -current.wxs2009-07-091-6/+27 * Change MAINTAINER on my ports to my FreeBSD email addressavl2009-05-295-5/+5 * Mark BROKEN on 8.x: does not build.erwin2009-05-27