41 lines
1.2 KiB
Ruby
41 lines
1.2 KiB
Ruby
class Libmatroska < Formula
|
|
desc "Extensible, open standard container format for audio/video"
|
|
homepage "https://www.matroska.org/"
|
|
url "https://dl.matroska.org/downloads/libmatroska/libmatroska-1.4.8.tar.xz"
|
|
sha256 "d8c72b20d4c5bf888776884b0854f95e74139b5267494fae1f395f7212d7c992"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "e4f4d97646cb4860e229532d6a37ac3edeabac4dcc35fb66ff73aa4bd2baad62" => :high_sierra
|
|
sha256 "d9d618b79e33db74df3d594bbb8ce997c7fb3347861ad2ea6e5677cd607a3197" => :sierra
|
|
sha256 "53cffc64b37eec80b8325437f3fd7d84ffdf0626bb87499c1565eaa063c63854" => :el_capitan
|
|
end
|
|
|
|
head do
|
|
url "https://github.com/Matroska-Org/libmatroska.git"
|
|
depends_on "automake" => :build
|
|
depends_on "autoconf" => :build
|
|
depends_on "libtool" => :build
|
|
end
|
|
|
|
option :cxx11
|
|
|
|
if build.cxx11?
|
|
depends_on "libebml" => "c++11"
|
|
else
|
|
depends_on "libebml"
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
def install
|
|
ENV.cxx11 if build.cxx11?
|
|
|
|
system "autoreconf", "-fi" if build.head?
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--disable-silent-rules",
|
|
"--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
end
|