homebrew-core/Formula/libusb.rb
Max Howell 06cb65df78 These now depend on automake for Xcode >= 4.3
Fixes Homebrew/homebrew#10559.

Also added missing deps for osm2pgsql.

Removed some ACLOCAL_FLAGS stuff as in theory this is not set in ENV.rb. Would like to see if it causes trouble. Should just work now.
2012-02-28 15:40:59 +00:00

24 lines
693 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'
head 'git://git.libusb.org/libusb.git'
def options
[["--universal", "Build a universal binary."]]
end
if ARGV.build_head? and MacOS.xcode_version >= "4.3"
depends_on "automake" => :build
depends_on "libtool" => :build
end
def install
ENV.universal_binary if ARGV.build_universal?
system "./autogen.sh" if ARGV.build_head?
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
system "make install"
end
end