summaryrefslogtreecommitdiffstats
path: root/mail/evolution-exchange/Makefile
blob: b2c8e9268f0a78f70005cb1e90a160fb8c4a0a9a (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
# 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.85 2007/04/28 07:47:13 marcus Exp $
#

PORTNAME=   evolution-exchange
PORTVERSION=    2.11.1
CATEGORIES= mail gnome
MASTER_SITES=   ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}${PKGNAMESUFFIX}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
DIST_SUBDIR=    gnome2

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

BUILD_DEPENDS=  evolution-${EVO_VERSION}:${PORTSDIR}/mail/evolution
RUN_DEPENDS=    evolution-${EVO_VERSION}:${PORTSDIR}/mail/evolution

USE_BZIP2=  yes
USE_GETTEXT=    yes
USE_XLIB=   yes
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
USE_BDB=    41
USE_OPENLDAP=   yes
USE_GNOME=  gnomeprefix intlhack gnomehack gnometarget
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include -I${BDB_INCLUDE_DIR}" \
        LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --with-openldap=${LOCALBASE} \
        --with-static-ldap=no \
        --disable-compile-warnings \
        --with-libdb=${LOCALBASE}

EVO_VERSION=    2.12
VERSION=    2.12
PLIST_SUB=  VERSION=${VERSION} EVO_VERSION=${EVO_VERSION} \
        EDS_VERSION="1.2" OLDDOCSDIR="share/doc/ximian-connector"

GCONF_SCHEMAS=  apps_exchange_addressbook-${VERSION}.schemas

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 500000 && !defined(NO_KERBEROS) && \
    exists(/usr/lib/libkrb5.so)
CONFIGURE_ARGS+=    --with-krb5=/usr
.else
LIB_DEPENDS+=       krb5:${PORTSDIR}/security/heimdal
.if defined(HEIMDAL_HOME)
CONFIGURE_ARGS+=    --with-krb5=${HEIMDAL_HOME} --with-krb5-includes=${HEIMDAL_HOME}/include
.else
CONFIGURE_ARGS+=    --with-krb5=${LOCALBASE}
.endif
.endif

.if ${ARCH} == "amd64"
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -fPIC"
.endif

.if exists(${LOCALBASE}/include/mapi.h)
IGNORE= does not build with ${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 port
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|-ldb|-l${BDB_LIB_NAME}|g' \
        ${WRKSRC}/configure

.include <bsd.port.post.mk>
over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1 * - Remove MAKE_JOBS_SAFE variableak2013-08-151-1/+0 * Update the KDE Software Compilation to 4.10.5.rakuco2013-07-051-2/+2 * Update to KDE SC 4.10.4, proudly presented by the KDE on FreeBSD team.rakuco2013-07-031-2/+2 * KDE/FreeBSD team presents KDE SC 4.10.3 ports!makc2013-05-191-2/+2 * KDE/FreeBSD team presents KDE SC 4.10.1 ports!makc2013-03-272-5/+5 * Mk/bsd.kde4.mk:makc2013-03-221-1/+1 * KDE/FreeBSD team presents KDE SC 4.9.5 ports!makc2013-02-042-7/+2 * KDE/FreeBSD team presents KDE SC 4.8.4, probably the last release in 4.8.x se...makc2012-06-152-3/+2 * - Convert USE_QT_VER=4 and QT_COMPONETS to USE_QT4miwi2012-06-061-2/+1 * - update png to 1.5.10dinoex2012-06-011-0/+1 * KDE/FreeBSD team presents long awaited KDE SC 4.8.3!makc2012-05-252-4/+3 * - Bump PORTREVISION to chase the update of multimedia/libvpxashish2012-02-161-0/+1 * The KDE/FreeBSD team is pleased to announce KDE SC 4.7.4, whichavilla2012-01-251-2/+2 * The KDE on FreeBSD team is pleased to update the KDE4 ports to 4.7.3.rakuco2011-11-141-2/+2