libnfc: add option for PN532 UART support

This option is needed for users of libnfc when using devices connected over
serial with an NXP PN532 chipset - like the microBuilder breakout board:
http://www.microbuilder.eu/Projects/PN532.aspx

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
master
Squeeks 2011-07-18 13:02:11 -07:00 committed by Misty De Meo
parent 353000f675
commit a3009f3dad
1 changed files with 18 additions and 2 deletions

View File

@ -7,9 +7,25 @@ class Libnfc < Formula
depends_on 'libusb-compat'
def options
[
['--with-pn532_uart', 'Enable PN532 UART support'],
]
end
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
args = [
"--prefix=#{prefix}",
"--disable-debug",
"--disable-dependency-tracking" ]
if ARGV.include? '--with-pn532_uart'
args << "--enable-serial-autoprobe"
args << "--with-drivers=pn532_uart"
end
system "./configure", *args
system "make install"
end
end