2013-12-11 08:41:05 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libuvc < Formula
|
|
|
|
homepage 'https://github.com/ktossell/libuvc'
|
2014-02-17 01:08:02 +00:00
|
|
|
url 'https://github.com/ktossell/libuvc/archive/v0.0.3.tar.gz'
|
|
|
|
sha1 'bd6868772e6e4b9c52431d7731c09df013b6cf43'
|
2013-12-11 08:41:05 +00:00
|
|
|
|
|
|
|
depends_on 'cmake' => :build
|
2014-02-17 01:08:02 +00:00
|
|
|
depends_on 'libusb'
|
2013-12-11 08:41:05 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "cmake", ".", *std_cmake_args
|
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
end
|