diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/pine4/Makefile | 14 |
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) |