homebrew-core/Formula/libusb.rb
Jack Nagel 3b8403dcd7 libusb: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-12 13:00:54 -05:00

23 lines
608 B
Ruby

require 'formula'
class Libusb < Formula
homepage 'http://www.libusb.org/'
url 'http://downloads.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.9/libusb-1.0.9.tar.bz2'
sha256 'e920eedc2d06b09606611c99ec7304413c6784cba6e33928e78243d323195f9b'
head 'git://git.libusb.org/libusb.git'
if build.head?
depends_on :automake
depends_on :libtool
end
option :universal
def install
ENV.universal_binary if build.universal?
system "./autogen.sh" if build.head?
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
system "make install"
end
end