blob: a407cdfc06f75269f96a8069a4fbae46f32e101d (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 | require 'formula'
class Exodriver < Formula
  homepage 'http://labjack.com/support/linux-and-mac-os-x-drivers'
  url 'https://github.com/labjack/exodriver/archive/v2.5.3.tar.gz'
  sha1 'd21529987962b1e7178ec7331fc14700caed0692'
  head 'https://github.com/labjack/exodriver.git'
  depends_on 'libusb'
  option :universal
  def install
    ENV.universal_binary if build.universal?
    cd 'liblabjackusb'
    system "make", "-f", "Makefile",
                   "DESTINATION=#{lib}",
                   "HEADER_DESTINATION=#{include}",
                   "install"
  end
end
 |