homebrew-core/Formula/exodriver.rb

26 lines
640 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Exodriver < Formula
homepage 'http://labjack.com/support/linux-and-mac-os-x-drivers'
url 'https://github.com/labjack/exodriver/tarball/v2.0.4'
2011-01-16 16:08:27 +00:00
md5 '9208085ee8a9166898dc812b9d7e1905'
head 'https://github.com/labjack/exodriver.git', :using => :git
depends_on 'libusb'
def options
[["--universal", "Build a universal binary."]]
end
def install
2011-04-21 16:42:27 +00:00
ENV.universal_binary if ARGV.build_universal?
cd 'liblabjackusb'
system "make", "-f", "Makefile.MacOSX",
"DESTINATION=#{lib}",
"HEADER_DESTINATION=#{include}",
"install"
end
2011-03-10 05:11:03 +00:00
end