summaryrefslogtreecommitdiff
path: root/mail/pine/Makefile
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2001-03-13 04:41:19 +0000
committerhubertf <hubertf@pkgsrc.org>2001-03-13 04:41:19 +0000
commit30333e85efc0413687004760a685c308b755dd9d (patch)
tree04b37fdd59c098c6c1b4a9009e3bedddf7dd5d98 /mail/pine/Makefile
parentfe3dfbdc36512d429b45e5352e9f505f3225e158 (diff)
downloadpkgsrc-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.
Diffstat (limited to 'mail/pine/Makefile')
-rw-r--r--mail/pine/Makefile15
1 files changed, 12 insertions, 3 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/