Permalink
Browse files

offical labjack usb drivers (aka liblabjackusb)

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information...
1 parent d8ff3b8 commit 2fd7abbe7038277a41e615793caecffa826bab40 @lwe lwe committed with adamv Oct 4, 2010
Showing with 26 additions and 0 deletions.
  1. +1 −0 Library/Aliases/liblabjackusb
  2. +25 −0 Library/Formula/exodriver.rb
@@ -0,0 +1,25 @@
+require 'formula'
+
+class Exodriver <Formula
+ url 'http://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 'http://github.com/labjack/exodriver.git', :using => :git
+
+ depends_on 'libusb'
+
+ 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
+
+ system "make"
+ system "make install"
+ end
+end

0 comments on commit 2fd7abb

Please sign in to comment.