blob: 43c3bd00642f26ea9e87da805bfc715d1f6eb249 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
require 'formula'
class Mjpegtools < Formula
homepage 'http://mjpeg.sourceforge.net/'
url 'http://downloads.sourceforge.net/project/mjpeg/mjpegtools/2.0.0/mjpegtools-2.0.0.tar.gz'
sha1 'f411e8573d446711dbe8455a6ae9257e1afe1e70'
option "with-libquicktime", "Build with Quicktime support"
option "with-libdv", "Build with DV support"
option "with-gtk+", "Build with GTK+ support"
option "with-sdl_gfx", "Build with SDL support"
depends_on 'jpeg'
depends_on 'libquicktime' => :optional if build.include? "with-libquicktime"
depends_on 'libdv' => :optional if build.include? "with-libdv"
depends_on 'gtk+' => :optional if build.include? "with-gtk+"
depends_on 'sdl_gfx' => :optional if build.include? "with-sdl_gfx"
fails_with :clang do
build 421
cause <<-EOS.undent
In file included from newdenoise.cc:19:
./MotionSearcher.hh:2199:3: error: use of undeclared identifier 'DeleteRegion'
EOS
end
def install
args = ["--disable-dependency-tracking",
"--enable-simd-accel",
"--prefix=#{prefix}"]
system "./configure", *args
system "make install"
end
end
|