homebrew-core/Formula/lftp.rb
Max Howell 61b2307139 s/require 'brewkit'/require 'formula'/g
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.
2009-10-15 16:48:03 +01:00

16 lines
541 B
Ruby

require 'formula'
class Lftp <Formula
@url='http://ftp.yars.free.net/pub/source/lftp/lftp-3.7.15.tar.gz'
@homepage='http://lftp.yar.ru/'
@md5='6c43ffdb59234ff0533cfdda0c3c305c'
depends_on 'readline'
def install
ENV['CXXFLAGS'] += " -fno-exceptions -fno-rtti -fno-implement-inlines"
ENV['LDFLAGS'] += " -Xlinker -search_paths_first -L/usr/local/lib"
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking", "--with-openssl", "--disable-shared", "--disable-nls"
system "make install"
end
end