30 lines
828 B
Ruby
30 lines
828 B
Ruby
require 'formula'
|
|
|
|
class Librsync < Formula
|
|
homepage 'http://librsync.sourceforge.net/'
|
|
url 'http://downloads.sourceforge.net/project/librsync/librsync/0.9.7/librsync-0.9.7.tar.gz'
|
|
sha1 'd575eb5cae7a815798220c3afeff5649d3e8b4ab'
|
|
|
|
option :universal
|
|
|
|
depends_on 'popt'
|
|
|
|
def install
|
|
ENV.universal_binary if build.universal?
|
|
|
|
ENV.append 'CFLAGS', '-std=gnu89'
|
|
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--mandir=#{man}",
|
|
"--enable-shared"
|
|
|
|
inreplace 'libtool' do |s|
|
|
s.gsub! /compiler_flags=$/, "compiler_flags=' #{ENV.cflags}'"
|
|
s.gsub! /linker_flags=$/, "linker_flags=' #{ENV.ldflags}'"
|
|
end
|
|
|
|
system "make install"
|
|
end
|
|
end
|