48 lines
1.4 KiB
Ruby
48 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"
|
|
revision 1
|
|
head "https://github.com/dubhater/vapoursynth-mvtools.git"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "999e644ce8b4d721081491b0bf504aac96f8021a6bc417e44b4dc78174effeb3" => :sierra
|
|
sha256 "5ebe81cfcff81d1763175660b0305fb3f8661e3435e72b9fa1f1951bd09fb30b" => :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
|