aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mfoc.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/Library/Formula/mfoc.rb b/Library/Formula/mfoc.rb
new file mode 100644
index 000000000..316d0ddaf
--- /dev/null
+++ b/Library/Formula/mfoc.rb
@@ -0,0 +1,24 @@
+require 'formula'
+
+class Mfoc < Formula
+ homepage 'http://code.google.com/p/mfoc/'
+ url 'https://mfoc.googlecode.com/files/mfoc-0.10.7.tar.bz2'
+ sha1 '162a464baf6498926a72383c6b0040654321012d'
+
+ depends_on :autoconf
+ depends_on :automake
+ depends_on 'pkg-config' => :build
+ depends_on 'libnfc'
+ depends_on 'libusb'
+
+ def install
+ system "./configure", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
+ system "make"
+ system "make", "install"
+ end
+
+ test do
+ system bin/"mfoc", "-h"
+ end
+end