blob: ff6a3e5e16cb4a490817d44e2912553ed77fe554 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
 | require 'formula'
class Libcaca < Formula
  homepage 'http://caca.zoy.org/wiki/libcaca'
  url 'http://caca.zoy.org/files/libcaca/libcaca-0.99.beta18.tar.gz'
  version '0.99b18'
  md5 '93d35dbdb0527d4c94df3e9a02e865cc'
  depends_on 'pkg-config' => :build
  depends_on 'imlib2'
  depends_on :x11
  fails_with :llvm do
    cause "Unsupported inline asm: input constraint with a matching output constraint of incompatible type"
  end
  # Make libcaca build with clang; see http://caca.zoy.org/ticket/90
  def patches; DATA; end
  def install
    # Some people can't compile when Java is enabled. See:
    # https://github.com/mxcl/homebrew/issues/issue/2049
    # Don't build csharp bindings
    # Don't build ruby bindings; fails for adamv w/ Homebrew Ruby 1.9.2
    # Don't build python bindings:
    #   ../.auto/py-compile: Missing argument to --destdir.
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--disable-python",
                          "--disable-doc",
                          "--disable-slang",
                          "--disable-java",
                          "--disable-csharp",
                          "--disable-ruby"
    system "make"
    ENV.j1 # Or install can fail making the same folder at the same time
    system "make install"
  end
end
__END__
--- a/caca/caca.h 2011-07-05 00:09:51.000000000 -0700
+++ b/caca/caca.h 2011-07-05 00:10:10.000000000 -0700
@@ -645,7 +645,7 @@ typedef struct cucul_buffer cucul_buffer
 #       define CACA_DEPRECATED
 #   endif
 
-#   if defined __GNUC__ && __GNUC__ > 3
+#   if !defined __APPLE__ && defined __GNUC__ && __GNUC__ > 3
 #       define CACA_ALIAS(x) __attribute__ ((weak, alias(#x)))
 #   else
 #       define CACA_ALIAS(x)
 |