libnfc 1.5.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
af164c2c3f
commit
640414b092
1 changed files with 5 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue