33 lines
1.8 KiB
Ruby
33 lines
1.8 KiB
Ruby
class Libuvc < Formula
|
|
desc "Cross-platform library for USB video devices"
|
|
homepage "https://github.com/ktossell/libuvc"
|
|
url "https://github.com/ktossell/libuvc/archive/v0.0.6.tar.gz"
|
|
sha256 "42175a53c1c704365fdc782b44233925e40c9344fbb7f942181c1090f06e2873"
|
|
license "BSD-3-Clause"
|
|
head "https://github.com/ktossell/libuvc.git", branch: "master"
|
|
|
|
bottle do
|
|
rebuild 1
|
|
sha256 cellar: :any, arm64_monterey: "619dc091b52aaf2461b8f6935d9be9bf5b30fe99ac40545458761a8879dd4e61"
|
|
sha256 cellar: :any, arm64_big_sur: "51c899af95c83a96799af845463826cd9c4a939c030bfa1fa7597603f3470dd5"
|
|
sha256 cellar: :any, monterey: "66d3c4e163006cbe0d76765ee075b7ef2e5eec8c1e6f720051b0ac4f56abeb85"
|
|
sha256 cellar: :any, big_sur: "1bb47911fa2b70dabe09cb9520498700ff75d0349991f36460b28d762c5cf03d"
|
|
sha256 cellar: :any, catalina: "4051cd7aa8dbf7a5e940a85f8c38900829e66cabfb00be22a592dd3a421e3cca"
|
|
sha256 cellar: :any, mojave: "1ff736e2499c4da037ff74ea31ebe2be23defd7e316ad974ff57cd9a712c7445"
|
|
sha256 cellar: :any, high_sierra: "c0ec2076095af1c5154bc43d18a5869b5678f026f1b3c76964f136e4ada07717"
|
|
sha256 cellar: :any, sierra: "1888941024fe1b8ca44f15b98e51390872286c0145806fbd0a61999bab225905"
|
|
sha256 cellar: :any, el_capitan: "4defbab7e171c20da065eb5e4f2b11b5b27165efbd850e742674be281f3a0fcd"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "fcbf0e7bb705d1d54bdc5d50be6a7d38793bd1f01148ee13805d4131c7753e95"
|
|
end
|
|
|
|
depends_on "cmake" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "libusb"
|
|
|
|
def install
|
|
system "cmake", ".", *std_cmake_args
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
end
|