homebrew-core/Formula/libnfc.rb
nibbles 2bits 60e1261a5e libnfc 1.6.0-rc1
Upgrade to 1.6.0-rc1. It has been their featured release since
March of this year.

Closes Homebrew/homebrew#14722.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-05 09:43:56 -05:00

27 lines
603 B
Ruby

require 'formula'
class Libnfc < Formula
homepage 'http://www.libnfc.org/'
url 'http://libnfc.googlecode.com/files/libnfc-1.6.0-rc1.tar.gz'
sha1 'bbff76269120c3a531eb96b7ceb96fd36c0071a1'
depends_on 'libusb-compat'
option 'with-pn532_uart', 'Enable PN532 UART support'
def install
args = %W[
--disable-debug
--disable-dependency-tracking
--prefix=#{prefix}
]
if build.include? 'with-pn532_uart'
args << "--enable-serial-autoprobe"
args << "--with-drivers=pn532_uart"
end
system "./configure", *args
system "make install"
end
end