homebrew-core/Formula/mkvtoolnix.rb

31 lines
899 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Mkvtoolnix < Formula
homepage 'http://www.bunkus.org/videotools/mkvtoolnix/'
url 'http://www.bunkus.org/videotools/mkvtoolnix/sources/mkvtoolnix-5.0.1.tar.bz2'
sha1 '900211d47ba6cbeb4188bb45a492a2b9edf08ed2'
2011-05-27 05:02:55 +00:00
head 'https://github.com/mbunkus/mkvtoolnix.git'
2012-10-24 17:01:49 +00:00
depends_on 'boost149'
depends_on 'libvorbis'
depends_on 'libmatroska'
depends_on 'flac' => :optional
depends_on 'lzo' => :optional
fails_with :clang do
build 318
cause "Compilation errors with older clang."
end
def install
2012-10-24 17:01:49 +00:00
old_boost = Formula.factory("boost149")
system "./configure", "--disable-debug",
"--prefix=#{prefix}",
2012-10-24 17:01:49 +00:00
"--with-boost=#{old_boost.prefix}",
"--with-boost-regex=boost_regex-mt" # via macports
system "./drake", "-j#{ENV.make_jobs}"
system "./drake install"
end
end