aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisty De Meo2016-04-17 14:34:18 -0700
committerMisty De Meo2016-04-18 09:52:46 -0700
commita1a81daffca376e0f9dff1754eb354e162c98686 (patch)
tree682ba5811027144654c4c93697d98808e01b36b5
parent880ba0c9522883d47ba5a40b42e6ba3402db9466 (diff)
downloadbrew-a1a81daffca376e0f9dff1754eb354e162c98686.tar.bz2
XQuartz: detect Tiger's prefix
-rw-r--r--Library/Homebrew/os/mac/xquartz.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/os/mac/xquartz.rb b/Library/Homebrew/os/mac/xquartz.rb
index 6ac970b18..3147dc1df 100644
--- a/Library/Homebrew/os/mac/xquartz.rb
+++ b/Library/Homebrew/os/mac/xquartz.rb
@@ -99,6 +99,9 @@ module OS
Pathname.new("/opt/X11")
elsif Pathname.new("/usr/X11/lib/libpng.dylib").exist?
Pathname.new("/usr/X11")
+ # X11 doesn't include libpng on Tiger
+ elsif Pathname.new("/usr/X11R6/lib/libX11.dylib").exist?
+ Pathname.new("/usr/X11R6")
end
end