aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMisty De Meo2013-03-10 19:33:21 -0500
committerMisty De Meo2013-06-08 19:10:38 -0500
commit2f3b109750bc93fa07124846a8c36c63aef7128b (patch)
treee19a16a2e8891f6e1411eb5adf7d27aa5b3b0cb3 /Library/Formula
parent30c79ab65b7bf121cf80f8be051facf4e542c8b5 (diff)
downloadhomebrew-2f3b109750bc93fa07124846a8c36c63aef7128b.tar.bz2
cctools-headers 836
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/cctools-headers.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/Library/Formula/cctools-headers.rb b/Library/Formula/cctools-headers.rb
new file mode 100644
index 000000000..4984c0417
--- /dev/null
+++ b/Library/Formula/cctools-headers.rb
@@ -0,0 +1,26 @@
+require 'formula'
+
+# ld64 requires an updated mach/machine.h to build
+class XnuHeaders < Formula
+ url 'http://opensource.apple.com/tarballs/xnu/xnu-2050.18.24.tar.gz'
+ sha1 '3a2a0b3629cb215b17aca3bb365b8b10b8b408fe'
+end
+
+# These headers are newer than the version of cctools we provide
+class CctoolsHeaders < Formula
+ homepage 'http://opensource.apple.com/'
+ url 'http://www.opensource.apple.com/tarballs/cctools/cctools-836.tar.gz'
+ sha1 'fe2aab3f527adf6c775462ac045699a150dc7f82'
+
+ keg_only :provided_by_osx
+
+ def install
+ # only supports DSTROOT, not PREFIX
+ inreplace "include/Makefile", "/usr/include", "/include"
+ system "make", "installhdrs", "DSTROOT=#{prefix}", "RC_ProjectSourceVersion=#{version}"
+ # installs some headers we don't need to DSTROOT/usr/local/include
+ (prefix/'usr').rmtree
+
+ XnuHeaders.new.brew {(include/'mach').install 'osfmk/mach/machine.h'}
+ end
+end