1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/mail/lbdb/Makefile
Dmitry Marakasov 68acfff416 - Add OPTIONS
- Port cleanups and fixes
- Pass maintainership to submitter

PR:		137485
Submitted by:	Alexey V.Degtyarev <alexey@renatasystems.org>
2009-08-07 17:43:35 +00:00

74 lines
1.7 KiB
Makefile

# New ports collection makefile for: lbdb
# Date created: 2 February 2000
# Whom: mwest@uct.ac.za
#
# $FreeBSD$
#
PORTNAME= lbdb
PORTVERSION= 0.36
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= ABOOK "Enable abook address book support" off \
EVOLUTION "Enable Ximan Evolution support" off \
GPG "Enable GNU Privacy Guard support" off
WRKSRC= ${WRKDIR}/lbdb-${PORTVERSION}
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --prefix=${PREFIX} --sysconfdir=${PREFIX}/etc \
--libdir=${PREFIX}/libexec --enable-lbdb-dotlock
USE_GMAKE= yes
USE_PERL5= yes
.include <bsd.port.pre.mk>
.if exists (/usr/bin/getent)
WITH_GETENT= yes
.endif
.if defined(WITH_GPG)
BUILD_DEPENDS+= gpg:${PORTSDIR}/security/gnupg
RUN_DEPENDS+= gpg:${PORTSDIR}/security/gnupg
PLIST_SUB+= GPG=""
.else
PLIST_SUB+= GPG="@comment "
.endif
.if defined(WITH_ABOOK)
BUILD_DEPENDS+= abook:${PORTSDIR}/mail/abook
RUN_DEPENDS+= abook:${PORTSDIR}/mail/abook
PLIST_SUB+= ABOOK=""
.else
PLIST_SUB+= ABOOK="@comment "
.endif
.if defined(WITH_EVOLUTION)
BUILD_DEPENDS+= evolution:${PORTSDIR}/mail/evolution
RUN_DEPENDS+= evolution:${PORTSDIR}/mail/evolution
PLIST_SUB+= EVOLUTION=""
.else
PLIST_SUB+= EVOLUTION="@comment "
.endif
.if defined(WITH_GETENT)
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.post.mk>