aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/log4cxx.rb
blob: d48305ed7e9e781e68da557129ca5d49d733316d (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
require 'formula'

class Log4cxx < Formula
  url 'http://www.apache.org/dyn/closer.cgi?path=logging/log4cxx/0.10.0/apache-log4cxx-0.10.0.tar.gz'
  homepage 'http://logging.apache.org/log4cxx/index.html'
  md5 'b30ffb8da3665178e68940ff7a61084c'

  fails_with_llvm "Fails with \"collect2: ld terminated with signal 11 [Segmentation fault]\".",
    :build => 2334

  def options
    [
      ["--universal", "Build for both 32 & 64 bit Intel."]
    ]
  end

  def install
    ENV.universal_binary if ARGV.build_universal?

    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          # Docs won't install on OS X
                          "--disable-doxygen"
    system "make install"
  end
end