homebrew-core/Formula/mkvalidator.rb
nibbles 2bits d674d7d108 mkvalidator 0.4.0
Upgrade mkvalidator to version 0.4.0.
Recreate the patch for the updated file, and don't modify the
`-mmacosx-version-min=10.6`.  There was no reason to affect
the weak linking.
Tested on Lion using clang and llvm-gcc from XCode-4.3.3.

Closes Homebrew/homebrew#12834.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-14 17:04:43 -05:00

32 lines
988 B
Ruby

require 'formula'
class Mkvalidator < Formula
homepage 'http://www.matroska.org/downloads/mkvalidator.html'
url 'http://downloads.sourceforge.net/project/matroska/mkvalidator/mkvalidator-0.4.0.tar.bz2'
sha1 'c1e9fc8de67694f7a3dcb9beb25488db513f8f6f'
def patches
# see https://sourceforge.net/tracker/?group_id=68739&atid=522230
DATA if MacOS.prefer_64_bit?
end
def install
ENV.j1 # Otherwise there are races
system "./configure"
system "make -C mkvalidator"
bindir = `corec/tools/coremake/system_output.sh`.chomp
bin.install "release/#{bindir}/mkvalidator"
end
end
__END__
--- a/corec/tools/coremake/gcc_osx_x64.build 2012-05-13 00:39:54.000000000 -0700
+++ b/corec/tools/coremake/gcc_osx_x64.build 2012-06-14 01:43:02.000000000 -0700
@@ -4,7 +4,6 @@
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
ASMFLAGS = -f macho64 -D_MACHO