diff options
| author | Jakob van Santen | 2013-06-02 20:30:35 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2013-06-13 14:12:05 -0700 |
| commit | be364a21ed8c8fd46a49907c8c43ccd3472d2c4b (patch) | |
| tree | 6f3590caf51fe071fcc83f0ea6506d8432fccbf1 /Library/Formula | |
| parent | 0c3b88a6f2e8acdca1890dac26e40d8432ff18df (diff) | |
| download | homebrew-be364a21ed8c8fd46a49907c8c43ccd3472d2c4b.tar.bz2 | |
CDK 5.0.20120323
Closes #20216.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/cdk.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/cdk.rb b/Library/Formula/cdk.rb new file mode 100644 index 000000000..2ab917ca0 --- /dev/null +++ b/Library/Formula/cdk.rb @@ -0,0 +1,22 @@ +require 'formula' + +class Cdk < Formula + homepage 'http://invisible-island.net/cdk/' + url 'ftp://invisible-island.net/cdk/cdk-5.0-20120323.tgz' + version '5.0.20120323' + sha1 '014a32b1a2928bb0ab1917b7d15b9cdd1e23f33f' + + def install + system "./configure", "--prefix=#{prefix}" + system "make", "install" + system "ranlib", "#{lib}/libcdk.a" + # Clean up generated header paths + inreplace "#{include}/cdk.h" do |s| + for obj in ["scale", "slider"] + for dt in ["", "u", "d", "f"] + s.sub! "#include <#{dt}#{obj}.h>", "#include <cdk/#{dt}#{obj}.h>" + end + end + end + end +end |
