diff options
Diffstat (limited to 'www/apache22/Makefile')
-rw-r--r-- | www/apache22/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/www/apache22/Makefile b/www/apache22/Makefile index 73a3a7177247..13d780f63045 100644 --- a/www/apache22/Makefile +++ b/www/apache22/Makefile @@ -74,6 +74,17 @@ PLIST_SUB+= SUEXEC="" PLIST_SUB+= SUEXEC="@comment " .endif +.if defined(WITH_LDAP) +LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap21 +CONFIGURE_ARGS+= --with-ldap \ + --enable-ldap --enable-auth-ldap \ + --with-ldap-lib="${LOCALBASE}/lib" \ + --with-ldap-include="${LOCALBASE}/include" +PLIST_SUB+= LDAP="" +.else +PLIST_SUB+= LDAP="@comment " +.endif + .if ${WITH_MPM} != "prefork" PKGNAMESUFFIX= -${WITH_MPM} WITH_THREADS= yes |