homebrew-core/Formula/vice.rb
Adam Vandenberg f8c6d9977a vice 2.4
2012-12-27 15:45:43 -08:00

35 lines
1,001 B
Ruby

require 'formula'
class Vice < Formula
homepage 'http://vice-emu.sourceforge.net/'
url 'http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/vice-2.4.tar.gz'
sha1 '719aa96cc72e7578983fadea1a31c21898362bc7'
depends_on 'pkg-config' => :build
depends_on 'jpeg'
depends_on :libpng
depends_on 'giflib' => :optional
depends_on 'lame' => :optional
fails_with :llvm do
build 2335
end
def install
# Use Cocoa instead of X
# Use a static lame, otherwise Vice is hard-coded to look in
# /opt for the library.
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-cocoa",
"--without-x",
"--enable-static-lame"
system "make"
system "make bindist"
prefix.install Dir['vice-macosx-*/*']
end
def caveats
"Cocoa apps for these emulators have been installed to #{prefix}."
end
end