diff options
| author | Adam Vandenberg | 2009-09-23 12:06:17 -0700 |
|---|---|---|
| committer | Max Howell | 2009-09-29 23:33:22 +0100 |
| commit | 6f05fecfe9e4e6de9f50c9358c2486a751965e68 (patch) | |
| tree | 4fc44869088b979165cee97d6e75e7c540f1954b /Library/Formula | |
| parent | 05dd6b101d9ce31b664b512b48e06250c66e9afe (diff) | |
| download | homebrew-6f05fecfe9e4e6de9f50c9358c2486a751965e68.tar.bz2 | |
Formula for VICE family of Commodore emulators.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/vice.rb | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/Library/Formula/vice.rb b/Library/Formula/vice.rb new file mode 100644 index 000000000..66fb31778 --- /dev/null +++ b/Library/Formula/vice.rb @@ -0,0 +1,59 @@ +require 'brewkit' + +class Vice <Formula + @url='http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/vice-2.1.tar.gz' + @homepage='http://www.viceteam.org/' + @md5='a4cca1aad12e12ac7f37d6c85310ade8' + + def patches + DATA + end + + def install + ENV.libpng + + if MACOS_VERSION == 10.6 + # Cannot build this version under 10.6 with LLVM + ENV.gcc_4_2 + end + + # Update the audio driver for 64 bit, backported from trunk + inreplace 'src/sounddrv/soundcoreaudio.c', + "#ifdef __i386__", + "#if defined(__x86_64__) || defined(__i386__)" + + # Disable the zlibtest, we know we have it. + # Use Cocoa instead of X + system "./configure", "--prefix=#{prefix}", + "--disable-debug", + "--disable-dependency-tracking", + "--with-cocoa", + "--without-x", + "--disable-zlibtest" + system "make" + system "make bindist" + + libexec.install Dir['vice-macosx-*/*'] + + # We could trim down the .app sizes a bit more if we only kept + # the proper .icns files in the proper .app bundles... + end + + def caveats + "Cocoa apps for these emulators have been installed to #{libexec}." + end +end + + +__END__ +--- vice/src/arch/unix/macosx/make-bindist.sh 2009/04/13 09:31:24 20670 ++++ vice/src/arch/unix/macosx/make-bindist.sh 2009/09/09 19:44:00 21480 +@@ -34,6 +34,8 @@ + BIN_FORMAT=ub + elif [ x"$BIN_TYPE" = "xexecutable i386" ]; then + BIN_FORMAT=i386 ++elif [ x"$BIN_TYPE" = "x64-bit executable" ]; then ++ BIN_FORMAT=x86_64 + elif [ x"$BIN_TYPE" = "xexecutable ppc" ]; then + BIN_FORMAT=ppc + else |
