homebrew-core/Formula/libusb.rb

26 lines
674 B
Ruby
Raw Normal View History

2009-10-30 10:44:15 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class Libusb < Formula
2010-04-27 18:52:57 +00:00
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'
2009-10-30 10:44:15 +00:00
def options
[["--universal", "Build a universal binary."]]
end
2012-07-07 18:08:22 +00:00
if ARGV.build_head?
depends_on :automake
depends_on :libtool
end
2009-10-30 10:44:15 +00:00
def install
2011-04-21 16:42:27 +00:00
ENV.universal_binary if ARGV.build_universal?
system "./autogen.sh" if ARGV.build_head?
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
2009-10-30 10:44:15 +00:00
system "make install"
end
end