add ldap flavour

This commit is contained in:
jakob 2001-01-21 19:19:59 +00:00
parent 6cb9ca4279
commit 3ae50c4607

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.24 2001/01/18 18:51:36 brad Exp $
# $OpenBSD: Makefile,v 1.25 2001/01/21 19:19:59 jakob Exp $
VERSION= 4.32
DISTNAME= pine${VERSION}
@ -31,6 +31,15 @@ CATEGORIES= mail news editors
LIB_DEPENDS= c-client.2.1::mail/c-client
.endif
FLAVORS= ldap
FLAVOR?=
.if ${FLAVOR:L:Mldap}
LIB_DEPENDS+= ldap.2::databases/openldap
MAKE_FLAGS+= LDAPLIBS="-lldap -llber" \
LDAPCFLAGS="-DENABLE_LDAP -I${PREFIX}/include"
.endif
post-patch:
@sed -e s#!!PREFIX!!#${PREFIX}#g \
${WRKSRC}/doc/tech-notes.txt > ${WRKSRC}/doc/tech-notes.txt.new