Skip to content

Commit

Permalink
postgresql: fix TCL support on 10.7 and 10.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jacknagel committed Oct 21, 2014
1 parent cd831d7 commit 0e4121b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Formula/postgresql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,17 @@ def install

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")
Expand Down

0 comments on commit 0e4121b

Please sign in to comment.