Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import formulae from homebrew/games. #9685

Closed
wants to merge 175 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
457208c
abuse: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
bd4f0cb
advancemame: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
0cf0dfe
advancemenu: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
25f3cb1
advancescan: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
d2cdabd
angband: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
68121e7
angolmois: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
6ab1d39
arx-libertatis: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
a31ddc4
atari800: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
2f70256
avanor: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
137fc0c
ballerburg: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
cef5d0d
bastet: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
c22558f
blastem: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
a0891a6
brogue: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
d46cead
bubbros: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
529161f
c10t: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
2e0a6d0
c2048: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
6820ae0
cataclysm: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
245df7f
cdogs-sdl: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
35a2fe8
cgoban: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
6497e15
cheapglk: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
4d95bc9
cheops: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
da1f1cf
chocolate-doom: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
cd9cd61
ckan: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
1318597
cockatrice: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
1f927f8
color-code: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
19df4bb
corsixth: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
bbd08da
curseofwar: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
7bb103a
dgen: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
88ab54a
dopewars: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
17da0b9
dosbox-x: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
df8c896
dosbox: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
4868c43
dungeon: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
6732550
dwarf-fortress: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
73ab1f3
easyrpg-player: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
0826807
einstein: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
4abd290
ems-flasher: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
9301d85
enigma: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
b889d4a
exult: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
be3a85c
fairymax: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
fd38bac
fceux: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
992fe81
fifechan: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
5d21c33
fizmo: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
743878a
fmsx: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
ceb521f
freeciv: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
5e7a398
frobtads: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
a4a665f
frotz: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
4f11b99
fs-uae: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
f9cf4d8
fuego: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
100adda
fuse-emulator: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
67ac3de
gearboy: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
159b386
gearsystem: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
0ec72ca
git-game: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
c58389f
git-if: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
5aaf8e2
glkterm: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
d51ef8f
glktermw: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
9e32f8f
glulxe: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
a652083
gnu-chess: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
729f823
gnu-go: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
a8f233a
gnu-shogi: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
f6eaf2b
gnuski: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
a690015
go-gui: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
a51496b
gpcslots2: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
95f085d
greed: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
ee2cdf5
guichan: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
a976538
hatari: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
c8deb3b
hexgui: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
04bcac2
homeworlds: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
97f3439
huexpress: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
1427e1d
inform6: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
283f418
instead: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
662ac73
jnethack: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
d197b8b
jpcsp: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
868018e
lcs: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
4e09e77
libggz: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
fcebafe
liblcf: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
a66a1b7
libspectrum: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
e5a24d5
libtcod: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
0aa67dc
lincity-ng: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
f1083e8
magnetix: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
67e0dff
mame: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
76e9bde
mapcrafter: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
06d65d7
mednafen: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
496b00b
mgba: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
c789586
minetest: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
13ac9a8
mkhexgrid: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
43fc272
moon-buggy: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
d145526
mupen64plus: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
606e02d
myman: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
9c4d6e8
naga: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
c98e497
nazghul: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
9e51799
neopop-sdl: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
3e9e79a
nesemu2: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
373e88d
nestopia-ue: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
93c85a2
nethack: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
5f1cac2
nethack4: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
14fd326
nethacked: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
3ab7382
netris: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
abda9fb
nettoe: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
d5e06f2
ninvaders: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
9730e76
np2: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
30b4ba0
npush: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
276b692
nsnake: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
fae14c0
nsuds: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
147a949
nudoku: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
7d27cf4
nuvie: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
1a60fc9
nxengine: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
648d2a8
omega-rpg: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
9e86b75
onscripter: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
46a15e3
open-tyrian: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
78ccacd
openclonk: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
aa2dec6
openjazz: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
280bd27
openmsx: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
a206014
openrct2: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
60962b8
opensyobon: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
2f30285
openttd: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
4a1d827
pachi: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
3ca8148
pacman4console: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
e61d270
pc6001vx: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
76361d7
pioneer: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
a497922
pioneers: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
7463a70
polyglot: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
d547846
ponscripter-sekai: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
ab39b09
ppsspp: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
ea25fea
puzzles: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
8061858
pytouhou: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
eea220c
qdae: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
aa81a7e
qtads: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
8ca8a3a
quasi88: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
db72c26
raine: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
a5df3f9
rawgl: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
cd3a44d
reminiscence: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
78d12a7
residualvm: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
d17adc2
rlvm: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
18035cb
robotfindskitten: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
4cdc2bd
rogue: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
62b6325
roll: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
95eb34d
rom-tools: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
e7621af
scummvm-tools: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
7f4ace8
scummvm: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
b5ef8a8
sdlpop: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
ebfbc6e
simutrans: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
8c5455d
ski: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
5dbbe72
slashem: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
ec4be6b
snescom: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
24ec42f
solarus: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
eabe818
spaceinvaders-go: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
d828bfe
stella: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
b8f2e7c
stockfish: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
12ac62e
stone-soup: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
b8238fa
stormlib: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
0e6cd2d
supermodel: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
9fe125c
supertux: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
59e4272
sz81: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
20e33d3
taisei: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
1a60d85
tty-solitaire: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
6640070
ucon64: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
ec8bb39
ufoai: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
4a51c15
uggconv: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
d5328c4
unnethack: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
50aec77
vecx: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
680f603
vitetris: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
9130313
wesnoth: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
965fb61
widelands: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
2de9a5c
wumpus: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
a65ea7a
xboard: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
213e96b
xmoto: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
e7e6ace
xrick: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
4ecf432
xshogi: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
4be8948
xu4: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
f5432ee
yetris: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
2286a27
zboy: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
2c08ffe
zelda-roth-se: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
57d1a12
zsdx: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
bee11cb
zsxd: import from homebrew/games.
MikeMcQuaid Feb 6, 2017
a7292a8
tap_migrations: remove homebrew/games items.
MikeMcQuaid Feb 7, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 80 additions & 0 deletions Formula/abuse.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
class Abuse < Formula
desc "dark 2D side-scrolling platform game"
homepage "http://abuse.zoy.org/"
url "http://abuse.zoy.org/raw-attachment/wiki/download/abuse-0.8.tar.gz"
sha256 "0104db5fd2695c9518583783f7aaa7e5c0355e27c5a803840a05aef97f9d3488"
head "svn://svn.zoy.org/abuse/abuse/trunk"

bottle do
cellar :any
sha256 "cb60b8b12112e3c18080db23624aa9d3fd9217aff9254f2c6c76df99b4f03284" => :yosemite
sha256 "0ad33d743c8f6bfab8b1a6b0a85657ab27309cd95c2df478439dc3b21dd3cc0b" => :mavericks
sha256 "aeb28d6f8d8ec88838f462619975642649397e9a0122cadbee32e0bd5200fdf6" => :mountain_lion
end

depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "sdl"
depends_on "sdl_mixer"
depends_on "libvorbis"

def startup_script; <<-EOS.undent
#!/bin/bash
#{libexec}/abuse-bin -datadir "#{pkgshare}" "$@"
EOS
end

def install
# Hack to work with newer versions of automake
inreplace "bootstrap", "11 10 9 8 7 6 5", '$(seq -s " " 5 99)'

# Add SDL.m4 to aclocal includes
inreplace "bootstrap",
"aclocal${amvers} ${aclocalflags}",
"aclocal${amvers} ${aclocalflags} -I#{HOMEBREW_PREFIX}/share/aclocal"

# undefined
inreplace "src/net/fileman.cpp", "ushort", "unsigned short"
inreplace "src/sdlport/setup.cpp", "UInt8", "uint8_t"

# Fix autotools obsoletion notice
inreplace "configure.ac", "AM_CONFIG_HEADER", "AC_CONFIG_HEADERS"

# Re-enable OpenGL detection
inreplace "configure.ac",
"#error\t/* Error so the compile fails on OSX */",
"#include <OpenGL/gl.h>"

system "./bootstrap"
system "./configure", "--disable-dependency-tracking",
"--disable-debug",
"--prefix=#{prefix}",
"--disable-sdltest",
"--with-assetdir=#{pkgshare}",
"--with-sdl-prefix=#{Formula["sdl"].opt_prefix}"

# Use Framework OpenGL, not libGl
%w[. src src/imlib src/lisp src/net src/sdlport].each do |p|
inreplace "#{p}/Makefile", "-lGL", "-framework OpenGL"
end

system "make"

bin.install "src/abuse-tool"
libexec.install "src/abuse" => "abuse-bin"
pkgshare.install Dir["data/*"] - %w[data/Makefile data/Makefile.am data/Makefile.in]
# Use a startup script to find the game data
(bin/"abuse").write startup_script
end

def caveats; <<-EOS.undent
Game settings and saves will be written to the ~/.abuse folder.
EOS
end

test do
system "#{bin}/abuse", "--help"
end
end
25 changes: 25 additions & 0 deletions Formula/advancemame.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
class Advancemame < Formula
desc "MAME with advanced video support"
homepage "http://www.advancemame.it/"
url "https://github.com/amadvance/advancemame/releases/download/v3.2/advancemame-3.2.tar.gz"
sha256 "7fd10d765cc1ce38bb463bf4c7d5947619bc08838a8671a9f3da0bc6d76eb822"

bottle do
sha256 "86ab5b13d3eb63cfdba99b900ee6a80826af8485d0d84b84d21c478689f1a37a" => :sierra
sha256 "d74ae874ef51579e2bb7468d66d44d6fbcf8e3d74e02d8482458174f2a100958" => :el_capitan
sha256 "661fadb58b64de9ab525ffb24771639bf7409eb28b1266f49748457ef2df18c7" => :yosemite
end

depends_on "sdl"
depends_on "freetype"

def install
ENV.delete "SDKROOT" if MacOS.version == :yosemite
system "./configure", "--prefix=#{prefix}"
system "make", "install", "LDFLAGS=#{ENV.ldflags}", "mandir=#{man}", "docdir=#{doc}"
end

test do
system "#{bin}/advmame", "--version"
end
end
23 changes: 23 additions & 0 deletions Formula/advancemenu.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
class Advancemenu < Formula
desc "Frontend for AdvanceMAME/MESS"
homepage "http://www.advancemame.it/menu-readme.html"
url "https://github.com/amadvance/advancemame/releases/download/advancemenu-2.9/advancemenu-2.9.tar.gz"
sha256 "c7599da6ff715eb3ad9f7a55973a9aaac2f26740a4e12daf744cf08963d652c1"

bottle do
sha256 "17b87afd785fefa91eb2fc1aa6e1ac4b96869d8f9921c958bb45e27a0beed1f7" => :sierra
sha256 "bfa928fd5353506a31320b9563645c42ce951094b628698992c540cd1fc3260c" => :el_capitan
sha256 "ada2ad9d75ca6887dd4c2e02c8b62fd3281c1146d56f9028bc730721579492ce" => :yosemite
end

depends_on "sdl"

def install
system "./configure", "--prefix=#{prefix}"
system "make", "install", "LDFLAGS=#{ENV.ldflags}", "mandir=#{man}"
end

test do
system bin/"advmenu", "--version"
end
end
24 changes: 24 additions & 0 deletions Formula/advancescan.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
class Advancescan < Formula
desc "Rom manager for AdvanceMAME/MESS"
homepage "http://www.advancemame.it/scan-readme.html"
url "https://github.com/amadvance/advancescan/releases/download/v1.18/advancescan-1.18.tar.gz"
sha256 "8c346c6578a1486ca01774f30c3e678058b9b8b02f265119776d523358d24672"

bottle do
cellar :any
sha256 "4e4908340da96c5102325136a85a6dc9219f867fc34c5294c9e7f4647b0f7c55" => :yosemite
sha256 "a9c25b6429f5635a9c805df9498f404bf2c878ced2f29c7f3bdc909c8c708d19" => :mavericks
sha256 "d3734d89346e3c35de2fb2097ec6cc5ac4938f259c0b9e18c52e2b0e6c5abf34" => :mountain_lion
end

def install
system "./configure", "--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end

test do
system "#{bin}/advdiff", "-V"
system "#{bin}/advscan", "-V"
end
end
57 changes: 57 additions & 0 deletions Formula/angband.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
class Angband < Formula
desc "Dungeon exploration game"
homepage "http://rephial.org/"
url "http://rephial.org/downloads/4.0/angband-4.0.5.tar.gz"
sha256 "0d769a0f349842b0c78cbcd1804a9e08f064e75ca26b957710e4c2a3eb14f852"
head "https://github.com/angband/angband.git"

bottle do
sha256 "7210ffb906d29fbe201b6da58b2d8886286499eb08941af36677202c01b950ff" => :el_capitan
sha256 "a2f85f11478a21dab43c83c8f4174cc5c2be1378000944b4adf93ac66a035bc4" => :yosemite
sha256 "6e6d73ca3026a6f2100a1c60005efcb5c938405365dbf9f70927e29c5bb3c7ba" => :mavericks
end

option "with-cocoa", "Install Cocoa app"

depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on :x11 => :optional
depends_on "homebrew/dupes/tcl-tk" => "with-x11" if build.with? :x11
depends_on "sdl" => :optional
if build.with? "sdl"
depends_on "sdl_image"
depends_on "sdl_ttf"
depends_on "sdl_mixer" => "with-smpeg"
end

def install
ENV["NCURSES_CONFIG"] = "#{MacOS.sdk_path}/usr/bin/ncurses5.4-config"
system "./autogen.sh"
args = %W[
--prefix=#{prefix}
--bindir=#{bin}
--libdir=#{libexec}
--enable-curses
--disable-ncursestest
--disable-sdltest
--with-ncurses-prefix=#{MacOS.sdk_path}/usr
]
args << "--disable-x11" if build.without? :x11
args << "--enable-sdl" if build.with? "sdl"

system "./configure", *args
system "make"
system "make", "install"

if build.with? "cocoa"
cd "src" do
system "make", "-f", "Makefile.osx"
end
prefix.install "Angband.app"
end
end

test do
system bin/"angband", "--help"
end
end
40 changes: 40 additions & 0 deletions Formula/angolmois.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
class Angolmois < Formula
desc "BM98-like rhythm game"
homepage "http://mearie.org/projects/angolmois/"

stable do
url "https://github.com/lifthrasiir/angolmois/archive/angolmois-2.0-alpha2.tar.gz"
version "2.0.0alpha2"
sha256 "97ac3bff8a4800a539b1b823fd1638cedbb9910ebc0cc67196ec55d7720a7005"
depends_on "sdl"
depends_on "sdl_image"
depends_on "sdl_mixer" => "with-smpeg"
depends_on "smpeg"
end

bottle do
cellar :any
sha256 "da08947ee8e73da3a850420332b6c0961e0aee1b9d1a5f44e7653ded789a8bb5" => :el_capitan
sha256 "b23d0e9091916d0a82be335af3eea1cf46b63de95b0c844d486ff5ff5ae45247" => :yosemite
sha256 "e48b08dafd1f8022fd72e1a1e634fb5c47c1ef3430689869c1dffa7585c6148a" => :mavericks
end

head do
url "https://github.com/lifthrasiir/angolmois.git"
depends_on "sdl2"
depends_on "sdl2_image"
depends_on "sdl2_mixer" => "with-smpeg2"
depends_on "smpeg2"
end

depends_on "pkg-config" => :build

def install
system "make"
bin.install "angolmois"
end

test do
assert_equal version.to_s, /Angolmois (\d+\.\d+(?:\.\d+)?) (\w+) (\d+)?/.match(shell_output("#{bin}/angolmois --version")).to_a.drop(1).join
end
end
46 changes: 46 additions & 0 deletions Formula/arx-libertatis.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
class ArxLibertatis < Formula
desc "Cross-platform, open source port of Arx Fatalis"
homepage "https://arx-libertatis.org/"
url "https://arx-libertatis.org/files/arx-libertatis-1.1.2.tar.xz"
sha256 "82adb440a9c86673e74b84abd480cae968e1296d625b6d40c69ca35b35ed4e42"

bottle do
cellar :any
sha256 "c9501246f02d0a560b5c66206f11a77f2398806d1a195280b5efbdb057924891" => :el_capitan
sha256 "4ac17cd6760c07a2fc01902346fd96e25253b0ee6cf171e1ed0855c82d1604ee" => :yosemite
sha256 "8f1938381423b45d798c8a2665484b4f9a09b8070443b80986e935d07b0410af" => :mavericks
end

option "without-innoextract", "Build without arx-install-data"

depends_on "cmake" => :build
depends_on "boost" => :build
depends_on "glm" => :build
depends_on "freetype"
depends_on "glew"
depends_on "innoextract" => :recommended
depends_on "sdl"

def install
mkdir "build" do
system "cmake", "..", *std_cmake_args
system "make"
system "make", "install"
end
end

def caveats
if build.with? "innoextract"; then <<-EOS.undent
This package only contains the Arx Libertatis binary, not the game data.
To play Arx Fatalis you will need to obtain the game from GOG.com and install
the game data with:

arx-install-data /path/to/setup_arx_fatalis.exe
EOS
end
end

test do
system "#{bin}/arx", "-h"
end
end
35 changes: 35 additions & 0 deletions Formula/atari800.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
class Atari800 < Formula
desc "Atari 8-bit machine emulator"
homepage "http://atari800.sourceforge.net/"
url "https://downloads.sourceforge.net/project/atari800/atari800/3.1.0/atari800-3.1.0.tar.gz"
sha256 "901b02cce92ddb0b614f8034e6211f24cbfc2f8fb1c6581ba0097b1e68f91e0c"

bottle do
cellar :any
sha256 "353f79b1bcffec963139639b6fba46df3b9bf950e8f0945c0e743a85863fac32" => :yosemite
sha256 "91854011ad3614180c848105bd6461f9b37b490c9db7ccabc90a265be1ee6bf5" => :mavericks
sha256 "32e0502feed7e38ed3047533b62c27262e7cec2f3c9007b8ba91ff1afcc19fce" => :mountain_lion
end

head do
url "git://git.code.sf.net/p/atari800/source"
depends_on "autoconf" => :build
end

depends_on "sdl"
depends_on "libpng"

def install
chdir "src" do
system "./autogen.sh" if build.head?
system "./configure", "--prefix=#{prefix}",
"--disable-sdltest"
system "make", "install"
end
end

test do
assert_equal "Atari 800 Emulator, Version #{version}",
shell_output("#{bin}/atari800 -v", 3).strip
end
end
37 changes: 37 additions & 0 deletions Formula/avanor.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
class Avanor < Formula
desc "Quick-growing roguelike game with easy ADOM-like UI"
homepage "http://avanor.sourceforge.net/"
url "https://downloads.sourceforge.net/project/avanor/avanor/0.5.8/avanor-0.5.8-src.tar.bz2"
sha256 "8f55be83d985470b9a5220263fc87d0a0a6e2b60dbbc977c1c49347321379ef3"

bottle do
sha256 "89c8215f9e670819e065820a3fd59dee56c7e59f9e304f799f2b319db372f998" => :el_capitan
sha256 "0c8cce6920444c2b7d6ea524bc9881f2e19c6ced735bb4f833cb6e04c49c5ffc" => :yosemite
sha256 "0899dfe6dbc824bdf5b589020063c711c51fde9a6cca87048ec352779c2cbcf1" => :mavericks
end

# Upstream fix for clang: http://sourceforge.net/p/avanor/code/133/
patch :p0 do
url "https://gist.githubusercontent.com/mistydemeo/64f47233ee64d55cb7d5/raw/c1847d7e3a134e6109ad30ce1968919dd962e727/avanor-clang.diff"
sha256 "2d24ce7b71eb7b20485d841aabffa55b25b9074f9a5dd83aee33b7695ba9d75c"
end

def install
system "make", "DATA_DIR=#{pkgshare}/", "CC=#{ENV.cxx}", "LD=#{ENV.cxx}"
bin.install "avanor"
pkgshare.install "manual"
end

test do
script = (testpath/"script.exp")
script.write <<-EOS.undent
#!/usr/bin/expect -f
set timeout 10
spawn avanor
send -- "\e"
expect eof
EOS
script.chmod 0700
system "./script.exp"
end
end
22 changes: 22 additions & 0 deletions Formula/ballerburg.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
class Ballerburg < Formula
desc "Castle combat game"
homepage "http://baller.tuxfamily.org/"
url "http://download.tuxfamily.org/baller/ballerburg-1.2.0.tar.gz"
sha256 "0625f4b213c1180f2cb2179ef2bc6ce35c7e99db2b27306a8690c389ceac6300"
head "http://git.tuxfamily.org/baller/baller.git"

bottle do
cellar :any
sha256 "2a8049ab07afdd51322f517a8ecdab9a13f77a7e49c7fa37a6ba1ed09ced9321" => :yosemite
sha256 "8fe0ceaf918f821a279ccfc312f808610caa95c06ccdab27fe3285eef86f18ff" => :mavericks
sha256 "5fe9dde09b27b72048482631b90a2e185140e3e84e0e33c5ebff57082a31746c" => :mountain_lion
end

depends_on "cmake" => :build
depends_on "sdl"

def install
system "cmake", ".", *std_cmake_args
system "make", "install"
end
end
Loading