2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-07 19:22:45 +00:00
|
|
|
|
|
|
|
class Libffi <Formula
|
2010-04-07 05:58:35 +00:00
|
|
|
url 'ftp://sourceware.org/pub/libffi/libffi-3.0.8.tar.gz'
|
|
|
|
homepage 'http://sourceware.org/libffi/'
|
|
|
|
sha1 'ce44d10c39d9a37479c8777e206cac0f36c48712'
|
|
|
|
|
|
|
|
keg_only :provided_by_osx
|
2009-09-07 19:22:45 +00:00
|
|
|
|
|
|
|
def patches
|
|
|
|
host = "http://trac.macports.org"
|
|
|
|
base = "export/57218/trunk/dports/devel/libffi/files"
|
2009-09-16 16:08:32 +00:00
|
|
|
{ :p0 => "#{host}/#{base}/patch-includedir.diff" }
|
2009-09-07 19:22:45 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
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
|