2014-08-10 23:15:49 +00:00
|
|
|
class Ffms2 < Formula
|
2015-08-01 09:35:45 +00:00
|
|
|
desc "Libav/ffmpeg based source library and Avisynth plugin"
|
2014-08-10 23:15:49 +00:00
|
|
|
homepage "https://github.com/FFMS/ffms2"
|
2015-09-02 05:00:20 +00:00
|
|
|
url "https://github.com/FFMS/ffms2/archive/2.21.tar.gz"
|
|
|
|
mirror "https://mirrors.kernel.org/debian/pool/main/f/ffms2/ffms2_2.21.orig.tar.gz"
|
|
|
|
sha256 "c2c23ce2254e293376f786aafc20a345f4dc970f5b2efef3fa38e40d7d510202"
|
2014-08-10 23:15:49 +00:00
|
|
|
|
2015-04-20 01:57:46 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-09-02 18:58:55 +00:00
|
|
|
sha256 "b48b3b7b10eb88a08a5556f40a71deb0ac10d62e89a681b3d9577ad32229023e" => :yosemite
|
|
|
|
sha256 "857d0e62a8120ef2fd00327862f7a6b8afb8755082e14f2ac5d600c84b6819d7" => :mavericks
|
|
|
|
sha256 "cf9039480a3baf42907ed3082f5e6bd9b7183ab2a615908aceaf8e5e54204f52" => :mountain_lion
|
2015-04-20 01:57:46 +00:00
|
|
|
end
|
|
|
|
|
2015-09-02 05:00:20 +00:00
|
|
|
head do
|
|
|
|
url "https://github.com/FFMS/ffms2.git"
|
|
|
|
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
end
|
|
|
|
|
2014-08-10 23:15:49 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "ffmpeg"
|
|
|
|
|
|
|
|
resource "videosample" do
|
2015-10-17 08:18:27 +00:00
|
|
|
url "https://samples.mplayerhq.hu/V-codecs/lm20.avi"
|
2014-08-10 23:15:49 +00:00
|
|
|
sha256 "a0ab512c66d276fd3932aacdd6073f9734c7e246c8747c48bf5d9dd34ac8b392"
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2015-09-02 05:00:20 +00:00
|
|
|
# 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
|
|
|
|
|
2014-08-10 23:15:49 +00:00
|
|
|
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
|