homebrew-core/Formula/residualvm.rb

47 lines
1.6 KiB
Ruby

class Residualvm < Formula
desc "3D graphic adventure game interpreter"
homepage "http://residualvm.org"
url "https://downloads.sourceforge.net/project/residualvm/residualvm/0.2.1/residualvm-0.2.1-sources.tar.bz2"
sha256 "cd2748a665f80b8c527c6dd35f8435e718d2e10440dca10e7765574c7402d924"
head "https://github.com/residualvm/residualvm.git"
bottle do
sha256 "92efc0e5090dc459c1a5b4b79c59e737a3f0c42548d4aeea6c93b6fe695340df" => :sierra
sha256 "74cdadcb02c40721d16aa613ba70fcd09d137cbcc69259444c1cf3cceb924419" => :el_capitan
sha256 "b1aa19050c3ee60834ebcf49f40dc1ec90d246e4d0ca70343218e0f08c3b5e96" => :yosemite
end
option "with-all-engines", "Enable all engines (including broken or unsupported)"
option "with-safedisc", "Enable SafeDisc decryption for Myst III"
depends_on "sdl"
depends_on "libvorbis" => :recommended
depends_on "mad" => :recommended
depends_on "flac" => :recommended
depends_on "libmpeg2" => :optional
depends_on "jpeg" => :recommended
depends_on "libpng" => :recommended
depends_on "theora" => :recommended
depends_on "faad2" => :recommended
depends_on "fluid-synth" => :recommended
depends_on "freetype" => :recommended
def install
args = %W[
--prefix=#{prefix}
--enable-release
]
args << "--enable-all-engines" if build.with? "all-engines"
args << "--enable-safedisc" if build.with? "safedisc"
system "./configure", *args
system "make"
system "make", "install"
(share+"icons").rmtree
(share+"pixmaps").rmtree
end
test do
system "#{bin}/residualvm", "-v"
end
end