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

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

MAINTAINER= alexey@renatasystems.org
COMMENT=    Set of tools for use with mutt's external mail address query feature

RUN_DEPENDS=    gsed:${PORTSDIR}/textproc/gsed \
        p5-perl-ldap>=0:${PORTSDIR}/net/p5-perl-ldap

OPTIONS_DEFINE= ABOOK EVOLUTION GPG
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+=    --prefix=${PREFIX} --sysconfdir=${PREFIX}/etc \
            --libdir=${PREFIX}/libexec --enable-lbdb-dotlock
USES=       gmake perl5

NO_STAGE=   yes
.include <bsd.port.options.mk>

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

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

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

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

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

MAN1=       nodelist2lbdb.1 lbdbq.1 lbdb-fetchaddr.1 lbdb_dotlock.1 \
        mutt_ldap_query.1

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

.include <bsd.port.mk>