65 lines
1.8 KiB
Ruby
65 lines
1.8 KiB
Ruby
class Vice < Formula
|
|
desc "Versatile Commodore Emulator"
|
|
homepage "https://sourceforge.net/projects/vice-emu/"
|
|
url "https://downloads.sourceforge.net/project/vice-emu/releases/vice-3.4.tar.gz"
|
|
sha256 "4bd00c1c63d38cd1fe01b90032834b52f774bc29e4b67eeb1e525b14fee07aeb"
|
|
head "https://svn.code.sf.net/p/vice-emu/code/trunk/vice"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "2482ee0bd13df1eb97fb420443b9bdeb7926e625c83a96404791fdcd8ab99f56" => :catalina
|
|
sha256 "00f63203afc84abacd468d5a012fd308a8adbca29ba87b01a2a8d0ac2ac3ad91" => :mojave
|
|
sha256 "236aacd38e7edec5cace94942ccb31ba77f64a6b062dfa35585a5bb87a6206ec" => :high_sierra
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "texinfo" => :build
|
|
depends_on "xa" => :build
|
|
depends_on "yasm" => :build
|
|
depends_on "autoconf"
|
|
depends_on "automake"
|
|
depends_on "ffmpeg"
|
|
depends_on "flac"
|
|
depends_on "giflib"
|
|
depends_on "gtk+3" if build.head?
|
|
depends_on "jpeg"
|
|
depends_on "lame"
|
|
depends_on "libnet"
|
|
depends_on "libogg"
|
|
depends_on "libpng"
|
|
depends_on "libvorbis"
|
|
depends_on "mpg123"
|
|
depends_on "portaudio"
|
|
depends_on "sdl2" unless build.head?
|
|
depends_on "xz"
|
|
|
|
def install
|
|
configure_flags = [
|
|
"--prefix=#{prefix}",
|
|
"--disable-dependency-tracking",
|
|
"--disable-arch",
|
|
"--enable-external-ffmpeg",
|
|
]
|
|
|
|
if build.head?
|
|
configure_flags << "--enable-native-gtk3ui"
|
|
else
|
|
configure_flags << "--enable-sdlui2"
|
|
end
|
|
|
|
system "./autogen.sh"
|
|
system "./configure", *configure_flags
|
|
system "make", "install"
|
|
end
|
|
|
|
def caveats; <<~EOS
|
|
App bundles are no longer built for each emulator. The binaries are
|
|
available in #{HOMEBREW_PREFIX}/bin directly instead.
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
assert_match "Usage", shell_output("#{bin}/petcat -help", 1)
|
|
end
|
|
end
|