2014-07-21 01:55:17 +00:00
|
|
|
require "formula"
|
2013-12-11 08:41:05 +00:00
|
|
|
|
|
|
|
class Libuvc < Formula
|
2014-07-21 01:55:17 +00:00
|
|
|
homepage "https://github.com/ktossell/libuvc"
|
|
|
|
url "https://github.com/ktossell/libuvc/archive/v0.0.5.tar.gz"
|
|
|
|
sha1 "ab2e06d014af6aa72238113666f57405f45d1d18"
|
2013-12-11 08:41:05 +00:00
|
|
|
|
2014-07-30 23:59:19 +00:00
|
|
|
head "https://github.com/ktossell/libuvc.git"
|
|
|
|
|
2014-07-03 21:27:43 +00:00
|
|
|
bottle do
|
2014-07-21 02:06:50 +00:00
|
|
|
sha1 "592b2190a35ab15f07c25d39f3e34a0baae971e2" => :mavericks
|
|
|
|
sha1 "c13fafbeab7ebc19565be18423bb34248c9557a6" => :mountain_lion
|
|
|
|
sha1 "82645fb85228750be0aba5d2fd2b10bbc9ed888c" => :lion
|
2014-07-03 21:27:43 +00:00
|
|
|
end
|
|
|
|
|
2014-07-21 01:55:17 +00:00
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "libusb"
|
2014-07-30 23:59:19 +00:00
|
|
|
depends_on "jpeg" => :optional
|
2013-12-11 08:41:05 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "cmake", ".", *std_cmake_args
|
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
end
|