homebrew-core/Formula/mvtools.rb
2016-10-24 11:25:17 +02:00

47 lines
1.4 KiB
Ruby

class Mvtools < Formula
desc "Filters for motion estimation and compensation"
homepage "https://github.com/dubhater/vapoursynth-mvtools"
url "https://github.com/dubhater/vapoursynth-mvtools/archive/v17.tar.gz"
sha256 "739656d8ea3fb864b72e3e3d167dc1f7fdb8feff4e396cdf9414b367621ca011"
head "https://github.com/dubhater/vapoursynth-mvtools.git"
bottle do
cellar :any
sha256 "818decc6115f204d38f9ff41134943318ad79e44176e85df3daa8a6e0dafe59f" => :sierra
sha256 "80a885159e3e524a103f06aa1450164f6eead929a4701f56fef1aae20d1f750d" => :el_capitan
end
depends_on "pkg-config" => :build
depends_on "yasm" => :build
depends_on "vapoursynth"
depends_on "fftw"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on :macos => :el_capitan # due to zimg
def install
system "./autogen.sh"
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
def caveats
<<-EOS.undent
MVTools will not be autoloaded in your VapourSynth scripts. To use it
use the following code in your scripts:
core.std.LoadPlugin(path="#{HOMEBREW_PREFIX}/lib/libmvtools.dylib")
EOS
end
test do
script = <<-PYTHON.undent.split("\n").join(";")
import vapoursynth as vs
core = vs.get_core()
core.std.LoadPlugin(path="#{HOMEBREW_PREFIX}/lib/libmvtools.dylib")
PYTHON
system "python3", "-c", script
end
end