diff --git a/Formula/imagemagick.rb b/Formula/imagemagick.rb index 2493c9c54a..61cfa8b7a1 100644 --- a/Formula/imagemagick.rb +++ b/Formula/imagemagick.rb @@ -25,6 +25,7 @@ class Imagemagick :optional depends_on 'jasper' => :optional depends_on 'ghostscript' => :recommended if ghostscript_srsly? and x11? + depends_on 'libpng' unless x11? def skip_clean? path path.extname == '.la'