[buildout]
parts = nspr

[nspr-pkgconfig-patch-download]
recipe = hexagonit.recipe.download
filename = nspr-4.8.6-pkgconfig-1.patch
url = http://www.linuxfromscratch.org/patches/blfs/svn/${:filename}
md5sum = 7c00beff0475314f59214842509e407f
download-only = true

[nspr]
recipe = hexagonit.recipe.cmmi
url = https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.8.7/src/nspr-4.8.7.tar.gz 
md5sum = 97e30989a56ab813453b71261849c200 
patches = ${nspr-pkgconfig-patch-download:location}/${nspr-pkgconfig-patch-download:filename}
patch-options = -p1
configure-command =
  cd mozilla/nsprpub
  ./configure
configure-options =
  --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
  --with-mozilla
  --enable-64bit
make-options =
  -C mozilla/nsprpub