From a2d4d9d832e60e2b007990f394b22e77b6dfa3ba Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 6 Jun 2012 20:35:12 -0500 Subject: Update formulae for XQuartz compatibility --- Library/Formula/ghostscript.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Formula/ghostscript.rb') diff --git a/Library/Formula/ghostscript.rb b/Library/Formula/ghostscript.rb index 87e3f82b4..57b7bc90d 100644 --- a/Library/Formula/ghostscript.rb +++ b/Library/Formula/ghostscript.rb @@ -18,6 +18,7 @@ class Ghostscript < Formula depends_on 'libtiff' depends_on 'jbig2dec' depends_on 'little-cms2' + depends_on :libpng if ARGV.build_head? and MacOS.xcode_version >= "4.3" depends_on "automake" => :build @@ -36,10 +37,9 @@ class Ghostscript < Formula end def install - ENV.libpng ENV.deparallelize # ghostscript configure ignores LDFLAGs apparently - ENV['LIBS'] = "-L/usr/X11/lib" + ENV['LIBS'] = "-L#{MacOS.x11_prefix}/lib" src_dir = ARGV.build_head? ? "gs" : "." -- cgit v1.2.3