2011-10-27 17:47:03 +00:00
|
|
|
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'
|
2011-10-27 17:47:03 +00:00
|
|
|
md5 '903e1e3b967eebcc5fe5626d7517dc46'
|
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'jpeg'
|
2012-06-07 01:35:12 +00:00
|
|
|
depends_on :x11
|
2011-10-27 17:47:03 +00:00
|
|
|
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
|
2011-10-27 17:47:03 +00:00
|
|
|
skip_clean ['bin']
|
|
|
|
|
|
|
|
def options
|
2012-03-11 20:47:40 +00:00
|
|
|
[["--without-x", "Build without X support"]]
|
2011-10-27 17:47:03 +00:00
|
|
|
end
|
|
|
|
|
2012-06-27 20:01:14 +00:00
|
|
|
fails_with :clang do
|
|
|
|
build 318
|
|
|
|
cause <<-EOS.undent
|
|
|
|
In file included from newdenoise.cc:19:
|
|
|
|
./MotionSearcher.hh:2199:3: error: use of undeclared identifier 'DeleteRegion'
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2011-10-27 17:47:03 +00:00
|
|
|
def install
|
|
|
|
args = ["--disable-dependency-tracking",
|
|
|
|
"--enable-simd-accel",
|
|
|
|
"--prefix=#{prefix}"]
|
2011-11-18 21:12:37 +00:00
|
|
|
args << "--without-x" if ARGV.include? "--without-x"
|
2011-10-27 17:47:03 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|