homebrew-core/Formula/dosbox-x.rb
2019-01-30 15:43:49 +08:00

35 lines
1 KiB
Ruby

class DosboxX < Formula
desc "DOSBox with accurate emulation and wide testing"
homepage "http://dosbox-x.com/"
url "https://github.com/joncampbell123/dosbox-x/archive/dosbox-x-v0.82.14.tar.gz"
sha256 "eda33f10a369fe81d5a4bc6250ca97d3b707cc45e79be66ccfa410174ba77aef"
version_scheme 1
head "https://github.com/joncampbell123/dosbox-x.git"
bottle do
cellar :any
sha256 "3082c131a38cc73d4ed8a5e06d9251bbb23a3b4bbad16da4653b5927f83c256f" => :mojave
sha256 "9fc51a3c234fdc91214ddc29ebccc38560304bcae869db8d4fe884a2af5e3f2a" => :high_sierra
sha256 "d9957978778bc92cee3693f813b8f03f5a12f33ee6f80912fa0cce759e4f5023" => :sierra
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "fluid-synth"
def install
ENV.cxx11
args = %W[
--prefix=#{prefix}
--disable-dependency-tracking
--disable-sdltest
]
system "./build-macosx", *args
system "make", "install"
end
test do
assert_match /DOSBox version #{version}/, shell_output("#{bin}/dosbox-x -version 2>&1", 1)
end
end