homebrew-core/Formula/mjpegtools.rb

33 lines
850 B
Ruby
Raw Normal View History

require 'formula'
class Mjpegtools < Formula
homepage 'http://mjpeg.sourceforge.net/'
2012-03-11 20:47:40 +00:00
url 'http://downloads.sourceforge.net/project/mjpeg/mjpegtools/2.0.0/mjpegtools-2.0.0.tar.gz'
md5 '903e1e3b967eebcc5fe5626d7517dc46'
depends_on 'pkg-config' => :build
depends_on 'jpeg'
depends_on 'libquicktime' => :optional
depends_on 'libdv' => :optional
depends_on 'gtk+' => :optional
depends_on 'sdl_gfx' => :optional
2012-03-11 20:47:40 +00:00
# binaries will fail with missing symbol errors when stripped
skip_clean ['bin']
def options
2012-03-11 20:47:40 +00:00
[["--without-x", "Build without X support"]]
end
def install
ENV.x11
args = ["--disable-dependency-tracking",
"--enable-simd-accel",
"--prefix=#{prefix}"]
args << "--without-x" if ARGV.include? "--without-x"
system "./configure", *args
system "make install"
end
end