mkvtoolnix v3.3.0
MKVToolnix is a set of tools to create, alter and inspect Matroska files. Signed-off-by: Adam Vandenberg <flangy@gmail.com> * flac and lzo are optional dependencies.
This commit is contained in:
parent
3350290d30
commit
703518f2d1
1 changed files with 30 additions and 0 deletions
30
Formula/mkvtoolnix.rb
Normal file
30
Formula/mkvtoolnix.rb
Normal file
|
@ -0,0 +1,30 @@
|
|||
require 'formula'
|
||||
|
||||
class Mkvtoolnix <Formula
|
||||
url 'http://www.bunkus.org/videotools/mkvtoolnix/sources/mkvtoolnix-3.3.0.tar.bz2'
|
||||
homepage 'http://www.bunkus.org/videotools/mkvtoolnix/'
|
||||
md5 'a002b6537e4515b6a0b26f42e8a2eb9a'
|
||||
|
||||
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}",
|
||||
"--with-boost-regex=boost_regex-mt", # via macports
|
||||
flac_flag,
|
||||
"--disable-gui", "--disable-wxwidgets"
|
||||
system "make"
|
||||
system "make install"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue