2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-07 19:22:45 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libffi < Formula
|
2012-01-08 06:53:17 +00:00
|
|
|
url 'http://mirrors.kernel.org/sources.redhat.com/libffi/libffi-3.0.10.tar.gz'
|
|
|
|
mirror 'ftp://sourceware.org/pub/libffi/libffi-3.0.10.tar.gz'
|
2010-04-07 05:58:35 +00:00
|
|
|
homepage 'http://sourceware.org/libffi/'
|
2012-01-08 06:53:17 +00:00
|
|
|
sha1 '97abf70e6a6d315d9259d58ac463663051d471e1'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2012-01-08 06:53:17 +00:00
|
|
|
keg_only :provided_by_osx, "Some formulae require a newer version of libffi."
|
|
|
|
|
|
|
|
def patches
|
|
|
|
# both of these are fixed upstream
|
2012-01-23 01:13:47 +00:00
|
|
|
{ :p0 => ["https://trac.macports.org/export/88691/trunk/dports/devel/libffi/files/patch-configure.diff",
|
|
|
|
"https://trac.macports.org/export/88691/trunk/dports/devel/libffi/files/patch-configure-darwin11.diff"] }
|
2012-01-08 06:53:17 +00:00
|
|
|
end
|
2009-09-07 19:22:45 +00:00
|
|
|
|
|
|
|
def install
|
2010-08-20 19:43:18 +00:00
|
|
|
ENV.universal_binary
|
2009-09-07 19:22:45 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|