homebrew-core/Formula/handbrake.rb

33 lines
1.1 KiB
Ruby
Raw Normal View History

class Handbrake < Formula
desc "Open-source video transcoder available for Linux, Mac, and Windows."
homepage "https://handbrake.fr/"
url "https://handbrake.fr/rotation.php?file=HandBrake-1.0.2.tar.bz2"
sha256 "18e4563cc150309df03f7e73462b823ba2eca61644a7a536c9930611f3f9aa1e"
head "https://github.com/HandBrake/HandBrake.git"
2016-12-25 14:12:32 +00:00
bottle do
2017-01-30 03:26:00 +00:00
sha256 "0a4ed5bf726d76c6728e9bce6e1b1ea2ea3ff2d3802f4b64c1fb25d551ceb390" => :sierra
sha256 "2c93a7f98629c7d33fb8e25cd49d3e63f768c997cba9b828bd5c4b67ec941710" => :el_capitan
sha256 "ab4ea7d8a76bf75710ca902f6b602afa7725791769c6d263ea5ed6b1d9e660c5" => :yosemite
2016-12-25 14:12:32 +00:00
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "cmake" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "yasm" => :build
def install
system "./configure", "--prefix=#{prefix}",
"--disable-xcode",
"--disable-gtk"
system "make", "-C", "build"
system "make", "-C", "build", "install"
end
test do
system bin/"HandBrakeCLI", "--help"
end
end