2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-23 19:06:17 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Vice < Formula
|
2012-09-26 02:54:08 +00:00
|
|
|
homepage 'http://vice-emu.sourceforge.net/'
|
2012-12-27 23:45:43 +00:00
|
|
|
url 'http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/vice-2.4.tar.gz'
|
|
|
|
sha1 '719aa96cc72e7578983fadea1a31c21898362bc7'
|
2014-03-23 02:51:41 +00:00
|
|
|
revision 1
|
2012-01-04 11:26:53 +00:00
|
|
|
|
2012-09-26 03:20:04 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2012-01-04 11:26:53 +00:00
|
|
|
depends_on 'jpeg'
|
2014-03-23 02:51:41 +00:00
|
|
|
depends_on 'libpng'
|
2012-09-26 03:20:04 +00:00
|
|
|
depends_on 'giflib' => :optional
|
|
|
|
depends_on 'lame' => :optional
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
build 2335
|
|
|
|
end
|
2011-10-15 04:36:38 +00:00
|
|
|
|
2009-09-23 19:06:17 +00:00
|
|
|
def install
|
|
|
|
# Use Cocoa instead of X
|
2012-09-26 03:20:04 +00:00
|
|
|
# Use a static lame, otherwise Vice is hard-coded to look in
|
|
|
|
# /opt for the library.
|
2010-04-07 05:58:35 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2009-09-23 19:06:17 +00:00
|
|
|
"--with-cocoa",
|
2012-09-26 03:20:04 +00:00
|
|
|
"--without-x",
|
2012-12-29 17:34:13 +00:00
|
|
|
"--enable-static-lame",
|
|
|
|
# VICE can't compile against FFMPEG newer than 0.11:
|
|
|
|
# http://sourceforge.net/tracker/?func=detail&aid=3585471&group_id=223021&atid=1057617
|
|
|
|
"--disable-ffmpeg"
|
2009-09-23 19:06:17 +00:00
|
|
|
system "make"
|
|
|
|
system "make bindist"
|
2010-06-09 20:53:04 +00:00
|
|
|
prefix.install Dir['vice-macosx-*/*']
|
2013-10-16 21:00:53 +00:00
|
|
|
bin.install_symlink Dir[prefix/'tools/*']
|
2009-09-23 19:06:17 +00:00
|
|
|
end
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2009-09-23 19:06:17 +00:00
|
|
|
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
|