From a1a81daffca376e0f9dff1754eb354e162c98686 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Sun, 17 Apr 2016 14:34:18 -0700 Subject: XQuartz: detect Tiger's prefix --- Library/Homebrew/os/mac/xquartz.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Library') 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 -- cgit v1.2.3