acbe0aa8e3
This builds and runs correctly, universal and otherwise, without changing the compiler environment variables manually. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
20 lines
503 B
Ruby
20 lines
503 B
Ruby
require 'formula'
|
|
|
|
class Rsyslog < Formula
|
|
url 'http://rsyslog.com/files/download/rsyslog/rsyslog-5.8.0.tar.gz'
|
|
homepage 'http://www.rsyslog.com'
|
|
md5 '37562d0e71a24938a9ed7f242bd32d35'
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
def options
|
|
[['--universal', 'Make a 32/64-bit Intel build.']]
|
|
end
|
|
|
|
def install
|
|
ENV.universal_binary if ARGV.build_universal?
|
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
end
|