[buildout]
parts =
  openldap
extends =
  ../groff/buildout.cfg
  ../openssl/buildout.cfg
  ../cyrus-sasl/buildout.cfg

[openldap]
recipe = slapos.recipe.cmmi
url = ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.4.33.tgz
md5sum = 5adae44897647c15ce5abbff313bc85a
configure-options =
  --disable-static
  --disable-slapd
  --enable-backends=no
  --enable-overlays=no
  --with-cyrus-sasl
  --without-fetch
  --disable-rewrite
  --disable-odbc
  --with-threads
  --with-tls=openssl

environment =
  CPPFLAGS=-I${openssl:location}/include -I${cyrus-sasl:location}/include
  LDFLAGS=-L${openssl:location}/lib -Wl,-rpath=${openssl:location}/lib -L${cyrus-sasl:location}/lib -Wl,-rpath=${cyrus-sasl:location}/lib
  PATH=${groff:location}/bin:%(PATH)s

[openldap:cygwin]
share = /usr
promises = 
  /usr/lib/libldap.dll.a
  /usr/bin/cygldap-2-3-0.dll
  /usr/include/ldap.h
url = ftp://lug.mtu.edu/cygwin/release/openldap/openldap-2.3.43-3-src.tar.bz2
md5sum = 534265a210652f355da30aaf2a97b96f
configure-command = cygport
configure-options =
  openldap-2.3.43-3.cygport
  prep
  compile
make-options = -C openldap-2.3.43-3/build