diff --git a/buildout/software-profiles/imagemagick.cfg b/buildout/software-profiles/imagemagick.cfg
index d2f108e3e68d7a0b0c8c105893924493f7eb55fb..3d8451c3a8d0dd6a840b8b0a59e538872e86b459 100644
--- a/buildout/software-profiles/imagemagick.cfg
+++ b/buildout/software-profiles/imagemagick.cfg
@@ -1,6 +1,17 @@
 [buildout]
 parts = imagemagick
+extends =
+  ../software-profiles/bzip2.cfg
+  ../software-profiles/zlib.cfg
 
 [imagemagick]
 recipe = hexagonit.recipe.cmmi
-url = http://ftp.nluug.nl/ImageMagick/ImageMagick-6.6.4-9.tar.gz
+url = http://ftp.nluug.nl/ImageMagick/ImageMagick-6.6.5-8.tar.bz2
+md5sum = 128a787ec08186819e0c761d7e222ee7
+configure-options =
+  --without-x
+  --without-magick-plus-plus
+  --with-bzlib=${bzip2:location}
+  --with-zlib=${zlib:location}
+environment =
+  LDFLAGS =-Wl,-rpath -Wl,${bzip2:location}/lib -Wl,-rpath -Wl,${zlib:location}/lib