diff options
| author | Simon Green | 2014-04-13 19:33:47 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2014-04-14 19:54:11 -0700 |
| commit | 5d506db343100eb9a52103c9380a0fce3fd1785f (patch) | |
| tree | 9d2dab408d1b92ec46bb44c28323a22379e10d3e /Library/Formula/libnfc.rb | |
| parent | 12473b6dde9839e34ff13a849a766762ec64ad8c (diff) | |
| download | homebrew-5d506db343100eb9a52103c9380a0fce3fd1785f.tar.bz2 | |
libnfc: expanded serial port support and auto detection
Required for certain UART adapters, especially those based on PL2303 which are very common.
Closes #28375.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/libnfc.rb')
| -rw-r--r-- | Library/Formula/libnfc.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/libnfc.rb b/Library/Formula/libnfc.rb index c7db17b7b..663e7b212 100644 --- a/Library/Formula/libnfc.rb +++ b/Library/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__) |
