From 1e5bcd48d10988ff78ba26f597bd334f38bd51b8 Mon Sep 17 00:00:00 2001 From: Simon Green Date: Sun, 13 Apr 2014 19:33:47 +0100 Subject: [PATCH] libnfc: expanded serial port support and auto detection Required for certain UART adapters, especially those based on PL2303 which are very common. Closes Homebrew/homebrew#28375. Signed-off-by: Adam Vandenberg --- Formula/libnfc.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/libnfc.rb b/Formula/libnfc.rb index c7db17b7b8..663e7b2122 100644 --- a/Formula/libnfc.rb +++ b/Formula/libnfc.rb @@ -16,7 +16,7 @@ class Libnfc < Formula def install system "./configure", "--disable-debug", "--disable-dependency-tracking", - "--prefix=#{prefix}" + "--prefix=#{prefix}", "--enable-serial-autoprobe" system "make install" (prefix/'etc/nfc/libnfc.conf').write "allow_intrusive_scan=yes" end @@ -52,7 +52,7 @@ index 7b687c1..686f9ed 100644 # if defined(__APPLE__) -const char *serial_ports_device_radix[] = { "tty.SLAB_USBtoUART", "tty.usbserial-", NULL }; -+const char *serial_ports_device_radix[] = { "tty.SLAB_USBtoUART", "tty.usbserial-", "tty.usbmodem", NULL }; ++const char *serial_ports_device_radix[] = { "tty.SLAB_USBtoUART", "tty.usbserial-", "tty.usbmodem", "tty.usbserial", NULL }; # elif defined (__FreeBSD__) || defined (__OpenBSD__) const char *serial_ports_device_radix[] = { "cuaU", "cuau", NULL }; # elif defined (__linux__)