57 lines
1.5 KiB
Ruby
57 lines
1.5 KiB
Ruby
class Ffms2 < Formula
|
|
desc "Libav/ffmpeg based source library and Avisynth plugin"
|
|
homepage "https://github.com/FFMS/ffms2"
|
|
url "https://github.com/FFMS/ffms2/archive/2.22.tar.gz"
|
|
mirror "https://mirrors.kernel.org/debian/pool/main/f/ffms2/ffms2_2.22.orig.tar.gz"
|
|
sha256 "7c5202fa2e49186fb3bb815e5b12ca71f05ec09cb707ffd9465852e21a06fdad"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "5fcb4f21f36b11f425bc56aaecba299d1b8f5d66fe48605ac8b8cadbb885fb21" => :el_capitan
|
|
sha256 "a3df3fc2c85b2d5b6005dbd9da3c5c74dad87b7f26c1692c5f01be78b893908b" => :yosemite
|
|
sha256 "a7a64036000bd4106ce826805e6d33e345d7006c1ea3ac75101c358b33b8b1c9" => :mavericks
|
|
end
|
|
|
|
head do
|
|
url "https://github.com/FFMS/ffms2.git"
|
|
|
|
depends_on "automake" => :build
|
|
depends_on "autoconf" => :build
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "ffmpeg"
|
|
|
|
resource "videosample" do
|
|
url "https://samples.mplayerhq.hu/V-codecs/lm20.avi"
|
|
sha256 "a0ab512c66d276fd3932aacdd6073f9734c7e246c8747c48bf5d9dd34ac8b392"
|
|
end
|
|
|
|
def install
|
|
# For Mountain Lion
|
|
ENV.libcxx
|
|
|
|
args = %W[
|
|
--disable-debug
|
|
--disable-dependency-tracking
|
|
--enable-avresample
|
|
--prefix=#{prefix}
|
|
]
|
|
|
|
if build.head?
|
|
system "./autogen.sh", *args
|
|
else
|
|
system "./configure", *args
|
|
end
|
|
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
# download small sample and check that the index was created
|
|
resource("videosample").stage do
|
|
system "ffmsindex", "lm20.avi"
|
|
assert File.exist? "lm20.avi.ffindex"
|
|
end
|
|
end
|
|
end
|