2010-12-09 03:30:44 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Mkclean < Formula
|
2010-12-09 03:30:44 +00:00
|
|
|
homepage 'http://www.matroska.org/downloads/mkclean.html'
|
2013-01-29 05:14:57 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/matroska/mkclean/mkclean-0.8.7.tar.bz2'
|
2012-11-16 22:17:46 +00:00
|
|
|
sha1 '21d9dd829086fe13771815481b6c7beeb83aca88'
|
2010-12-09 03:30:44 +00:00
|
|
|
|
2012-03-16 00:04:47 +00:00
|
|
|
def patches
|
2013-06-09 15:21:56 +00:00
|
|
|
# Fixes compile error with XCode-4.3+, a hardcoded /Developer. Reported as:
|
2012-03-16 00:04:47 +00:00
|
|
|
# https://sourceforge.net/tracker/?func=detail&aid=3505611&group_id=68739&atid=522228
|
|
|
|
DATA if MacOS.prefer_64_bit?
|
|
|
|
end
|
2011-04-14 16:39:18 +00:00
|
|
|
|
2012-03-16 00:04:47 +00:00
|
|
|
def install
|
|
|
|
ENV.deparallelize # Otherwise there are races
|
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
|
2012-03-16 00:04:47 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
--- a/corec/tools/coremake/gcc_osx_x64.build 2011-09-25 02:25:46.000000000 -0700
|
|
|
|
+++ b/corec/tools/coremake/gcc_osx_x64.build 2012-03-15 16:27:46.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"
|