Respect USE_OPENLDAP(WANT_OPENLDAP_VER).

Pointed out by:	lofi
This commit is contained in:
Jun Kuriyama 2003-10-14 08:22:42 +00:00
parent b460a6fc86
commit 4dbd49b80f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=91149
2 changed files with 8 additions and 4 deletions

View File

@ -35,8 +35,10 @@ MAN7= gnupg.7
.if defined(WITH_LIBICONV) || exists(${PREFIX}/lib/libiconv.so)
LIB_DEPENDS+= iconv.3:${PORTSDIR}/converters/libiconv
.endif
.if defined(WITH_LDAP) || exists(${PREFIX}/lib/libldap.so.2)
LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap20-client
.if defined(USE_OPENLDAP) || exists(${PREFIX}/lib/libldap.so.2)
WITH_LDAP= yes
.endif
.if defined(WITH_LDAP)
PLIST_SUB+= WITH_LDAP=""
.else
PLIST_SUB+= WITH_LDAP="@comment "

View File

@ -35,8 +35,10 @@ MAN7= gnupg.7
.if defined(WITH_LIBICONV) || exists(${PREFIX}/lib/libiconv.so)
LIB_DEPENDS+= iconv.3:${PORTSDIR}/converters/libiconv
.endif
.if defined(WITH_LDAP) || exists(${PREFIX}/lib/libldap.so.2)
LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap20-client
.if defined(USE_OPENLDAP) || exists(${PREFIX}/lib/libldap.so.2)
WITH_LDAP= yes
.endif
.if defined(WITH_LDAP)
PLIST_SUB+= WITH_LDAP=""
.else
PLIST_SUB+= WITH_LDAP="@comment "