diff options
author | hubertf <hubertf@pkgsrc.org> | 2001-03-13 04:41:19 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2001-03-13 04:41:19 +0000 |
commit | 30333e85efc0413687004760a685c308b755dd9d (patch) | |
tree | 04b37fdd59c098c6c1b4a9009e3bedddf7dd5d98 | |
parent | fe3dfbdc36512d429b45e5352e9f505f3225e158 (diff) | |
download | pkgsrc-30333e85efc0413687004760a685c308b755dd9d.tar.gz |
Compile in LDAP-support for addressbook if PINE_USE_LDAP is set in
/etc/mk.conf.
Patch submitted by John Darrow <John.P.Darrow@wheaton.edu> in PR 9760.
-rw-r--r-- | mail/pine/Makefile | 15 | ||||
-rw-r--r-- | mk/mk.conf.example | 7 |
2 files changed, 18 insertions, 4 deletions
diff --git a/mail/pine/Makefile b/mail/pine/Makefile index 4402ff86e38..ba262956380 100644 --- a/mail/pine/Makefile +++ b/mail/pine/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.43 2001/02/17 18:24:59 wiz Exp $ +# $NetBSD: Makefile,v 1.44 2001/03/13 04:41:19 hubertf Exp $ # FreeBSD Id: Makefile,v 1.21 1997/03/26 02:12:07 ache Exp # @@ -12,15 +12,24 @@ MAINTAINER= hubertf@netbsd.org HOMEPAGE= http://www.washington.edu/pine/ COMMENT= Program for Internet E-mail and News +BUILD_DEFS+= PINE_USE_LDAP + # This pkg doesn't build pico or libpico; the pico pkg does that part. DEPENDS+= pico-4.0:../../editors/pico DEPENDS+= imap-uw>=2000:../../mail/imap-uw +.include "../../mk/bsd.prefs.mk" + +.if defined(PINE_USE_LDAP) && ${PINE_USE_LDAP} == YES +DEPENDS+= openldap-*:../../databases/openldap +LDAPCFLAGS= LDAPCFLAGS="-DENABLE_LDAP -I${PREFIX}/include" +LDAPLIBS= LDAPLIBS="-lldap -llber" +.endif + USE_LIBTOOL= yes USE_SSL= yes CONFIGURE_ENV+= LT=${LIBTOOL} MAKE_ENV+= LT=${LIBTOOL} -#MAKE_ENV+= STRIPFLAG= # debug pre-patch: # Make sure the imap lib that comes with pine isn't @@ -36,7 +45,7 @@ do-configure: @${LN} -sf ${LOCALBASE}/include/pico ${WRKSRC}/pico do-build: - cd ${WRKSRC} && ./build ${BUILDNAME} PREFIX=${PREFIX} + cd ${WRKSRC} && ./build ${BUILDNAME} ${LDAPCFLAGS} ${LDAPLIBS} PREFIX=${PREFIX} do-install: ${LIBTOOL} ${INSTALL_PROGRAM} ${WRKSRC}/pine/pine ${PREFIX}/bin/ diff --git a/mk/mk.conf.example b/mk/mk.conf.example index 1ebc73dfa29..3b0c38ab136 100644 --- a/mk/mk.conf.example +++ b/mk/mk.conf.example @@ -1,4 +1,4 @@ -# $NetBSD: mk.conf.example,v 1.177 2001/03/06 12:07:24 agc Exp $ +# $NetBSD: mk.conf.example,v 1.178 2001/03/13 04:41:20 hubertf Exp $ # # Sample /etc/mk.conf file, which can be used to set specific values @@ -640,6 +640,11 @@ PAPERSIZE= A4 # Possible: jdk, kaffe (kaffe currently has some problems) # Default: jdk on NetBSD/i386, kaffe elsewhere +#PINE_USE_LDAP= +# Compile code into pine to use a LDAP server for an address book. +# Possible: undefined, YES +# Defailt: undefined (support not compiled in) + #POPTOP_USE_MPPE= # Used in poptop package to specify the use of the mppe-ppp package # in preference to the standard ppp |