2010-10-18 14:41:05 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Log4cxx < Formula
|
|
|
|
homepage 'http://logging.apache.org/log4cxx/index.html'
|
2012-07-07 18:08:22 +00:00
|
|
|
url 'http://www.apache.org/dyn/closer.cgi?path=logging/log4cxx/0.10.0/apache-log4cxx-0.10.0.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'd79c053e8ac90f66c5e873b712bb359fd42b648d'
|
2010-10-18 14:41:05 +00:00
|
|
|
|
2012-10-02 13:06:11 +00:00
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
2012-05-12 09:21:11 +00:00
|
|
|
|
2012-08-12 17:57:07 +00:00
|
|
|
option :universal
|
|
|
|
|
|
|
|
fails_with :llvm do
|
|
|
|
build 2334
|
|
|
|
cause "Fails with 'collect2: ld terminated with signal 11 [Segmentation fault]'"
|
2011-09-05 04:39:36 +00:00
|
|
|
end
|
|
|
|
|
2010-10-18 14:41:05 +00:00
|
|
|
def install
|
2012-08-12 17:57:07 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2012-06-02 18:37:38 +00:00
|
|
|
ENV.O2 # Using -Os causes build failures on Snow Leopard.
|
2011-09-05 04:39:36 +00:00
|
|
|
|
2012-05-12 09:21:11 +00:00
|
|
|
# Fixes build error with clang, old libtool scripts. cf. #12127
|
|
|
|
# Reported upstream here: https://issues.apache.org/jira/browse/LOGCXX-396
|
|
|
|
# Remove at: unknown, waiting for developer comments.
|
|
|
|
system './autogen.sh'
|
2010-10-18 14:41:05 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
2010-11-01 17:08:49 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
# Docs won't install on OS X
|
|
|
|
"--disable-doxygen"
|
2010-10-18 14:41:05 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|