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>master
parent
29e4b8000f
commit
2c3d9d7d55
|
@ -1,9 +1,9 @@
|
|||
require 'formula'
|
||||
|
||||
class Mkvtoolnix <Formula
|
||||
url 'http://www.bunkus.org/videotools/mkvtoolnix/sources/mkvtoolnix-4.0.0.tar.bz2'
|
||||
url 'http://www.bunkus.org/videotools/mkvtoolnix/sources/mkvtoolnix-4.3.0.tar.bz2'
|
||||
homepage 'http://www.bunkus.org/videotools/mkvtoolnix/'
|
||||
md5 '434eb24b9c49a99ac386bd2c4c525538'
|
||||
sha1 '70ae0d5769d65b032c15eedc01e914be3245779e'
|
||||
|
||||
depends_on 'boost'
|
||||
depends_on 'libvorbis'
|
||||
|
@ -12,20 +12,11 @@ class Mkvtoolnix <Formula
|
|||
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}",
|
||||
"--with-boost-libdir=#{HOMEBREW_PREFIX}/lib", # For non-/usr/local prefix
|
||||
"--with-boost-regex=boost_regex-mt", # via macports
|
||||
flac_flag,
|
||||
"--disable-gui", "--disable-wxwidgets"
|
||||
system "make"
|
||||
system "make install"
|
||||
"--with-boost-regex=boost_regex-mt" # via macports
|
||||
system "./drake -j#{Hardware.processor_count}"
|
||||
system "./drake install"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue