diff options
| author | Mike McQuaid | 2012-07-30 21:34:44 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2012-08-08 18:19:21 +0100 |
| commit | 3895b9c415ef0b6dd10a0b69d69e88f203ac8604 (patch) | |
| tree | 2d77dc521e1a0647009cc00decec511df1948ab1 /Library | |
| parent | 16594820aa0d8bc5594ef3253a510565c415f13d (diff) | |
| download | homebrew-3895b9c415ef0b6dd10a0b69d69e88f203ac8604.tar.bz2 | |
Add modular x11 dependencies.
Fixes #13638.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/dependencies.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Homebrew/dependencies.rb b/Library/Homebrew/dependencies.rb index 38308c087..1db0fcf24 100644 --- a/Library/Homebrew/dependencies.rb +++ b/Library/Homebrew/dependencies.rb @@ -64,7 +64,13 @@ private when :autoconf, :automake, :bsdmake, :libtool # Xcode no longer provides autotools or some other build tools Dependency.new(spec.to_s) unless MacOS::Xcode.provides_autotools? - when :x11, :libpng + when :libpng, :freetype, :pixman, :fontconfig, :cairo + if MacOS.lion_or_newer? + MacOS::XQuartz.installed? ? X11Dependency.new(tag) : Dependency.new(spec.to_s) + else + X11Dependency.new(tag) + end + when :x11 X11Dependency.new(tag) else raise "Unsupported special dependency #{spec}" |
