homebrew-core/Formula/libusb.rb
Ian 2448cd0ffe add --universal option to libusb formula
Closes Homebrew/homebrew#3681.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2011-01-03 16:08:45 +00:00

17 lines
478 B
Ruby

require 'formula'
class Libusb <Formula
url 'http://downloads.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.8/libusb-1.0.8.tar.bz2'
homepage 'http://www.libusb.org/'
md5 '37d34e6eaa69a4b645a19ff4ca63ceef'
def options
[["--universal", "Build a universal binary."]]
end
def install
ENV.universal_binary if ARGV.include? "--universal"
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
system "make install"
end
end