homebrew-core/Formula/mkvtoolnix.rb
Drew Hess 2c3d9d7d55 mkvtoolnix: 4.3.0.
Most options are auto-detected now, eliminate flags.

Use included drake tool (a wrapper around rake) to install.

Use all hardware procs to build.

No need for handle_deps fixups anymore.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-09-07 03:59:21 -07:00

22 lines
752 B
Ruby

require 'formula'
class Mkvtoolnix <Formula
url 'http://www.bunkus.org/videotools/mkvtoolnix/sources/mkvtoolnix-4.3.0.tar.bz2'
homepage 'http://www.bunkus.org/videotools/mkvtoolnix/'
sha1 '70ae0d5769d65b032c15eedc01e914be3245779e'
depends_on 'boost'
depends_on 'libvorbis'
depends_on 'libmatroska'
depends_on 'flac' => :optional
depends_on 'lzo' => :optional
def install
system "./configure", "--disable-debug",
"--prefix=#{prefix}",
"--with-boost-libdir=#{HOMEBREW_PREFIX}/lib", # For non-/usr/local prefix
"--with-boost-regex=boost_regex-mt" # via macports
system "./drake -j#{Hardware.processor_count}"
system "./drake install"
end
end