aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorPaul J. Davis2009-09-07 15:22:45 -0400
committerMax Howell2009-09-16 14:49:07 +0100
commitf3c3418cbbaead006e2ac111eeec0346a7ea7769 (patch)
tree16790ac914265b674c06043639e88fc812b3631c /Library/Formula
parent1a0b95d28de93b5f8a145422335f4a08e74cbf0c (diff)
downloadhomebrew-f3c3418cbbaead006e2ac111eeec0346a7ea7769.tar.bz2
Libffi formula
libffi - FFI stands for Foreign Function Interface. A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libffi.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/libffi.rb b/Library/Formula/libffi.rb
new file mode 100644
index 000000000..8f37656e5
--- /dev/null
+++ b/Library/Formula/libffi.rb
@@ -0,0 +1,18 @@
+require 'brewkit'
+
+class Libffi <Formula
+ @url='ftp://sourceware.org/pub/libffi/libffi-3.0.8.tar.gz'
+ @homepage='http://sources.redhat.com/libffi/'
+ @sha1='ce44d10c39d9a37479c8777e206cac0f36c48712'
+
+ def patches
+ host = "http://trac.macports.org"
+ base = "export/57218/trunk/dports/devel/libffi/files"
+ ["#{host}/#{base}/patch-includedir.diff"]
+ end
+
+ def install
+ system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
+ system "make install"
+ end
+end