From 6268fc7634a5a928d004cee0c4514874cc37b840 Mon Sep 17 00:00:00 2001 From: lukas Date: Mon, 4 Oct 2010 11:13:35 +0200 Subject: [PATCH] offical labjack usb drivers (aka liblabjackusb) Signed-off-by: Adam Vandenberg --- Aliases/liblabjackusb | 1 + Formula/exodriver.rb | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 120000 Aliases/liblabjackusb create mode 100644 Formula/exodriver.rb diff --git a/Aliases/liblabjackusb b/Aliases/liblabjackusb new file mode 120000 index 00000000000..388313b6dfd --- /dev/null +++ b/Aliases/liblabjackusb @@ -0,0 +1 @@ +../Formula/exodriver.rb \ No newline at end of file diff --git a/Formula/exodriver.rb b/Formula/exodriver.rb new file mode 100644 index 00000000000..4d588d3a02f --- /dev/null +++ b/Formula/exodriver.rb @@ -0,0 +1,25 @@ +require 'formula' + +class Exodriver :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 \ No newline at end of file