2010-10-04 09:13:35 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Exodriver < Formula
|
2010-10-04 09:13:35 +00:00
|
|
|
homepage 'http://labjack.com/support/linux-and-mac-os-x-drivers'
|
2013-06-14 18:36:05 +00:00
|
|
|
url 'https://github.com/labjack/exodriver/archive/v2.5.2.tar.gz'
|
|
|
|
sha1 '8d53bb3eda8a62c0399e3ea6657fe2b22eeffaac'
|
2010-10-04 09:13:35 +00:00
|
|
|
|
2012-04-19 02:37:43 +00:00
|
|
|
head 'https://github.com/labjack/exodriver.git'
|
2010-10-04 09:13:35 +00:00
|
|
|
|
|
|
|
depends_on 'libusb'
|
|
|
|
|
2012-08-09 05:34:30 +00:00
|
|
|
option :universal
|
2011-01-04 09:38:42 +00:00
|
|
|
|
2010-10-04 09:13:35 +00:00
|
|
|
def install
|
2012-08-09 05:34:30 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2012-02-13 04:17:56 +00:00
|
|
|
|
|
|
|
cd 'liblabjackusb'
|
2012-05-03 11:26:23 +00:00
|
|
|
system "make", "-f", "Makefile",
|
2012-02-13 04:17:56 +00:00
|
|
|
"DESTINATION=#{lib}",
|
|
|
|
"HEADER_DESTINATION=#{include}",
|
|
|
|
"install"
|
2010-10-04 09:13:35 +00:00
|
|
|
end
|
2011-03-10 05:11:03 +00:00
|
|
|
end
|