diff options
Diffstat (limited to 'Library/Formula/libnfc.rb')
| -rw-r--r-- | Library/Formula/libnfc.rb | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/Library/Formula/libnfc.rb b/Library/Formula/libnfc.rb index cc8baf58c..0cdbb321b 100644 --- a/Library/Formula/libnfc.rb +++ b/Library/Formula/libnfc.rb @@ -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 |
