2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-23 19:06:17 +00:00
|
|
|
|
|
|
|
class Vice <Formula
|
2010-03-07 21:08:13 +00:00
|
|
|
url "http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/vice-2.2.tar.gz"
|
|
|
|
md5 "6737f540806205384e9129026898b0a1"
|
2009-11-22 03:59:59 +00:00
|
|
|
homepage 'http://www.viceteam.org/'
|
|
|
|
|
|
|
|
def remove_unused_icons
|
|
|
|
Pathname.glob libexec+'*.app' do |d|
|
|
|
|
appname = File.basename(d, '.app')
|
|
|
|
|
|
|
|
Pathname.glob d+'Contents/Resources/x*.icns' do |g|
|
|
|
|
File.unlink g if File.basename(g, '.icns') != appname
|
|
|
|
end
|
|
|
|
end
|
2009-09-23 19:06:17 +00:00
|
|
|
end
|
2009-11-22 03:59:59 +00:00
|
|
|
|
2009-09-23 19:06:17 +00:00
|
|
|
def install
|
|
|
|
ENV.libpng
|
2009-11-22 03:59:59 +00:00
|
|
|
# Cannot build with LLVM
|
|
|
|
ENV.gcc_4_2
|
2009-09-23 19:06:17 +00:00
|
|
|
|
|
|
|
# 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"
|
|
|
|
|
2010-06-09 20:53:04 +00:00
|
|
|
prefix.install Dir['vice-macosx-*/*']
|
2009-09-23 19:06:17 +00:00
|
|
|
|
2009-11-22 03:59:59 +00:00
|
|
|
remove_unused_icons
|
2009-09-23 19:06:17 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats
|
2010-06-09 20:53:04 +00:00
|
|
|
"Cocoa apps for these emulators have been installed to #{prefix}."
|
2009-09-23 19:06:17 +00:00
|
|
|
end
|
|
|
|
end
|