[buildout]
extends =
  ../patch/buildout.cfg
  ../perl/buildout.cfg
  ../imagemagick/buildout.cfg
parts = perl-Image-Magick

[perl-Image-Magick]
<= perl-CPAN-package
# module = Image/PerlMagick
# version = 6.77
# version 6.77 is not in `by-module` folder, so we use url= until we update
url = http://search.cpan.org/CPAN/authors/id/J/JC/JCRISTY/PerlMagick-6.77.tar.gz
md5sum = fa0f66fa0cabbd1b196254f94dec8e99
shared = false
patch-options = -p0
patches =
  ${:_profile_base_location_}/perl-Image-Magick_MakefilePL.patch#31043e2b79e725d3b251aa09b4549046
extra-configure-args = LIBS="-L${imagemagick:location}/lib -Wl,-R${imagemagick:location}/lib -L${perl:location}/libs-c -Wl,-R${perl:location}/libs-c" INC="-I${imagemagick:location}/include/ImageMagick"
environment =
  PATH=${patch:location}/bin:%(PATH)s
