[buildout]
extends =
  ../gmp/buildout.cfg
  ../m4/buildout.cfg

[nettle]
recipe = slapos.recipe.cmmi
url = http://www.lysator.liu.se/~nisse/archive/nettle-2.7.1.tar.gz
md5sum = 003d5147911317931dd453520eb234a5
patches =
  ${:_profile_base_location_}/nettle-lib-location.patch#41dd0ce2a73487929bdc637b75dd62c9
configure-option =
  --disable-static
  --disable-assembler
  --disable-openssl
  --disable-documentation
environment =
  PATH=${m4:location}/bin:%(PATH)s
  CPPFLAGS=-I${gmp:location}/include
  LDFLAGS=-L${gmp:location}/lib -Wl,-rpath=${gmp:location}/lib -Wl,-rpath=${buildout:parts-directory}/${:_buildout_section_name_}/lib
