From 989b8281b78c20ee67e48afa194f6abf7bdfee69 Mon Sep 17 00:00:00 2001 From: Hans-Martin Will Date: Wed, 11 Dec 2013 00:41:05 -0800 Subject: [PATCH] libuvc: 0.0.2 - a cross-platform library for USB video devices Closes Homebrew/homebrew#25133. Signed-off-by: Adam Vandenberg --- Formula/libuvc.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Formula/libuvc.rb diff --git a/Formula/libuvc.rb b/Formula/libuvc.rb new file mode 100644 index 00000000000..65665e17dd8 --- /dev/null +++ b/Formula/libuvc.rb @@ -0,0 +1,16 @@ +require 'formula' + +class Libuvc < Formula + homepage 'https://github.com/ktossell/libuvc' + url 'https://github.com/ktossell/libuvc/archive/v0.0.2.tar.gz' + sha1 'e0d57007715eaf36c5ebeb8d348488984c681041' + + depends_on 'libusb' + depends_on 'cmake' => :build + + def install + system "cmake", ".", *std_cmake_args + system "make" + system "make", "install" + end +end