aboutsummaryrefslogtreecommitdiffstats
path: root/mail/evolution-mapi/Makefile
blob: d594d0dd37b5d2510e2f03012d811ea210249985 (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
# New ports collection makefile for:    evolution-mapi
# Date created:             24 Mar, 2009
# Whom:                 Koop Mast <kwm@FreeBSD.org>
#
# $FreeBSD$
#   $MCom: ports-stable/mail/evolution-mapi/Makefile,v 1.1 2010/06/23 09:55:28 kwm Exp $
#

PORTNAME=   evolution-mapi
PORTVERSION=    0.30.2.1
CATEGORIES= mail gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome2

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

BUILD_DEPENDS=  ${PKGFILES}:${PORTSDIR}/mail/evolution
LIB_DEPENDS=    mapi.0:${PORTSDIR}/mail/libmapi
RUN_DEPENDS=    ${PKGFILES}:${PORTSDIR}/mail/evolution

PKGFILES=   ${LOCALBASE}/libdata/pkgconfig/evolution-plugin.pc

USE_BZIP2=  yes
USE_GETTEXT=    yes
USE_GMAKE=  yes
USE_GNOME=  evolutiondataserver
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"

EVO_VERSION=    2.30
EDS_VERSION=    1.2
PLIST_SUB=  EVO_VERSION=${EVO_VERSION} EDS_VERSION=${EDS_VERSION}

.include <bsd.port.pre.mk>

post-patch:
    @${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|g' \
        ${WRKSRC}/src/libexchangemapi/Makefile.in
    @${REINPLACE_CMD} -e 's|-Wmissing-include-dirs||g' \
            ${WRKSRC}/configure

.include <bsd.port.post.mk>