[buildout]
extends =
  ../software-profiles/zlib.cfg

parts =
  openssl

[openssl]
recipe = erp5.recipe.cmmisafe
url = https://www.openssl.org/source/openssl-1.0.0a.tar.gz
md5sum = e3873edfffc783624cfbdb65e2249cbd
configure-command = ./config
configure-options =
  -I${zlib:location}/include
  -L${zlib:location}/lib
  --openssldir=${buildout:parts-directory}/${:_buildout_section_name_}/etc/ssl
  --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
  --libdir=lib
  shared
  zlib

make-options =
  LDFLAGS="-Wl,-rpath -Wl,${zlib:location}/lib -Wl,-rpath -Wl,${buildout:parts-directory}/${:_buildout_section_name_}/lib"
  SHARED_LDFLAGS="-Wl,-rpath -Wl,${zlib:location}/lib -Wl,-rpath -Wl,${buildout:parts-directory}/${:_buildout_section_name_}/lib"