From 67c99c8431ef41f28996af0f711a36315fcf71ae Mon Sep 17 00:00:00 2001 From: Alexander Langer Date: Tue, 27 Jun 2000 16:25:32 +0000 Subject: Add a WITH_LDAP knob. Defaults to off, of course. PR: 18228 Submitted by: Mikko Tyolajarvi --- mail/pine4/Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'mail/pine4') 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) -- cgit v1.2.3