2010-12-09 03:26:34 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Mkvalidator < Formula
|
2011-10-09 03:52:30 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/matroska/mkvalidator/mkvalidator-0.3.7.tar.bz2'
|
2010-12-09 03:26:34 +00:00
|
|
|
homepage 'http://www.matroska.org/downloads/mkvalidator.html'
|
2011-10-09 03:52:30 +00:00
|
|
|
sha1 '4dada51d23255dffb4176450b410d6326a72d845'
|
2010-12-09 03:26:34 +00:00
|
|
|
|
|
|
|
def install
|
2011-03-07 06:05:10 +00:00
|
|
|
ENV.j1 # Otherwise there are races
|
2011-04-14 17:46:56 +00:00
|
|
|
|
|
|
|
# For 64-bit kernels, just use the Snow Leopard SDK.
|
|
|
|
inreplace "corec/tools/coremake/gcc_osx_x64.build" do |s|
|
|
|
|
s.gsub! /10\.4u?/, "10.6"
|
|
|
|
end
|
|
|
|
|
2010-12-09 03:26:34 +00:00
|
|
|
system "./configure"
|
|
|
|
system "make -C mkvalidator"
|
|
|
|
bindir = `corec/tools/coremake/system_output.sh`.chomp
|
|
|
|
bin.install "release/#{bindir}/mkvalidator"
|
|
|
|
end
|
|
|
|
end
|