2014-03-05 23:48:41 +00:00
|
|
|
require "formula"
|
2013-05-13 21:43:37 +00:00
|
|
|
|
|
|
|
class Mlt < Formula
|
2014-03-05 23:48:41 +00:00
|
|
|
homepage "http://www.mltframework.org/"
|
|
|
|
url "https://downloads.sourceforge.net/mlt/mlt/mlt-0.9.0.tar.gz"
|
|
|
|
sha1 "76bf18f4442801fae963c5a676d6626e383d1617"
|
2013-05-13 21:43:37 +00:00
|
|
|
|
2014-03-05 23:48:41 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2013-05-13 21:43:37 +00:00
|
|
|
|
2014-03-05 23:48:41 +00:00
|
|
|
depends_on "atk"
|
|
|
|
depends_on "ffmpeg"
|
|
|
|
depends_on "frei0r"
|
|
|
|
depends_on "libdv"
|
|
|
|
depends_on "libsamplerate"
|
|
|
|
depends_on "libvorbis"
|
|
|
|
depends_on "sdl"
|
|
|
|
depends_on "sox"
|
|
|
|
|
|
|
|
depends_on "gtk+" => :optional
|
|
|
|
|
|
|
|
if build.with? "gtk"
|
|
|
|
depends_on "pango"
|
|
|
|
depends_on "gdk-pixbuf"
|
|
|
|
end
|
2013-05-13 21:43:37 +00:00
|
|
|
|
|
|
|
def install
|
2014-03-05 23:48:41 +00:00
|
|
|
|
|
|
|
args = ["--prefix=#{prefix}",
|
|
|
|
"--disable-jackrack",
|
|
|
|
"--disable-swfdec"]
|
|
|
|
|
|
|
|
args << "--disable-gtk" if build.without? "gtk"
|
|
|
|
|
|
|
|
system "./configure", *args
|
2013-05-13 21:43:37 +00:00
|
|
|
|
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
end
|