diff options
| author | Jack Nagel | 2014-10-20 21:32:19 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-10-20 21:32:19 -0500 |
| commit | ed24746b506bfa0bb91d8977c30307d2581cdaff (patch) | |
| tree | 02710df05deb38bd394c90b937d70f4cb340725a /Library/Formula/postgresql.rb | |
| parent | 944d5ac1633b4ceb5e79a00200eec450a8db4e42 (diff) | |
| download | homebrew-ed24746b506bfa0bb91d8977c30307d2581cdaff.tar.bz2 | |
postgresql: fix TCL support on 10.7 and 10.8
Diffstat (limited to 'Library/Formula/postgresql.rb')
| -rw-r--r-- | Library/Formula/postgresql.rb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Library/Formula/postgresql.rb b/Library/Formula/postgresql.rb index 4b7717ae4..4bc603b83 100644 --- a/Library/Formula/postgresql.rb +++ b/Library/Formula/postgresql.rb @@ -66,10 +66,17 @@ class Postgresql < Formula args << "--with-python" if build.with? 'python' args << "--with-perl" unless build.include? 'no-perl' - if !build.include? "no-tcl" + + # The CLT is required to build tcl support on 10.7 and 10.8 because + # tclConfig.sh is not part of the SDK + unless build.include?("no-tcl") || MacOS.version < :mavericks && MacOS::CLT.installed? args << "--with-tcl" - args << "--with-tclconfig=#{MacOS.sdk_path}/usr/lib" + + if File.exist?("#{MacOS.sdk_path}/usr/lib/tclConfig.sh") + args << "--with-tclconfig=#{MacOS.sdk_path}/usr/lib" + end end + args << "--enable-dtrace" if build.include? 'enable-dtrace' if build.with?("ossp-uuid") |
