diff --git a/Aliases/liblabjackusb b/Aliases/liblabjackusb new file mode 120000 index 0000000000..388313b6df --- /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 0000000000..4d588d3a02 --- /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