XQuartz: detect Tiger's prefix

This commit is contained in:
Misty De Meo 2016-04-17 14:34:18 -07:00 committed by Misty De Meo
parent 880ba0c952
commit a1a81daffc

View File

@ -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