summaryrefslogtreecommitdiffstats
path: root/mail/lbdb/Makefile
blob: c174beb863d9b5f4c0f59a746eac09488a76173a (plain)
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
# Created by: mwest@uct.ac.za
# $FreeBSD$

PORTNAME=	lbdb
PORTVERSION=	0.39
PORTREVISION=	1
CATEGORIES=	mail
MASTER_SITES=	http://www.spinnaker.de/debian/
DISTNAME=	${PORTNAME}_${PORTVERSION}

MAINTAINER=	alexey@renatasystems.org
COMMENT=	Tools for use with mutt external mail address query feature

RUN_DEPENDS=	gsed:textproc/gsed

OPTIONS_DEFINE=	ABOOK EVOLUTION GPG LDAP
ABOOK_DESC=	abook address book support
EVOLUTION_DESC=	Ximan Evolution support
GPG_DESC=	GNU Privacy Guard support

WRKSRC=		${WRKDIR}/lbdb-${PORTVERSION}
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-lbdb-dotlock \
		--libdir=${PREFIX}/libexec/lbdb
MAKE_ARGS=	install_prefix=${STAGEDIR}
USES=		gmake perl5

.include <bsd.port.options.mk>

.if exists (/usr/bin/getent)
WITH_GETENT=	yes
.endif

.if ${PORT_OPTIONS:MGPG}
BUILD_DEPENDS+=	gpg:security/gnupg
RUN_DEPENDS+=	gpg:security/gnupg
PLIST_SUB+=	GPG=""
.else
PLIST_SUB+=	GPG="@comment "
.endif

.if ${PORT_OPTIONS:MABOOK}
BUILD_DEPENDS+=	abook:mail/abook
RUN_DEPENDS+=	abook:mail/abook
PLIST_SUB+=	ABOOK=""
.else
PLIST_SUB+=	ABOOK="@comment "
.endif

.if ${PORT_OPTIONS:MEVOLUTION}
BUILD_DEPENDS+=	evolution:mail/evolution
RUN_DEPENDS+=	evolution:mail/evolution
PLIST_SUB+=	EVOLUTION=""
.else
PLIST_SUB+=	EVOLUTION="@comment "
.endif

.if ${PORT_OPTIONS:MGETENT}
PLIST_SUB+=	GETENT=""
.else
PLIST_SUB+=	GETENT="@comment "
.endif

.if ${PORT_OPTIONS:MLDAP}
RUN_DEPENDS+=	p5-perl-ldap>=0:net/p5-perl-ldap
.endif

post-patch:
	${REINPLACE_CMD} -e 's/sed/gsed/' ${WRKSRC}/m_muttalias.sh.in

.include <bsd.port.mk>
OpenPOWER on IntegriCloud