update Wed Oct 21 00:37:00 PDT 2009
[pkgsrc.git] / databases / php-ldap / options.mk
1 # $NetBSD: options.mk,v 1.2 2009/07/22 15:59:50 manu Exp $
2
3 PKG_OPTIONS_VAR=        PKG_OPTIONS.php-ldap
4 PKG_SUPPORTED_OPTIONS=  sasl exop
5
6 .include "../../mk/bsd.options.mk"
7
8 .if !empty(PKG_OPTIONS:Msasl)
9 USE_BUILTIN.openldap-client=no
10 .  include "../../databases/openldap-client/builtin.mk"
11 .  include "../../databases/openldap-client/buildlink3.mk"
12 .  include "../../security/cyrus-sasl/buildlink3.mk"
13 CONFIGURE_ARGS+= --with-ldap-sasl=${PREFIX}
14 .endif
15
16 .if !empty(PKG_OPTIONS:Mexop)
17 EXOP_PATCH=     ${FILESDIR}/ldap-ctrl-exop.patch
18 post-patch:
19         ${PATCH} -d ${WRKSRC} -p2 --forward --quiet  < ${EXOP_PATCH}
20 .endif