blob: 1dacb3edc45839c1dd0a782a2def80b759537817 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
require 'formula'
class Exodriver <Formula
url 'https://github.com/labjack/exodriver/tarball/98cf1f83ff65ab7a317f4310d46081a476ae939c'
homepage 'http://labjack.com/support/linux-and-mac-os-x-drivers'
md5 'ec227347ccaf0772d175d3a2cf557105'
version '2.0-0-98cf1f8'
head 'https://github.com/labjack/exodriver.git', :using => :git
depends_on 'libusb'
def options
[["--universal", "Build a universal binary."]]
end
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
ENV.universal_binary if ARGV.include? "--universal"
system "make"
system "make install"
end
end
|