aboutsummaryrefslogtreecommitdiff
path: root/mail/sendmail812
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2004-08-13 19:38:58 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2004-08-13 19:38:58 +0000
commitb86cc0a18e935ae7c13d1e589547a4d205f4f710 (patch)
tree7dc072b9c377ad1c07686d17bb76f805e3c5bc5c /mail/sendmail812
parentaba1060f87912e3ab00ee65cdbdcd6ff23273404 (diff)
Notes
Diffstat (limited to 'mail/sendmail812')
-rw-r--r--mail/sendmail812/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/mail/sendmail812/Makefile b/mail/sendmail812/Makefile
index 3e7a5a013070..fd8e2206590e 100644
--- a/mail/sendmail812/Makefile
+++ b/mail/sendmail812/Makefile
@@ -39,7 +39,6 @@ MAN8= sendmail.8 mailstats.8 makemap.8 praliases.8 smrsh.8 \
SENDMAIL= ${PREFIX}/sbin/sendmail
BASEMAIL= /usr/libexec/sendmail/sendmail
PLIST_SUB+= PREFIX=${PREFIX:S=${PREFIX}/==}
-LDAP_PORT?= net/openldap21-client
PKGMESSAGE= ${WRKSRC}/pkg-message
# Options to define Features:
@@ -73,8 +72,13 @@ CONFLICTS+= sendmail+tls-8.* \
sendmail+sasl1-8.* \
sendmail+sasl2-8.*
CONFLICTS+= sendmail-sasl-8.* sendmail-sasl2-8.* sendmail-tls-8.*
-LIB_DEPENDS+= ldap.2:${PORTSDIR}/${LDAP_PORT}
-LIB_DEPENDS+= lber.2:${PORTSDIR}/${LDAP_PORT}
+.if defined(LDAP_PORT)
+OPENLDAP_LIB?= libldap.so.2
+BUILD_DEPENDS+= ${LOCALBASE}/lib/${OPENLDAP_LIB}:${PORTSDIR}/${LDAP_PORT}
+RUN_DEPENDS+= ${LOCALBASE}/lib/${OPENLDAP_LIB}:${PORTSDIR}/${LDAP_PORT}
+.else
+USE_OPENLDAP_VER?= 21
+.endif
.else
CONFLICTS+= sendmail*+ldap*-8.*
.endif