diff --git a/mail/pine/Makefile b/mail/pine/Makefile index 36ee8c164da..f5cf9bf4aaa 100644 --- a/mail/pine/Makefile +++ b/mail/pine/Makefile @@ -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