2010-03-29 18:03:14 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Mkvtoolnix <Formula
|
2010-06-07 07:56:23 +00:00
|
|
|
url 'http://www.bunkus.org/videotools/mkvtoolnix/sources/mkvtoolnix-4.0.0.tar.bz2'
|
2010-03-29 18:03:14 +00:00
|
|
|
homepage 'http://www.bunkus.org/videotools/mkvtoolnix/'
|
2010-06-07 07:56:23 +00:00
|
|
|
md5 '434eb24b9c49a99ac386bd2c4c525538'
|
2010-03-29 18:03:14 +00:00
|
|
|
|
|
|
|
depends_on 'boost'
|
|
|
|
depends_on 'libvorbis'
|
|
|
|
depends_on 'libmatroska'
|
|
|
|
depends_on 'flac' => :optional
|
|
|
|
depends_on 'lzo' => :optional
|
|
|
|
|
|
|
|
def install
|
|
|
|
# as of v3.3.0, doesn't seem to be BSD compatible here
|
|
|
|
inreplace 'handle_deps',
|
|
|
|
%q!sed -e 's:\\.\\(o\\|gch\\)$:.d:'!,
|
|
|
|
%q!sed -E -e 's:\\.(o|gch)$:.d:'!
|
|
|
|
|
|
|
|
flac_flag = Formula.factory('flac').installed? ? "--with-flac" : "--without-flac"
|
|
|
|
|
|
|
|
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-03-29 18:03:14 +00:00
|
|
|
"--with-boost-regex=boost_regex-mt", # via macports
|
|
|
|
flac_flag,
|
|
|
|
"--disable-gui", "--disable-wxwidgets"
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|