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