libnfc 1.5.1

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Jakob Schlyter 2011-12-20 08:58:25 +01:00 committed by Adam Vandenberg
parent af164c2c3f
commit 640414b092

View file

@ -1,23 +1,19 @@
require 'formula'
class Libnfc < Formula
url 'http://libnfc.googlecode.com/files/libnfc-1.5.0.tar.gz'
url 'http://libnfc.googlecode.com/files/libnfc-1.5.1.tar.gz'
homepage 'http://www.libnfc.org/'
md5 '569d85c36cd68f6e6560c9d78b46788f'
md5 '81e3e59496060dc495c95844654a8038'
depends_on 'libusb-compat'
def options
[
['--with-pn532_uart', 'Enable PN532 UART support'],
]
[['--with-pn532_uart', 'Enable PN532 UART support']]
end
def install
args = [
"--prefix=#{prefix}",
"--disable-debug",
"--disable-dependency-tracking" ]
args = ["--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"]
if ARGV.include? '--with-pn532_uart'
args << "--enable-serial-autoprobe"
@ -25,7 +21,6 @@ class Libnfc < Formula
end
system "./configure", *args
system "make install"
end
end