Skip to content

Commit

Permalink
otx: Patch MacOS SDK paths
Browse files Browse the repository at this point in the history
otx is hardcoded to use the MacOSX10.6 SDK which is no longer available in
Mountain Lion. By replacing this with MacOSX#{MacOS.version} the package can
be successfully built even on 10.8.

Closes Homebrew#15879.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
  • Loading branch information
dholm authored and Sharpie committed Nov 8, 2012
1 parent d652c01 commit 0b6a716
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Library/Formula/otx.rb
Expand Up @@ -7,6 +7,10 @@ class Otx < Formula
depends_on :xcode # For working xcodebuild.

def install
inreplace 'otx.xcodeproj/project.pbxproj' do |s|
s.gsub! "MacOSX10.6.sdk", "MacOSX#{MacOS.version}.sdk"
end

system 'xcodebuild SYMROOT=build'
build = buildpath/'build/Release'
bin.install build+"otx"
Expand Down

0 comments on commit 0b6a716

Please sign in to comment.