homebrew-core/Formula/chuck.rb

33 lines
900 B
Ruby
Raw Normal View History

2014-05-23 18:27:49 +00:00
require "formula"
2011-03-10 05:11:03 +00:00
class Chuck < Formula
2014-05-23 18:27:49 +00:00
homepage "http://chuck.cs.princeton.edu/"
url "http://chuck.cs.princeton.edu/release/files/chuck-1.3.4.0.tgz"
sha1 "d32faae2cb60fc81d2716b477cf2d54bc548d9c6"
2014-05-29 02:13:37 +00:00
# Homebrew already takes care of setting the sysroot;
# also lets the build work on CLT.
patch :DATA
def install
2014-05-23 18:27:49 +00:00
system "make", "-C", "src", "osx"
bin.install "src/chuck"
(share/"chuck").install "examples"
end
end
2014-05-29 02:13:37 +00:00
__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