2010-03-29 18:03:14 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Mkvtoolnix < Formula
|
2011-09-27 19:31:26 +00:00
|
|
|
url 'http://www.bunkus.org/videotools/mkvtoolnix/sources/mkvtoolnix-5.0.0.tar.bz2'
|
|
|
|
sha1 '9e8d4fafa8f6916b4d92d6ff654906cf5b591c68'
|
2011-05-27 05:02:55 +00:00
|
|
|
head 'https://github.com/mbunkus/mkvtoolnix.git'
|
2010-03-29 18:03:14 +00:00
|
|
|
homepage 'http://www.bunkus.org/videotools/mkvtoolnix/'
|
|
|
|
|
|
|
|
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}",
|
2010-06-07 07:56:23 +00:00
|
|
|
"--with-boost-libdir=#{HOMEBREW_PREFIX}/lib", # For non-/usr/local prefix
|
2010-09-07 09:11:31 +00:00
|
|
|
"--with-boost-regex=boost_regex-mt" # via macports
|
|
|
|
system "./drake -j#{Hardware.processor_count}"
|
|
|
|
system "./drake install"
|
2010-03-29 18:03:14 +00:00
|
|
|
end
|
|
|
|
end
|