2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-22 06:38:44 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Ncftp < Formula
|
2010-04-07 05:58:35 +00:00
|
|
|
homepage 'http://www.ncftp.com'
|
2011-01-29 20:01:12 +00:00
|
|
|
url 'ftp://ftp.ncftp.com/ncftp/ncftp-3.2.5-src.tar.gz'
|
2011-02-03 13:50:31 +00:00
|
|
|
md5 '685e45f60ac11c89442c572c28af4228'
|
2009-09-22 06:38:44 +00:00
|
|
|
|
|
|
|
def install
|
2011-02-22 17:26:57 +00:00
|
|
|
# "disable universal" doesn't seem to work.
|
|
|
|
# If ncftp detects the 10.4 SDK, it will try to use GCC 4.0 which doesn't
|
|
|
|
# support all of the compiler flags we set.
|
|
|
|
# So, just disable optimizations intead.
|
|
|
|
ENV.no_optimization
|
|
|
|
system "./configure", "--disable-universal",
|
|
|
|
"--disable-precomp",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"
|
2009-09-22 06:38:44 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
2010-06-02 17:49:40 +00:00
|
|
|
end
|