diff options
| author | Vittorio Giovara | 2014-08-11 00:15:49 +0100 | 
|---|---|---|
| committer | Mike McQuaid | 2015-04-20 10:05:42 +0100 | 
| commit | 2dc1dd9671672d99e8cf98465169834f3c8efcec (patch) | |
| tree | 7737fdcc4d5f7231e6882351e41715e68a0f61aa | |
| parent | 4cb934be5cd303f855ee34979ce1673c95f2bff4 (diff) | |
| download | homebrew-2dc1dd9671672d99e8cf98465169834f3c8efcec.tar.bz2 | |
ffms2 2.20 (new formula)
Closes #37850.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Formula/ffms2.rb | 35 | 
1 files changed, 35 insertions, 0 deletions
| diff --git a/Library/Formula/ffms2.rb b/Library/Formula/ffms2.rb new file mode 100644 index 000000000..4f3864ea2 --- /dev/null +++ b/Library/Formula/ffms2.rb @@ -0,0 +1,35 @@ +class Ffms2 < Formula +  homepage "https://github.com/FFMS/ffms2" +  url "https://github.com/FFMS/ffms2/archive/2.20.tar.gz" +  sha256 "c7d880172756c253f2c5673044dabf03c19890dcfe64da5104ee9f42a1a573a0" + +  depends_on "pkg-config" => :build +  depends_on "ffmpeg" + +  resource "videosample" do +    url "http://samples.mplayerhq.hu/V-codecs/lm20.avi" +    sha256 "a0ab512c66d276fd3932aacdd6073f9734c7e246c8747c48bf5d9dd34ac8b392" +  end + +  # needed for the test section to exit cleanly, next version won't need it +  patch do +    url "https://github.com/FFMS/ffms2/commit/2c59b6a420bc8cf35fc8552a37a63d7d6e1ef424.diff" +    sha256 "b43bd100579c088b13f6dba992c728bb831f0813b12f5cb4053b9249c2fbfa92" +  end + +  def install +    system "./configure", "--disable-debug", +                          "--disable-dependency-tracking", +                          "--enable-avresample", +                          "--prefix=#{prefix}" +    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 | 
