homebrew-core/Formula/libass.rb
AirPort 4fde357c47 libass: add HEAD
Closes Homebrew/homebrew#44679.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-07 20:36:18 +08:00

40 lines
1.3 KiB
Ruby

class Libass < Formula
desc "Subtitle renderer for the ASS/SSA subtitle format"
homepage "https://github.com/libass/libass"
url "https://github.com/libass/libass/releases/download/0.13.0/libass-0.13.0.tar.gz"
sha256 "67692ef2a56e0423d22b142edb072c04949fe88c37be1d19cf22669c44f935f3"
head do
url "https://github.com/libass/libass.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
bottle do
cellar :any
sha256 "cf1af3bd7ddb8138afe2d404897d48a4c78d5b2518ffef7d8785fcaa09144113" => :el_capitan
sha256 "cf0373b3f9d85cd4db27f37ea1cdc34a18033b5f5ce966d391165a1dcffc9e48" => :yosemite
sha256 "7303bf3c119bc80d850f8e16ac1212e70224c83df3f8a3c0bf2adb0d378a6e80" => :mavericks
end
option "with-fontconfig", "Disable CoreText backend in favor of the more traditional fontconfig"
depends_on "pkg-config" => :build
depends_on "yasm" => :build
depends_on "freetype"
depends_on "fribidi"
depends_on "harfbuzz" => :recommended
depends_on "fontconfig" => :optional
def install
args = %W[--disable-dependency-tracking --prefix=#{prefix}]
args << "--disable-coretext" if build.with? "fontconfig"
system "autoreconf", "-i" if build.head?
system "./configure", *args
system "make", "install"
end
end