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
|
|
|
|
2012-03-16 00:31:06 +00:00
|
|
|
def patches
|
|
|
|
# see https://sourceforge.net/tracker/?group_id=68739&atid=522230
|
|
|
|
DATA if MacOS.prefer_64_bit?
|
|
|
|
end
|
|
|
|
|
2010-12-09 03:26:34 +00:00
|
|
|
def install
|
2011-03-07 06:05:10 +00:00
|
|
|
ENV.j1 # Otherwise there are races
|
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
|
2012-03-16 00:31:06 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
--- a/corec/tools/coremake/gcc_osx_x64.build 2011-09-25 08:01:47.000000000 -0700
|
|
|
|
+++ b/corec/tools/coremake/gcc_osx_x64.build 2012-03-15 17:17:44.000000000 -0700
|
|
|
|
@@ -4,9 +4,9 @@
|
|
|
|
|
|
|
|
PLATFORMLIB = osx_x86
|
|
|
|
SVNDIR = osx_x86
|
|
|
|
-SDK = /Developer/SDKs/MacOSX10.6.sdk
|
|
|
|
|
|
|
|
-CCFLAGS=%(CCFLAGS) -arch x86_64 -mdynamic-no-pic -mmacosx-version-min=10.6
|
|
|
|
+
|
|
|
|
+CCFLAGS=%(CCFLAGS) -arch x86_64 -mdynamic-no-pic
|
|
|
|
ASMFLAGS = -f macho64 -D_MACHO
|
|
|
|
|
|
|
|
#include "gcc_osx.inc"
|