aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMisty De Meo2014-05-28 19:13:37 -0700
committerMisty De Meo2014-05-28 19:13:37 -0700
commitaa80153104de396744f2cca3e70877eb899efc52 (patch)
treef911f92b442cbd33319d6f4234e307fc80c9dc85 /Library/Formula
parente0b4f0e7e9ee75d2f2016139724fc7ff88257e87 (diff)
downloadhomebrew-aa80153104de396744f2cca3e70877eb899efc52.tar.bz2
chuck: fix build with CLT
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/chuck.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/chuck.rb b/Library/Formula/chuck.rb
index bc52d9d93..f2de6ee34 100644
--- a/Library/Formula/chuck.rb
+++ b/Library/Formula/chuck.rb
@@ -5,9 +5,28 @@ class Chuck < Formula
url "http://chuck.cs.princeton.edu/release/files/chuck-1.3.4.0.tgz"
sha1 "d32faae2cb60fc81d2716b477cf2d54bc548d9c6"
+ # Homebrew already takes care of setting the sysroot;
+ # also lets the build work on CLT.
+ patch :DATA
+
def install
system "make", "-C", "src", "osx"
bin.install "src/chuck"
(share/"chuck").install "examples"
end
end
+
+__END__
+diff --git a/src/makefile.osx b/src/makefile.osx
+index 4531ee1..cd4a910 100644
+--- a/src/makefile.osx
++++ b/src/makefile.osx
+@@ -2,8 +2,6 @@
+ # FORCE_M32=-m32
+
+ ifneq ($(shell sw_vers -productVersion | egrep '10\.[6789](\.[0-9]+)?'),)
+-SDK=$(shell xcodebuild -sdk macosx -version | grep '^Path:' | sed 's/Path: \(.*\)/\1/')
+-ISYSROOT=-isysroot $(SDK)
+ LINK_EXTRAS=-F/System/Library/PrivateFrameworks \
+ -weak_framework MultitouchSupport
+ else