summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorAlexander Langer <alex@FreeBSD.org>2000-06-27 16:25:32 +0000
committerAlexander Langer <alex@FreeBSD.org>2000-06-27 16:25:32 +0000
commit67c99c8431ef41f28996af0f711a36315fcf71ae (patch)
tree3e7700d05c91f8be102ed41eaec15355187a30df /mail
parentRemove VERSION variable (most likely it is a relict from pre-portversion (diff)
Add a WITH_LDAP knob. Defaults to off, of course.
PR: 18228 Submitted by: Mikko Tyolajarvi <mikko@dynas.se>
Notes
Notes: svn path=/head/; revision=29918
Diffstat (limited to 'mail')
-rw-r--r--mail/pine4/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/mail/pine4/Makefile b/mail/pine4/Makefile
index b603e51ac322..3dfb296277ba 100644
--- a/mail/pine4/Makefile
+++ b/mail/pine4/Makefile
@@ -20,6 +20,15 @@ Y2K= http://www.washington.edu/pine/QandA/sysadmins.html#Millenium
MAN1= pine.1 pico.1 pilot.1
+# Define "WITH_LDAP" to include ldap support.
+# If the ldap port is installed somewhere other than /usr/local, define
+# LDAP_PREFIX as well.
+#
+.if defined(WITH_LDAP)
+LDAP_PREFIX?= ${LOCALBASE}
+BUILD_DEPENDS+= ${LDAP_PREFIX}/lib/libldap.a:${PORTSDIR}/net/ldap
+.endif
+
post-patch:
for i in ${WRKSRC}/doc/pine.1 \
${WRKSRC}/pine/init.c \
@@ -38,6 +47,11 @@ post-patch:
$$i.sed >$$i ; \
${RM} $$i.sed ; \
done
+.if defined(WITH_LDAP)
+ -mkdir ${WRKSRC}/ldap
+ ln -sf ${LDAP_PREFIX}/include ${WRKSRC}/ldap/include
+ ln -sf ${LDAP_PREFIX}/lib ${WRKSRC}/ldap/libraries
+.endif
do-build:
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ./build bsf)