2010-12-09 03:30:44 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Mkclean < Formula
|
2011-10-09 03:47:39 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/matroska/mkclean/mkclean-0.8.6.tar.bz2'
|
2010-12-09 03:30:44 +00:00
|
|
|
homepage 'http://www.matroska.org/downloads/mkclean.html'
|
2011-10-09 03:47:39 +00:00
|
|
|
sha1 'dd59c50178c5d1b11190e466c0562ac3cd64cd71'
|
2010-12-09 03:30:44 +00:00
|
|
|
|
|
|
|
def install
|
2011-03-07 06:01:58 +00:00
|
|
|
ENV.j1 # Otherwise there are races
|
2011-04-14 16:39:18 +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:30:44 +00:00
|
|
|
system "./configure"
|
|
|
|
system "make -C mkclean"
|
|
|
|
bindir = `corec/tools/coremake/system_output.sh`.chomp
|
2011-10-09 03:47:39 +00:00
|
|
|
bin.install Dir["release/#{bindir}/mk*"]
|
2010-12-09 03:30:44 +00:00
|
|
|
end
|
|
|
|
end
|