e997784d60
Without GTK being enabled there are no loaders for PNG images, making things less than useful. Enable building --with-gtk Closes Homebrew/homebrew#27240. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
39 lines
787 B
Ruby
39 lines
787 B
Ruby
require "formula"
|
|
|
|
class Mlt < Formula
|
|
homepage "http://www.mltframework.org/"
|
|
url "https://downloads.sourceforge.net/mlt/mlt/mlt-0.9.0.tar.gz"
|
|
sha1 "76bf18f4442801fae963c5a676d6626e383d1617"
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
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
|
|
|
|
def install
|
|
|
|
args = ["--prefix=#{prefix}",
|
|
"--disable-jackrack",
|
|
"--disable-swfdec"]
|
|
|
|
args << "--disable-gtk" if build.without? "gtk"
|
|
|
|
system "./configure", *args
|
|
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
end
|