forked from ziz/homebrew-games
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openmsx.rb
43 lines (37 loc) · 1.36 KB
/
openmsx.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
class Openmsx < Formula
desc "MSX emulator"
homepage "http://openmsx.org/"
url "https://github.com/openMSX/openMSX/archive/RELEASE_0_11_0.tar.gz"
sha256 "0d83ed98a0a121669b83e22f2a004f945c89ed315bf2f070e6e03d788c4e6512"
head "https://github.com/openMSX/openMSX.git"
bottle do
cellar :any
sha256 "7152747329d9aff212d66c1a22898fc3d9e113a049f6ba888b7c87bac93405cc" => :yosemite
sha256 "25265b5bbe38716ab2147c05cd412ffb1e7f202db2eedcba2bc338611217ff19" => :mavericks
sha256 "ae9fa8361ffca294c613d15fdf614409242a34ddeea940a5874dbfaef4295425" => :mountain_lion
end
option "without-opengl", "Disable OpenGL post-processing renderer"
option "with-laserdisc", "Enable Laserdisc support"
depends_on :python => :build
depends_on "sdl"
depends_on "sdl_ttf"
depends_on "libpng"
depends_on "glew" if build.with? "opengl"
if build.with? "laserdisc"
depends_on "libogg"
depends_on "libvorbis"
depends_on "theora"
end
def install
inreplace "build/custom.mk", "/opt/openMSX", prefix
# Help finding Tcl
inreplace "build/libraries.py", /\((distroRoot), \)/, "(\\1, '/usr', '#{MacOS.sdk_path}/usr')"
system "./configure"
system "make"
prefix.install Dir["derived/**/openMSX.app"]
bin.write_exec_script "#{prefix}/openMSX.app/Contents/MacOS/openmsx"
end
test do
system "#{bin}/openmsx", "-testconfig"
end
end