From 457208cc2e4bebabac8e34a005f87d3cf0039097 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:48 +0000 Subject: [PATCH 001/175] abuse: import from homebrew/games. --- Formula/abuse.rb | 80 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 Formula/abuse.rb diff --git a/Formula/abuse.rb b/Formula/abuse.rb new file mode 100644 index 000000000000..e6e0ac720721 --- /dev/null +++ b/Formula/abuse.rb @@ -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 " + + 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 From bd4f0cbe7440bef9385956204efa2abc14d9cae2 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:48 +0000 Subject: [PATCH 002/175] advancemame: import from homebrew/games. --- Formula/advancemame.rb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Formula/advancemame.rb diff --git a/Formula/advancemame.rb b/Formula/advancemame.rb new file mode 100644 index 000000000000..3f7b980791af --- /dev/null +++ b/Formula/advancemame.rb @@ -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 From 0cf0dfeabe99d364a55811e70270ad87ebf7d2a7 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:48 +0000 Subject: [PATCH 003/175] advancemenu: import from homebrew/games. --- Formula/advancemenu.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Formula/advancemenu.rb diff --git a/Formula/advancemenu.rb b/Formula/advancemenu.rb new file mode 100644 index 000000000000..4f2a4c072002 --- /dev/null +++ b/Formula/advancemenu.rb @@ -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 From 25f3cb16f4c7a3664ab960551f222f2442e90c7c Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:48 +0000 Subject: [PATCH 004/175] advancescan: import from homebrew/games. --- Formula/advancescan.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Formula/advancescan.rb diff --git a/Formula/advancescan.rb b/Formula/advancescan.rb new file mode 100644 index 000000000000..f5b27d3bb3f9 --- /dev/null +++ b/Formula/advancescan.rb @@ -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 From d2cdabde592a327f1942516d8dfbe7716492ce83 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:48 +0000 Subject: [PATCH 005/175] angband: import from homebrew/games. --- Formula/angband.rb | 57 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Formula/angband.rb diff --git a/Formula/angband.rb b/Formula/angband.rb new file mode 100644 index 000000000000..ea7155fe5f45 --- /dev/null +++ b/Formula/angband.rb @@ -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 From 68121e7e5736c1f4b10d798498151cb42ff8e98e Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:49 +0000 Subject: [PATCH 006/175] angolmois: import from homebrew/games. --- Formula/angolmois.rb | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Formula/angolmois.rb diff --git a/Formula/angolmois.rb b/Formula/angolmois.rb new file mode 100644 index 000000000000..67476218810d --- /dev/null +++ b/Formula/angolmois.rb @@ -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 From 6ab1d3969db9d1cf230240564de4dd4e1159da43 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:49 +0000 Subject: [PATCH 007/175] arx-libertatis: import from homebrew/games. --- Formula/arx-libertatis.rb | 46 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Formula/arx-libertatis.rb diff --git a/Formula/arx-libertatis.rb b/Formula/arx-libertatis.rb new file mode 100644 index 000000000000..138dc6a5855e --- /dev/null +++ b/Formula/arx-libertatis.rb @@ -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 From a31ddc4919e0c82e6d5c01cbf49cf54bfac19b1d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:49 +0000 Subject: [PATCH 008/175] atari800: import from homebrew/games. --- Formula/atari800.rb | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Formula/atari800.rb diff --git a/Formula/atari800.rb b/Formula/atari800.rb new file mode 100644 index 000000000000..93f30f2c397b --- /dev/null +++ b/Formula/atari800.rb @@ -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 From 2f702565d462d5d48e933cfe6222e04ddf29ca77 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:49 +0000 Subject: [PATCH 009/175] avanor: import from homebrew/games. --- Formula/avanor.rb | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Formula/avanor.rb diff --git a/Formula/avanor.rb b/Formula/avanor.rb new file mode 100644 index 000000000000..a884a774498b --- /dev/null +++ b/Formula/avanor.rb @@ -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 From 137fc0c95169fc6c0c864faae2537efc5a9c7d02 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:49 +0000 Subject: [PATCH 010/175] ballerburg: import from homebrew/games. --- Formula/ballerburg.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Formula/ballerburg.rb diff --git a/Formula/ballerburg.rb b/Formula/ballerburg.rb new file mode 100644 index 000000000000..732329eb1b9f --- /dev/null +++ b/Formula/ballerburg.rb @@ -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 From cef5d0d824a59771b936e2c93b323ae5e7dc5e8d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:49 +0000 Subject: [PATCH 011/175] bastet: import from homebrew/games. --- Formula/bastet.rb | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Formula/bastet.rb diff --git a/Formula/bastet.rb b/Formula/bastet.rb new file mode 100644 index 000000000000..ce53487f0a02 --- /dev/null +++ b/Formula/bastet.rb @@ -0,0 +1,40 @@ +class Bastet < Formula + desc "Bastard Tetris" + homepage "http://fph.altervista.org/prog/bastet.html" + url "https://github.com/fph/bastet/archive/0.43.1.tar.gz" + sha256 "c47a84fb17c2895ea7a85b72ea40a154a03c1114c178ea7fee341215153afcdc" + + bottle do + cellar :any + revision 1 + sha256 "582b03b73c28ef526dcf0c5cb972245f21c10f0d93122ae216afc9667c4c8e83" => :el_capitan + sha256 "f831035af03c3a8541d614dedf5548d0c360ebf5aff9b7eec4a47b6c28a10b45" => :yosemite + sha256 "a2213aee8e63aa7e2fc3b263282b93de7394d034ae36287e53e306b884306e18" => :mavericks + end + + # "friend declaration specifying a default argument must be a definition" + patch do + url "https://github.com/fph/bastet/commit/0323cb477dd5293b5198e4b2f47b4441d90de2d8.patch" + sha256 "244884bed959a13e14560041f0493dc6f39727a5c8da1656b7b83e16cb8be667" + end + + patch do + url "https://github.com/fph/bastet/commit/968324901dae2c80bdbdb40eca1b514498380ba8.patch" + sha256 "f68bd3aa62e4b861b869aca1125f91f90493b6c331a7850bc7b7f3a19989e1ed" + end + + depends_on "boost" + + def install + inreplace %w[Config.cpp bastet.6], "/var", var + + system "make", "all" + + # this must exist for games to be saved globally + (var/"games").mkpath + touch "#{var}/games/bastet.scores2" + + bin.install "bastet" + man6.install "bastet.6" + end +end From c22558f21379b6f0e99538483abaf892368cd562 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:49 +0000 Subject: [PATCH 012/175] blastem: import from homebrew/games. --- Formula/blastem.rb | 66 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 Formula/blastem.rb diff --git a/Formula/blastem.rb b/Formula/blastem.rb new file mode 100644 index 000000000000..f1eaf35bb847 --- /dev/null +++ b/Formula/blastem.rb @@ -0,0 +1,66 @@ +class Blastem < Formula + desc "Fast and accurate Genesis emulator" + homepage "http://rhope.retrodev.com/files/blastem.html" + url "http://rhope.retrodev.com/repos/blastem/archive/1ffa7891b4ec.tar.gz" + version "0.4.1" + sha256 "f9a15d2e381c7eb6f55f12b0d00f3d2779b0b29bea99b422484d6ada250655ba" + head "http://rhope.retrodev.com/repos/blastem", :using => :hg + + bottle do + cellar :any + sha256 "5e3ec7570cc5ee1b1ef04f39ccd67b61733ed6cdb09036d5501962462c262e29" => :el_capitan + sha256 "5daabfa509007c404202a94981bf5b818456852ababcd97fd87731b997eb461f" => :yosemite + sha256 "cc31fd4511fc74c34f224b7bc0ee8aa755aff2e1a296dced84268dcef417cd9c" => :mavericks + end + + depends_on "pkg-config" => :build + depends_on "libpng" => :build # for xcftools + depends_on "glew" + depends_on "sdl2" + + resource "vasm" do + url "http://server.owl.de/~frank/tags/vasm1_7e.tar.gz" + sha256 "2878c9c62bd7b33379111a66649f6de7f9267568946c097ffb7c08f0acd0df92" + end + + resource "xcftools" do + url "http://henning.makholm.net/xcftools/xcftools-1.0.7.tar.gz" + sha256 "1ebf6d8405348600bc551712d9e4f7c33cc83e416804709f68d0700afde920a6" + end + + def install + resource("vasm").stage do + system "make", "CPU=m68k", "SYNTAX=mot" + (buildpath/"tool").install "vasmm68k_mot" + end + + # FIXME: xcftools is not in the core tap + # https://github.com/Homebrew/homebrew-core/pull/1216 + resource("xcftools").stage do + # Apply patch to build with libpng-1.5 or above + # http://anonscm.debian.org/cgit/collab-maint/xcftools.git/commit/?id=c40088b82c6a788792aae4068ddc8458de313a9b + inreplace "xcf2png.c", /png_(voidp|error_ptr)_NULL/, "NULL" + + system "./configure" + + # Avoid `touch` error from empty MANLINGUAS when building without NLS + ENV.deparallelize + touch "manpo/manpages.pot" + system "make", "manpo/manpages.pot" + + system "make" + (buildpath/"tool").install "xcf2png" + end + + ENV.prepend_path "PATH", buildpath/"tool" + + system "make", "menu.bin" + system "make" + libexec.install %w[blastem default.cfg menu.bin rom.db shaders] + bin.write_exec_script libexec/"blastem" + end + + test do + assert_equal "blastem #{version}", shell_output("#{bin}/blastem -b 1 -v").chomp + end +end From a0891a6884e0212e3a1cc79efbd5ace6c7b49ee7 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:49 +0000 Subject: [PATCH 013/175] brogue: import from homebrew/games. --- Formula/brogue.rb | 85 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 Formula/brogue.rb diff --git a/Formula/brogue.rb b/Formula/brogue.rb new file mode 100644 index 000000000000..628c2fddcd0b --- /dev/null +++ b/Formula/brogue.rb @@ -0,0 +1,85 @@ +class Brogue < Formula + desc "Roguelike game" + homepage "https://sites.google.com/site/broguegame/" + + # The OS X version doesn't contain a Makefile, so we + # need to download the Linux version + url "https://sites.google.com/site/broguegame/brogue-1.7.4-linux-amd64.tbz2" + version "1.7.4" + sha256 "eba5f35fe317efad9c97876f117eaf7a26956c435fdd2bc1a5989f0a4f70cfd3" + + # put the highscores file in HOMEBREW_PREFIX/var/brogue/ instead of a + # version-dependent location. + patch :DATA + + bottle do + cellar :any_skip_relocation + sha256 "f5c2b2946ecd5c601b424b3f05181a6716707063de42ab7a27bac1a8c07bc290" => :el_capitan + sha256 "94ed4b691fdaa5dc7de98421b7ebb66fe8ea9d43c427aaa37fba5fc89f287feb" => :yosemite + sha256 "6263ae6a78f59f4a95690c35075b7f3156cddb53063f2c2564024ebc78c0bab2" => :mavericks + end + + def install + (var/"brogue").mkpath + + doc.install "Readme.rtf" => "README.rtf" + doc.install "agpl.txt" => "COPYING" + + system "make", "clean", "curses" + + # The files are installed in libexec + # and the provided `brogue` shell script, + # which is just a convenient way to launch the game, + # is placed in the `bin` directory. + inreplace "brogue", %r{`dirname \$0`/bin$}, libexec + bin.install "brogue" + libexec.install "bin/brogue", "bin/keymap" + end + + def caveats; <<-EOS.undent + If you are upgrading from 1.7.2, you need to copy your highscores file: + cp #{HOMEBREW_PREFIX}/Cellar/#{name}/1.7.2/BrogueHighScores.txt #{var}/brogue/ + EOS + end + + test do + system "#{bin}/brogue", "--version" + end +end + +__END__ +--- a/src/platform/platformdependent.c 2013-10-08 21:53:15.000000000 +0200 ++++ b/src/platform/platformdependent.c 2013-10-08 21:55:22.000000000 +0200 +@@ -75,7 +75,7 @@ + short i; + FILE *scoresFile; + +- scoresFile = fopen("BrogueHighScores.txt", "w"); ++ scoresFile = fopen("HOMEBREW_PREFIX/var/brogue/BrogueHighScores.txt", "w"); + for (i=0; i Date: Mon, 6 Feb 2017 10:26:49 +0000 Subject: [PATCH 014/175] bubbros: import from homebrew/games. --- Formula/bubbros.rb | 80 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 Formula/bubbros.rb diff --git a/Formula/bubbros.rb b/Formula/bubbros.rb new file mode 100644 index 000000000000..75cfc2e7f856 --- /dev/null +++ b/Formula/bubbros.rb @@ -0,0 +1,80 @@ +class Bubbros < Formula + desc "The Bub's Brothers: Clone of the famous Bubble Bobble game" + homepage "http://bub-n-bros.sourceforge.net" + url "https://downloads.sourceforge.net/project/bub-n-bros/bub-n-bros/1.6.2/bubbros-1.6.2.tar.gz" + sha256 "0ad8a359c4632071a9c85c2684bae32aa0fa278632c49f092dc4078cfb9858c4" + + bottle do + cellar :any_skip_relocation + sha256 "54b93573f8d5de0b51eafc9b0c6a2bc4f1d2530b1f31923cf9fcd95a0a098838" => :sierra + sha256 "072b7e03df1d5dbe8ce6e1d8c23251bb3358e3d6106f88f6fb0425142ab7afdc" => :el_capitan + sha256 "6166d83051609c8e9e9a7001a0e75b57e2166a2f93d74194f2d7455581270531" => :yosemite + end + + depends_on :python + depends_on :x11 => :optional + + # Patches from debian https://sources.debian.net/patches/bubbros + patch do + url "https://sources.debian.net/data/main/b/bubbros/1.6.2-1/debian/patches/replace_sf_logo.patch" + sha256 "f984c69efeb1b5052ef7756800e0e386fc3dfac03da49d600db8a463e222d37f" + end + + patch do + url "https://sources.debian.net/data/main/b/bubbros/1.6.2-1/debian/patches/config_in_homedir.patch" + sha256 "2474b4438fb854a29552d5ddefd17a04f478756ea0135b4298b013d9093a228f" + end + + patch do + url "https://sources.debian.net/data/main/b/bubbros/1.6.2-1/debian/patches/disable_runtime_image_building.patch" + sha256 "e96f5233442a54a342409abe8280f2a735d447e9f53b36463dfc0fcfaef53ccb" + end + + patch do + url "https://sources.debian.net/data/main/b/bubbros/1.6.2-1/debian/patches/manpages.patch" + sha256 "ad0bd9b7f822e416d07af53d6720f1bc0ce4775593dd7bd84f3cdba294532f50" + end + + patch do + url "https://sources.debian.net/data/main/b/bubbros/1.6.2-1/debian/patches/remove_shabangs.patch" + sha256 "99ab1326b4b5267fb6c7bdb85b84e184126aa21099bffbedd36adb26b11933db" + end + + def install + system "make", "-C", "bubbob" + system "make", "-C", "display" if build.with? :x11 + system "python", "bubbob/images/buildcolors.py" + + man6.install "doc/BubBob.py.1" => "bubbros.6" + man6.install "doc/Client.py.1" => "bubbros-client.6" + man6.install "doc/bb.py.1" => "bubbros-server.6" + + prefix.install Dir["*"] + + bin.mkpath + (bin/"bubbros").write shim_script("BubBob.py") + (bin/"bubbros-client").write shim_script("display/Client.py") + (bin/"bubbros-server").write shim_script("bubbob/bb.py") + end + + def shim_script(target); <<-EOS.undent + #!/bin/bash + cd "#{prefix}" + python "#{target}" "$@" + EOS + end + + def caveats + s = <<-EOS.undent + The Shared Memory extension of X11 display driver is not supported. + Run the display client with --shm=no + bubbros-client --shm=no + EOS + s if build.with? :x11 + end + + test do + system "#{bin}/bubbros-client --help; test $? -eq 2" + system "#{bin}/bubbros-server --help; test $? -eq 1" + end +end From 529161fb9213efe3df91963da5c4729a2a8a231d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:49 +0000 Subject: [PATCH 015/175] c10t: import from homebrew/games. --- Formula/c10t.rb | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Formula/c10t.rb diff --git a/Formula/c10t.rb b/Formula/c10t.rb new file mode 100644 index 000000000000..8293760df679 --- /dev/null +++ b/Formula/c10t.rb @@ -0,0 +1,49 @@ +class C10t < Formula + desc "Minecraft cartography tool" + homepage "https://github.com/udoprog/c10t" + url "https://github.com/udoprog/c10t/archive/1.7.tar.gz" + sha256 "0e5779d517105bfdd14944c849a395e1a8670bedba5bdab281a0165c3eb077dc" + + bottle do + cellar :any + sha256 "ee486643c14a847b7cc83549ab65049d4ce86dfa92caa31b985cd6751060d16c" => :el_capitan + sha256 "f92f8344c43c7c02351d1e4d6868949c31c97e6a71decac044a7d5b104a67329" => :yosemite + sha256 "77e6d3767099897ef8dab8587a73a19f460c158647cfc67fe82230ecf234c90e" => :mavericks + end + + depends_on "cmake" => :build + depends_on "boost" + depends_on "freetype" + + # Needed to compile against newer boost + # Can be removed for the next version of c10t after 1.7 + # See: https://github.com/udoprog/c10t/pull/153 + patch do + url "https://github.com/udoprog/c10t/commit/4a392b9f06d08c70290f4c7591e84ecdbc73d902.diff" + sha256 "f2d7b1772672f7769adab0eaf081887399de772e72ad1fa53caa0856d50b9a8a" + end + + # Fix freetype detection; adapted from this upstream commit: + # https://github.com/udoprog/c10t/commit/2a2b8e49d7ed4e51421cc71463c1c2404adc6ab1 + patch do + url "https://gist.githubusercontent.com/mistydemeo/f7ab02089c43dd557ef4/raw/a0ae7974e635b8ebfd02e314cfca9aa8dc95029d/c10t-freetype.diff" + sha256 "9fbb7ccc643589ac1d648e105369e63c9220c26d22f7078a1f40b27080d05db4" + end + + # Ensure zlib header is included for libpng; fixed upstream + patch do + url "https://github.com/udoprog/c10t/commit/800977bb23e6b4f9da3ac850ac15dd216ece0cda.diff" + sha256 "4c8953bdc46b1b2063abe0d1768e7116b9092d49f16161732e39e4abb5622ec1" + end + + def install + inreplace "test/CMakeLists.txt", "boost_unit_test_framework", "boost_unit_test_framework-mt" + system "cmake", ".", *std_cmake_args + system "make" + bin.install "c10t" + end + + test do + system "#{bin}/c10t", "--list-colors" + end +end From 2e0a6d016385bec448ee8f26acd7d4a9846c35c6 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:50 +0000 Subject: [PATCH 016/175] c2048: import from homebrew/games. --- Formula/c2048.rb | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Formula/c2048.rb diff --git a/Formula/c2048.rb b/Formula/c2048.rb new file mode 100644 index 000000000000..25d7101dbed1 --- /dev/null +++ b/Formula/c2048.rb @@ -0,0 +1,32 @@ +class C2048 < Formula + desc "Console version of 2048" + homepage "https://github.com/mevdschee/2048.c" + url "https://github.com/mevdschee/2048.c.git", :revision => "578a5f314e1ce31b57e645a8c0a2c9d9d5539cde" + version "0+20150805" + head "https://github.com/mevdschee/2048.c.git" + + bottle do + cellar :any_skip_relocation + sha256 "150f562e3a85e962e576fe172353fc709483cb9b49f47dd05b0248fb0b238f0e" => :el_capitan + sha256 "aedb7caed6f1bfeb343a12df5cb62b060a92cbfb27f22af6d4aede12968d92c2" => :yosemite + sha256 "bfee60cbfe49b6f5b4a4dc14f6f83a7e521f7c5fe651dd701307dd185de798e5" => :mavericks + end + + def install + system "make" + bin.install "2048" + end + + def caveats; <<-EOS.undent + The game supports different color schemes. + For the black-to white: + 2048 blackwhite + For the blue-to-red: + 2048 bluered + EOS + end + + test do + system "#{bin}/2048", "test" + end +end From 6820ae07f69c441306edd4b0b8362996603416d4 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:50 +0000 Subject: [PATCH 017/175] cataclysm: import from homebrew/games. --- Formula/cataclysm.rb | 60 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Formula/cataclysm.rb diff --git a/Formula/cataclysm.rb b/Formula/cataclysm.rb new file mode 100644 index 000000000000..33540c52c2ff --- /dev/null +++ b/Formula/cataclysm.rb @@ -0,0 +1,60 @@ +class Cataclysm < Formula + desc "Fork/variant of Cataclysm Roguelike" + homepage "https://github.com/CleverRaven/Cataclysm-DDA" + url "https://github.com/CleverRaven/Cataclysm-DDA/archive/0.C.tar.gz" + version "0.C" + sha256 "69e947824626fffb505ca4ec44187ec94bba32c1e5957ba5c771b3445f958af6" + + head "https://github.com/CleverRaven/Cataclysm-DDA.git" + + bottle do + cellar :any + revision 1 + sha256 "d971aada9f12856f4821060da28dd27c279f5c9fdbd5e5b986f0b1625bac8c8f" => :el_capitan + sha256 "2a85ba8077717c40e87ff3534f2a16303ec9b7534de435ec5f4c8d03bb5a90a7" => :yosemite + sha256 "48e06785a79eb82ee72d180dc88b400fd0875026f21e0bb69a03ccd0aa9bb506" => :mavericks + end + + option "with-tiles", "Enable tileset support" + + needs :cxx11 + + depends_on "gettext" + # needs `set_escdelay`, which isn't present in system ncurses before 10.6 + depends_on "homebrew/dupes/ncurses" if MacOS.version < :snow_leopard + + if build.with? "tiles" + depends_on "sdl2" + depends_on "sdl2_image" + depends_on "sdl2_ttf" + end + + def install + ENV.cxx11 + + # cataclysm tries to #import , but Homebrew ncurses installs no + # top-level headers + ENV.append_to_cflags "-I#{Formula["ncurses"].include}/ncursesw" if MacOS.version < :snow_leopard + + args = %W[ + NATIVE=osx RELEASE=1 OSX_MIN=#{MacOS.version} + ] + + args << "TILES=1" if build.with? "tiles" + args << "CLANG=1" if ENV.compiler == :clang + + system "make", *args + + # no make install, so we have to do it ourselves + if build.with? "tiles" + libexec.install "cataclysm-tiles", "data", "gfx" + else + libexec.install "cataclysm", "data" + end + + inreplace "cataclysm-launcher" do |s| + s.change_make_var! "DIR", libexec + end + bin.install "cataclysm-launcher" => "cataclysm" + end +end From 245df7ff9c613d1af67d847f103a0e33dce52b1a Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:50 +0000 Subject: [PATCH 018/175] cdogs-sdl: import from homebrew/games. --- Formula/cdogs-sdl.rb | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Formula/cdogs-sdl.rb diff --git a/Formula/cdogs-sdl.rb b/Formula/cdogs-sdl.rb new file mode 100644 index 000000000000..371f0e11fc5e --- /dev/null +++ b/Formula/cdogs-sdl.rb @@ -0,0 +1,38 @@ +class CdogsSdl < Formula + desc "Classic overhead run-and-gun game" + homepage "https://cxong.github.io/cdogs-sdl/" + url "https://github.com/cxong/cdogs-sdl/archive/0.6.2.tar.gz" + sha256 "d6f421c760b15b706bdfc79ed8d18802dc2e8efeefabb69a31679c9b51f328ab" + head "https://github.com/cxong/cdogs-sdl.git" + + bottle do + sha256 "d9d3ee8835fb9af9c08ec84b9b59e632a4f40485497bff41c42e062bab5f33e2" => :el_capitan + sha256 "e0d3a2a9402ac81328412c55042ebb7ebc8ff57c5499ffb1e8d0e6e7d57a34bd" => :yosemite + sha256 "ba448b78e268752f265ac42e40a1e6e24a6f0063073eb814c9149f8d82ee1393" => :mavericks + end + + depends_on "cmake" => :build + depends_on "pkg-config" => :build + depends_on "sdl2" + depends_on "sdl2_image" + depends_on "sdl2_mixer" + + def install + args = std_cmake_args + args << "-DCDOGS_DATA_DIR=#{pkgshare}/" + system "cmake", ".", *args + system "make" + prefix.install "src/cdogs-sdl.app" + bin.write_exec_script "#{prefix}/cdogs-sdl.app/Contents/MacOS/cdogs-sdl" + pkgshare.install ["data", "dogfights", "graphics", "missions", "music", "sounds"] + doc.install Dir["doc/*"] + end + + test do + server = fork do + system "#{bin}/cdogs-sdl" + end + sleep 5 + Process.kill("TERM", server) + end +end From 35a2fe835012550c7917371fa545a4b7a8b29aca Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:50 +0000 Subject: [PATCH 019/175] cgoban: import from homebrew/games. --- Formula/cgoban.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Formula/cgoban.rb diff --git a/Formula/cgoban.rb b/Formula/cgoban.rb new file mode 100644 index 000000000000..1fd4ea311185 --- /dev/null +++ b/Formula/cgoban.rb @@ -0,0 +1,23 @@ +class Cgoban < Formula + desc "Go-related services" + homepage "http://www.igoweb.org/~wms/comp/cgoban/index.html" + url "http://www.igoweb.org/~wms/comp/cgoban/cgoban-1.9.12.tar.gz" + sha256 "b9e8b0d2f793fecbc26803d673de11d8cdc88af9d286a6d49b7523f8b4fa20e1" + + depends_on :x11 + + def install + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--disable-silent-rules" + + bin.mkpath + man6.mkpath + + system "make", "install", "PREFIX=#{prefix}", "MANDIR=#{man}" + end + + test do + system "#{bin}/cgoban", "--version" + end +end From 6497e152ee5301965310e8b5a82dc9e52e4d4d0e Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:50 +0000 Subject: [PATCH 020/175] cheapglk: import from homebrew/games. --- Formula/cheapglk.rb | 46 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Formula/cheapglk.rb diff --git a/Formula/cheapglk.rb b/Formula/cheapglk.rb new file mode 100644 index 000000000000..da8f85e690ae --- /dev/null +++ b/Formula/cheapglk.rb @@ -0,0 +1,46 @@ +class Cheapglk < Formula + desc "Extremely minimal Glk library" + homepage "http://www.eblong.com/zarf/glk/index.html" + url "http://www.eblong.com/zarf/glk/cheapglk-104.tar.gz" + version "1.0.4" + sha256 "87f1c0a1f2df7b6dc9e34a48b026b0c7bc1752b9a320e5cda922df32ff40cb57" + + bottle do + cellar :any_skip_relocation + sha256 "148667db31db5635af17eafb3c564a3fcf498a8631dd5e42aaa09b11613725da" => :sierra + sha256 "ebf0b9e232857c385f3fa7ddbda6c338c38d516405b65db4c044cc717723f3d0" => :el_capitan + sha256 "0e82e6dfff4bf8964a29eaef3f8f9b0f1c8ee6a9f8dc3293060539bcbc4684c2" => :yosemite + end + + keg_only "Conflicts with other Glk libraries" + + def install + system "make" + + lib.install "libcheapglk.a" + include.install "glk.h", "glkstart.h", "gi_blorb.h", "gi_dispa.h", "Make.cheapglk" + end + + test do + (testpath/"test.c").write <<-EOS.undent + #include "glk.h" + #include "glkstart.h" + + glkunix_argumentlist_t glkunix_arguments[] = { + { NULL, glkunix_arg_End, NULL } + }; + + int glkunix_startup_code(glkunix_startup_t *data) + { + return TRUE; + } + + void glk_main() + { + glk_exit(); + } + EOS + system ENV.cc, "test.c", "-I#{include}", "-L#{lib}", "-lcheapglk", "-o", "test" + system "echo test | ./test" + end +end From 4d95bc98a19c89ab5205553ec9b1db05457da9b1 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:50 +0000 Subject: [PATCH 021/175] cheops: import from homebrew/games. --- Formula/cheops.rb | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Formula/cheops.rb diff --git a/Formula/cheops.rb b/Formula/cheops.rb new file mode 100644 index 000000000000..1cf85441ce5c --- /dev/null +++ b/Formula/cheops.rb @@ -0,0 +1,26 @@ +class Cheops < Formula + desc "CHEss OPponent Simulator" + homepage "http://en.nothingisreal.com/wiki/CHEOPS" + url "http://files.nothingisreal.com/software/cheops/cheops-1.2.tar.bz2" + sha256 "60aabc9f193d62028424de052c0618bb19ee2ccfa6a99b74a33968eba4c8abad" + + bottle do + cellar :any + sha256 "1640d418df9b54a929efb7a176acd01e05b17a032cc5bf3a259044c800ea7f82" => :yosemite + sha256 "97bbc31c165d2cfa37d87bfea045e459ae98bcb0f8c1f01d07dd3620bf60831d" => :mavericks + sha256 "7584ac4bcb11e2d3bf970dca2da588eb5c1c5f9bcd63e1305f71fef12c56d72d" => :mountain_lion + end + + def install + # Avoid ambiguous std::move issue with libc++ + ENV.libstdcxx + + system "./configure", "--disable-dependency-tracking", + "--prefix=#{prefix}" + system "make", "install" + end + + test do + system "#{bin}/cheops", "--version" + end +end From da1f1cfd458e9c9a796d7df4240b1e039dd1f3ce Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:50 +0000 Subject: [PATCH 022/175] chocolate-doom: import from homebrew/games. --- Formula/chocolate-doom.rb | 47 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Formula/chocolate-doom.rb diff --git a/Formula/chocolate-doom.rb b/Formula/chocolate-doom.rb new file mode 100644 index 000000000000..e812f4f898be --- /dev/null +++ b/Formula/chocolate-doom.rb @@ -0,0 +1,47 @@ +class ChocolateDoom < Formula + desc "Accurate source port of Doom" + homepage "http://www.chocolate-doom.org/" + url "http://www.chocolate-doom.org/downloads/2.2.1/chocolate-doom-2.2.1.tar.gz" + sha256 "ad11e2871667c6fa0658abf2dcba0cd9b26fbd651ee8df55adfdc18ad8fd674a" + + bottle do + cellar :any + revision 1 + sha256 "1672f5f2388e3fb0a5c9541b645090d27aaef07c9b6de516e64bd63c86f0b635" => :el_capitan + sha256 "219a149ac91fcefdbecffec5ee8d2164453dbd7b03674b6aa279b700203b21ba" => :yosemite + sha256 "6a6b0e67cd0be2f3476dd16ff6e6cb8e2b702a212f979048999f5a4c0d2c929e" => :mavericks + end + + head do + url "https://github.com/chocolate-doom/chocolate-doom.git" + depends_on "automake" => :build + depends_on "autoconf" => :build + end + + depends_on "sdl" + depends_on "sdl_net" + depends_on "sdl_mixer" + depends_on "libsamplerate" => :recommended + depends_on "libpng" => :recommended + + def install + system "./autogen.sh" if build.head? + system "./configure", "--prefix=#{prefix}", + "--disable-dependency-tracking", + "--disable-silent-rules", + "--disable-sdltest" + system "make", "install", "execgamesdir=#{bin}" + (share/"applications").rmtree + (share/"icons").rmtree + end + + def caveats; <<-EOS.undent + Note that this formula only installs a Doom game engine, and no + actual levels. The original Doom levels are still under copyright, + so you can copy them over and play them if you already own them. + Otherwise, there are tons of free levels available online. + Try starting here: + #{homepage} + EOS + end +end From cd9cd6149ca475b86d0a1c6b1b2cd0de5e71338d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:50 +0000 Subject: [PATCH 023/175] ckan: import from homebrew/games. --- Formula/ckan.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Formula/ckan.rb diff --git a/Formula/ckan.rb b/Formula/ckan.rb new file mode 100644 index 000000000000..a96bc2e49313 --- /dev/null +++ b/Formula/ckan.rb @@ -0,0 +1,23 @@ +class Ckan < Formula + desc "The Comprehensive Kerbal Archive Network" + homepage "https://github.com/KSP-CKAN/CKAN/" + url "https://github.com/KSP-CKAN/CKAN/releases/download/v1.22.1/ckan.exe", :using => :nounzip + version "1.22.1" + sha256 "171eda7109902aaca387fac09b5d2815bd3e23ed76cc30223c6ec7095a600228" + + bottle :unneeded + + depends_on "mono" + + def install + (libexec/"bin").install "ckan.exe" + (bin/"ckan").write <<-EOS.undent + #!/bin/sh + exec mono "#{libexec}/bin/ckan.exe" "$@" + EOS + end + + test do + system bin/"ckan", "version" + end +end From 1318597b4671d33604426398d749fcf0abcdb19c Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:50 +0000 Subject: [PATCH 024/175] cockatrice: import from homebrew/games. --- Formula/cockatrice.rb | 48 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Formula/cockatrice.rb diff --git a/Formula/cockatrice.rb b/Formula/cockatrice.rb new file mode 100644 index 000000000000..040b9e4a7d0f --- /dev/null +++ b/Formula/cockatrice.rb @@ -0,0 +1,48 @@ +class Cockatrice < Formula + desc "Virtual tabletop for multiplayer card games" + homepage "https://github.com/Cockatrice/Cockatrice" + url "https://github.com/Cockatrice/Cockatrice.git", + :tag => "2017-01-20-Release", + :revision => "dab731656dd5856ca293e2660e142cc215acc66e" + version "2017-01-20" + head "https://github.com/Cockatrice/Cockatrice.git" + + bottle do + sha256 "28ca464cbca6f17fc400492e4de9469c2fc173d3606e69bb5b95e5e6a8e5a79d" => :sierra + sha256 "34452dcfaa59ae77aa4b99f6c53f61b6fdbccef073c7ee5cefdb7710123089b2" => :el_capitan + sha256 "08ec954750f83ec2f3ff9d79d078072830ed8e68aa32c8cbfbd15538e0197d2f" => :yosemite + end + + option "with-server", "Build `servatrice` for running game servers" + + depends_on :macos => :mavericks + depends_on "cmake" => :build + depends_on "protobuf" + + if build.with? "server" + depends_on "qt5" => "with-mysql" + else + depends_on "qt5" + end + + fails_with :clang do + build 503 + cause "Undefined symbols for architecture x86_64: google::protobuf" + end + + def install + mkdir "build" do + args = std_cmake_args + args << "-DWITH_SERVER=ON" if build.with? "server" + system "cmake", "..", *args + system "make", "install" + prefix.install Dir["release/*.app"] + end + doc.install Dir["doc/usermanual/*"] + end + + test do + (prefix/"cockatrice.app/Contents/MacOS/cockatrice").executable? + (prefix/"oracle.app/Contents/MacOS/oracle").executable? + end +end From 1f927f80a9b7997b837459a4cbad6f9c12c38f79 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:50 +0000 Subject: [PATCH 025/175] color-code: import from homebrew/games. --- Formula/color-code.rb | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Formula/color-code.rb diff --git a/Formula/color-code.rb b/Formula/color-code.rb new file mode 100644 index 000000000000..d80a307a5de2 --- /dev/null +++ b/Formula/color-code.rb @@ -0,0 +1,26 @@ +class ColorCode < Formula + desc "Free advanced MasterMind clone" + homepage "http://colorcode.laebisch.com/" + url "http://colorcode.laebisch.com/download/ColorCode-0.8.5.tar.gz" + sha256 "7c128db12af6ab11439eb710091b4a448100553a4d11d3a7c8dafdfbc57c1a85" + + bottle do + cellar :any + sha256 "92a73a595c94c657676c5b0380c3a6aef9de725e88dde65656e9848e0fe81605" => :el_capitan + sha256 "c10fcb700a0c47abef3727c17dd689215e164102a16ac3aad9444f29b7fb9139" => :yosemite + sha256 "e06d67b2033015f2112fdee7dcd20de8057aa112be7cd156f87c0e0b36e19ba7" => :mavericks + end + + depends_on "qt5" + + def install + system "qmake" + system "make" + prefix.install "ColorCode.app" + bin.write_exec_script "#{prefix}/ColorCode.app/Contents/MacOS/colorcode" + end + + test do + system "#{bin}/colorcode", "-h" + end +end From 19df4bb0df07fd1f4b1bb2507b6784bec383cebc Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:50 +0000 Subject: [PATCH 026/175] corsixth: import from homebrew/games. --- Formula/corsixth.rb | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Formula/corsixth.rb diff --git a/Formula/corsixth.rb b/Formula/corsixth.rb new file mode 100644 index 000000000000..0a94f0373994 --- /dev/null +++ b/Formula/corsixth.rb @@ -0,0 +1,30 @@ +class Corsixth < Formula + desc "Open source clone of Theme Hospital" + homepage "https://github.com/CorsixTH/CorsixTH" + url "https://github.com/CorsixTH/CorsixTH/archive/v0.60.tar.gz" + sha256 "f5ff7839b6469f1da39804de1df0a86e57b45620c26f044a1700e43d8da19ce9" + head "https://github.com/CorsixTH/CorsixTH" + + bottle :disable, "LuaRocks requirements preclude bottling" + + depends_on "cmake" => :build + depends_on :xcode => :build + + depends_on "ffmpeg" + depends_on "freetype" + depends_on "lua" + depends_on "sdl2" + depends_on "sdl2_mixer" + + depends_on "lpeg" => :lua + depends_on "luafilesystem" => :lua + + def install + ENV["TARGET_BUILD_DIR"] = "." + ENV["FULL_PRODUCT_NAME"] = "CorsixTH.app" + system "cmake", ".", *std_cmake_args + system "make" + prefix.install "CorsixTH/CorsixTH.app" + bin.write_exec_script "#{prefix}/CorsixTH.app/Contents/MacOS/CorsixTH" + end +end From bbd08daf6369ed1f2aa51ba9e6f47783c2d374bb Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:51 +0000 Subject: [PATCH 027/175] curseofwar: import from homebrew/games. --- Formula/curseofwar.rb | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Formula/curseofwar.rb diff --git a/Formula/curseofwar.rb b/Formula/curseofwar.rb new file mode 100644 index 000000000000..ef5ab7363d08 --- /dev/null +++ b/Formula/curseofwar.rb @@ -0,0 +1,34 @@ +class Curseofwar < Formula + desc "Fast-paced action strategy game" + homepage "https://a-nikolaev.github.io/curseofwar/" + url "https://github.com/a-nikolaev/curseofwar/archive/v1.2.0.tar.gz" + sha256 "91b7781e26341faa6b6999b6baf6e74ef532fa94303ab6a2bf9ff6d614a3f670" + head "https://github.com/a-nikolaev/curseofwar.git" + + bottle do + cellar :any_skip_relocation + sha256 "88605368194a451067920d6be53b2545a13180ba1ce74f6df2488a4f2c39609b" => :el_capitan + sha256 "510f0fef5ed3355099a297a6588b1d9e94734a42b61c3d42bd336cf0706cb82d" => :yosemite + sha256 "02a4add2f36df3da44a71cd5f7e9a367abdfc43a272559c14d41f0a9d68cdce8" => :mavericks + end + + depends_on "sdl" => :optional + + def install + system "make" + bin.install "curseofwar" + man6.install "curseofwar.6" + + if build.with? "sdl" + system "make", "SDL=yes" + bin.install "curseofwar-sdl" + man6.install "curseofwar-sdl.6" + pkgshare.install "images" + end + end + + test do + assert_equal version.to_s, shell_output("#{bin}/curseofwar -v", 1).chomp + assert_equal version.to_s, shell_output("#{bin}/curseofwar-sdl -v", 1).chomp if build.with? "sdl" + end +end From 7bb103af4dea3301c0d12bd644a35e3ef3603d96 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:51 +0000 Subject: [PATCH 028/175] dgen: import from homebrew/games. --- Formula/dgen.rb | 50 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Formula/dgen.rb diff --git a/Formula/dgen.rb b/Formula/dgen.rb new file mode 100644 index 000000000000..1f6a7cfb819d --- /dev/null +++ b/Formula/dgen.rb @@ -0,0 +1,50 @@ +class Dgen < Formula + desc "Sega Genesis / Mega Drive emulator" + homepage "http://dgen.sourceforge.net/" + url "https://downloads.sourceforge.net/project/dgen/dgen/1.33/dgen-sdl-1.33.tar.gz" + sha256 "99e2c06017c22873c77f88186ebcc09867244eb6e042c763bb094b02b8def61e" + bottle do + cellar :any + sha256 "5379f2bf8ba906aeb913c9aedfff0ba532446649a50b76ef5ff1908e6818921c" => :yosemite + sha256 "40b6276a88b0476ad9f9b6863bc771d75c32a88fc3c9046ccc719164adbdd29d" => :mavericks + sha256 "83fe75efa17f0c2e9d09ae8e08e8346b3e80c938148dd17c853b52627079b506" => :mountain_lion + end + + head do + url "git://git.code.sf.net/p/dgen/dgen" + depends_on "automake" => :build + depends_on "autoconf" => :build + end + + option "with-docs", "Build documentation" + option "with-debugger", "Enable debugger" + + depends_on "sdl" + depends_on "libarchive" + depends_on "doxygen" if build.with? "docs" + + def install + args = %W[ + --disable-silent-rules + --disable-dependency-tracking + --disable-sdltest + --prefix=#{prefix} + ] + if build.with? "debugger" + args << "--enable-debugger" + end + system "./autogen.sh" if build.head? + system "./configure", *args + system "make", "install" + end + + def caveats; <<-EOS.undent + If some keyboard inputs do not work, try modifying configuration: + ~/.dgen/dgenrc + EOS + end + + test do + assert_equal "DGen/SDL version #{version}", shell_output("#{bin}/dgen -v").chomp + end +end From 88ab54aa7e478e2633797a37865bea15f69fa795 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:51 +0000 Subject: [PATCH 029/175] dopewars: import from homebrew/games. --- Formula/dopewars.rb | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Formula/dopewars.rb diff --git a/Formula/dopewars.rb b/Formula/dopewars.rb new file mode 100644 index 000000000000..388b210f1419 --- /dev/null +++ b/Formula/dopewars.rb @@ -0,0 +1,28 @@ +class Dopewars < Formula + desc 'Free rewrite of a game originally based on "Drug Wars"' + homepage "http://dopewars.sourceforge.net" + url "https://downloads.sourceforge.net/project/dopewars/dopewars/1.5.12/dopewars-1.5.12.tar.gz" + sha256 "23059dcdea96c6072b148ee21d76237ef3535e5be90b3b2d8239d150feee0c19" + + depends_on "pkg-config" => :build + depends_on "glib" + + def install + inreplace "src/Makefile.in", "$(dopewars_DEPENDENCIES)", "" + inreplace "ltmain.sh", "need_relink=yes", "need_relink=no" + inreplace "src/plugins/Makefile.in", "LIBADD =", "LIBADD = -module -avoid-version" + system "./configure", "--disable-gui-client", + "--disable-gui-server", + "--enable-plugins", + "--enable-networking", + "--prefix=#{prefix}", + "--mandir=#{man}", + "--disable-debug", + "--disable-dependency-tracking" + system "make", "install" + end + + test do + system "#{bin}/dopewars", "-v" + end +end From 17da0b97808c29a78720816d4971740fea7b0793 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:51 +0000 Subject: [PATCH 030/175] dosbox-x: import from homebrew/games. --- Formula/dosbox-x.rb | 48 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Formula/dosbox-x.rb diff --git a/Formula/dosbox-x.rb b/Formula/dosbox-x.rb new file mode 100644 index 000000000000..80dfe7883ce3 --- /dev/null +++ b/Formula/dosbox-x.rb @@ -0,0 +1,48 @@ +class DosboxX < Formula + desc "DOSBox with accurate emulation and wide testing" + homepage "http://dosbox-x.com/" + head "https://github.com/joncampbell123/dosbox-x.git" + + stable do + url "https://github.com/joncampbell123/dosbox-x/archive/v0.801.tar.gz" + sha256 "40f94cdcc5c9a374c522de7eb2c2288eaa8c6de85d0bd6a730f48bd5d84a89f9" + end + bottle do + cellar :any + revision 1 + sha256 "e87541a7f22a8cea8d8888f4b2321186279ad88d1d0455156946b08ac2be423d" => :el_capitan + sha256 "d096d2ee803fc3c8e573f8cdf4f8659ea6cbe1af12b643d496b62db0b2c98b0c" => :yosemite + sha256 "6c72c099d9601e8061c3aca6df90afccf87f590606f55e9b0fa289678d6ee445" => :mavericks + end + + depends_on "sdl" + depends_on "sdl_net" + depends_on "sdl_sound" => ["--with-libogg", "--with-libvorbis"] + depends_on "libpng" + depends_on "fluid-synth" + + # Otherwise build failure on Moutain Lion (#311) + needs :cxx11 + + conflicts_with "dosbox", :because => "both install `dosbox` binaries" + + def install + ENV.cxx11 + + args = %W[ + --prefix=#{prefix} + --disable-dependency-tracking + --disable-sdltest + --enable-core-inline + ] + args << "--enable-debug" if build.with? "debugger" + + system "./configure", *args + chmod 0755, "install-sh" + system "make", "install" + end + + test do + assert_match /DOSBox version #{version}/, shell_output("#{bin}/dosbox -version 2>&1", 1) + end +end From df8c89692421ee7f639d338c856983257811792c Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:51 +0000 Subject: [PATCH 031/175] dosbox: import from homebrew/games. --- Formula/dosbox.rb | 60 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Formula/dosbox.rb diff --git a/Formula/dosbox.rb b/Formula/dosbox.rb new file mode 100644 index 000000000000..45597adf6772 --- /dev/null +++ b/Formula/dosbox.rb @@ -0,0 +1,60 @@ +class Dosbox < Formula + desc "DOS Emulator" + homepage "http://www.dosbox.com/" + url "https://downloads.sourceforge.net/project/dosbox/dosbox/0.74/dosbox-0.74.tar.gz" + sha256 "13f74916e2d4002bad1978e55727f302ff6df3d9be2f9b0e271501bd0a938e05" + + bottle do + cellar :any + revision 1 + sha256 "be37f802731de6700dd47252c9d5f8c6693aaa47849bde69e687647b44ec7ac7" => :yosemite + sha256 "9c367cd50d5ace12040f9ce2b1dc1256b99a06be5d4ea32293b4a36eacb668c8" => :mavericks + sha256 "0f084aebb29fa7ea7825f1a230c4ec825b7a1ee112bce2e3e4d256a9e737ff44" => :mountain_lion + end + + head do + url "http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk" + depends_on "autoconf" => :build + depends_on "automake" => :build + end + + option "with-debugger", "Enable internal debugger" + + depends_on "sdl" + depends_on "sdl_net" + depends_on "sdl_sound" => ["--with-libogg", "--with-libvorbis"] + depends_on "libpng" + + def install + args = %W[ + --prefix=#{prefix} + --disable-dependency-tracking + --disable-sdltest + --enable-core-inline + ] + args << "--enable-debug" if build.with? "debugger" + + if build.head? + # Prevent unstable build with clang + # http://sourceforge.net/p/dosbox/code-0/3894/ + ENV.O0 + else + # Disable dynamic cpu core recompilation that crashes on 64-bit platform + # https://github.com/Homebrew/homebrew-games/issues/171 + args << "--disable-dynrec" + end + + system "./autogen.sh" if build.head? + system "./configure", *args + system "make", "install" + end + + def caveats; <<-EOS.undent + DOSBox is not built for optimal performance due to unstability on 64-bit platform. + EOS + end + + test do + system "#{bin}/dosbox", "-version" + end +end From 4868c432832d23045f0ece4862f1345b5f369a65 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:51 +0000 Subject: [PATCH 032/175] dungeon: import from homebrew/games. --- Formula/dungeon.rb | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Formula/dungeon.rb diff --git a/Formula/dungeon.rb b/Formula/dungeon.rb new file mode 100644 index 000000000000..73026304069a --- /dev/null +++ b/Formula/dungeon.rb @@ -0,0 +1,41 @@ +class Dungeon < Formula + desc "the classic text adventure" + homepage "https://github.com/GOFAI/dungeon" + url "https://github.com/GOFAI/dungeon/archive/4.0.tar.gz" + sha256 "be2217be9e23861f22c14c4395da272fca5fb08a1741f52fd393792908279bea" + + bottle do + sha256 "110f44d3092cf19c39d7cff3b04f8e35fb5632947946c8220f2be09252aaac93" => :el_capitan + sha256 "069328a426945492aaa3be86a6d350f03492444e312af6added4b0290e33bdea" => :yosemite + sha256 "afbec28e7b16494c771182195fda4b38855d97adebb0d4f7f8c2c965fdeb918c" => :mavericks + end + + depends_on :fortran + + def install + chdir "src" do + # look for game files where homebrew installed them, not pwd + inreplace "game.f" do |s| + s.gsub! "FILE='dindx',STATUS='OLD',", "FILE='#{opt_pkgshare}/dindx'," + s.gsub! "1\tFORM='FORMATTED',ACCESS='SEQUENTIAL',ERR=1900)", "1\tSTATUS='OLD',FORM='FORMATTED', +\t2\tACCESS='SEQUENTIAL',ERR=1900)" + s.gsub! "FILE='dtext',STATUS='OLD',", "FILE='#{opt_pkgshare}/dtext'," + s.gsub! "1\tFORM='UNFORMATTED',ACCESS='DIRECT',", "1\tSTATUS='OLD',FORM='UNFORMATTED',ACCESS='DIRECT'," + end + system "make" + bin.install "dungeon" + end + pkgshare.install "dindx" + pkgshare.install "dtext" + man.install "dungeon.txt" + man.install "hints.txt" + end + + test do + require "open3" + Open3.popen3("#{bin}/dungeon") do |stdin, stdout, _| + stdin.close + assert_equal " Welcome to Dungeon.\t\t\tThis version created 2-Dec-15.\n This is an open field west of a white house with a boarded front door.\n There is a small mailbox here.\n A rubber mat saying \"Welcome to Dungeon!\" lies by the door.\n > >", stdout.read + end + end +end From 6732550fd477ad4eb01e6d3ba088a6fcee3dd2f5 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:51 +0000 Subject: [PATCH 033/175] dwarf-fortress: import from homebrew/games. --- Formula/dwarf-fortress.rb | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Formula/dwarf-fortress.rb diff --git a/Formula/dwarf-fortress.rb b/Formula/dwarf-fortress.rb new file mode 100644 index 000000000000..4c42e9c8705e --- /dev/null +++ b/Formula/dwarf-fortress.rb @@ -0,0 +1,32 @@ +class DwarfFortress < Formula + desc "Open-ended roguelike game" + homepage "http://bay12games.com/dwarves/" + url "http://www.bay12games.com/dwarves/df_43_05_osx.tar.bz2" + version "0.43.05" + sha256 "c9614c012c23dcef6197f83d02510d577e1257c5a0de948af5c8f76ae56c5fc8" + + bottle do + cellar :any + sha256 "a9005bf26f7bc443fa4ecc63d663b9478f26464e020e02664eb6254cdd80d527" => :el_capitan + sha256 "980ad47fd09378f5cc3c514fca2e73b50b077760d3ec75863d9b6d2df42fba04" => :yosemite + sha256 "8401db4e3b92579272b4b4ff9f119d67d17b7804bd4d61aaeafdb7eb653eeb15" => :mavericks + end + + depends_on :arch => :intel + + def install + # Dwarf Fortress uses freetype from X11, but hardcodes a path that + # isn't installed by modern XQuartz. Point it at wherever XQuartz + # happens to be on the user's system. + system "install_name_tool", "-change", + "/usr/X11/lib/libfreetype.6.dylib", + "#{MacOS::XQuartz.prefix}/lib/libfreetype.6.dylib", + "libs/SDL_ttf.framework/SDL_ttf" + + (bin/"dwarffortress").write <<-EOS.undent + #!/bin/sh + exec #{libexec}/df + EOS + libexec.install Dir["*"] + end +end From 73ab1f35361a9571c3fe79104defc8ada3b7a902 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:51 +0000 Subject: [PATCH 034/175] easyrpg-player: import from homebrew/games. --- Formula/easyrpg-player.rb | 43 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Formula/easyrpg-player.rb diff --git a/Formula/easyrpg-player.rb b/Formula/easyrpg-player.rb new file mode 100644 index 000000000000..e1c1a95ed327 --- /dev/null +++ b/Formula/easyrpg-player.rb @@ -0,0 +1,43 @@ +class EasyrpgPlayer < Formula + desc "RPG Maker 2000/2003 games interpreter" + homepage "https://easyrpg.org/" + url "https://github.com/EasyRPG/Player/archive/0.5.0.tar.gz" + sha256 "5cf8cf5c4383b2b9c28c8dbbf15ccef601b1c66af30f783c41b98c06a8a61977" + head "https://github.com/EasyRPG/Player.git" + + bottle do + cellar :any + sha256 "036dfeb49ca0827e14ff4c1c96b726f15bc9be592f6a38d7e1fab1856e25f124" => :sierra + sha256 "0186b14b1cb003d83b0d0936608f0f612317e407294e0609ac9c91593942d222" => :el_capitan + sha256 "57aeeba707926c3ac097eaa867e55f9b777ec8782523b00443429e8ea0d6971a" => :yosemite + end + + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "libtool" => :build + depends_on "pkg-config" => :build + depends_on "freetype" + depends_on "harfbuzz" + depends_on "liblcf" + depends_on "libpng" + depends_on "libsndfile" + depends_on "libvorbis" + depends_on "libxmp" + depends_on "mpg123" + depends_on "pixman" + depends_on "sdl2" + depends_on "sdl2_mixer" => "with-libvorbis" + depends_on "speex" + + def install + system "autoreconf", "-i" + system "./configure", "--disable-dependency-tracking", + "--disable-silent-rules", + "--prefix=#{prefix}" + system "make", "install" + end + + test do + assert_match /EasyRPG Player #{version}$/, shell_output("#{bin}/easyrpg-player -v") + end +end From 0826807ff7be99ae9b00be968b7343fac0d80e2f Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:51 +0000 Subject: [PATCH 035/175] einstein: import from homebrew/games. --- Formula/einstein.rb | 59 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Formula/einstein.rb diff --git a/Formula/einstein.rb b/Formula/einstein.rb new file mode 100644 index 000000000000..b5113dcbce43 --- /dev/null +++ b/Formula/einstein.rb @@ -0,0 +1,59 @@ +class Einstein < Formula + desc "Remake of the old DOS game Sherlock" + homepage "https://web.archive.org/web/20120621005109/http://games.flowix.com/en/index.html" + url "https://web.archive.org/web/20120621005109/http://games.flowix.com/files/einstein/einstein-2.0-src.tar.gz" + sha256 "0f2d1c7d46d36f27a856b98cd4bbb95813970c8e803444772be7bd9bec45a548" + + depends_on "sdl" + depends_on "sdl_ttf" + depends_on "sdl_mixer" + + # Fixes a cast error on compilation + patch :p0, :DATA + + def install + system "make" + + bin.install "einstein" + (pkgshare/"res").install "einstein.res" + end +end + +__END__ +--- formatter.cpp ++++ formatter.cpp +@@ -58,7 +58,7 @@ Formatter::Formatter(unsigned char *data, int offset) + if ((c.type == INT_ARG) || (c.type == STRING_ARG) || + (c.type == FLOAT_ARG) || (c.type == DOUBLE_ARG)) + { +- int no = (int)c.data; ++ int no = *((int*)(&c.data)); + args[no - 1] = c.type; + } + } +@@ -135,7 +135,7 @@ std::wstring Formatter::format(std::vector &argValues) const + + case STRING_ARG: + case INT_ARG: +- no = (int)cmd->data - 1; ++ no = *((int*)(&cmd->data)) - 1; + if (no < (int)argValues.size()) + s += argValues[no]->format(cmd); + break; +--- main.cpp ++++ main.cpp +@@ -61,13 +61,9 @@ static void loadResources(const std::wstring &selfPath) + #ifdef WIN32 + dirs.push_back(getStorage()->get(L"path", L"") + L"\\res"); + #else +-#ifdef __APPLE__ +- dirs.push_back(getResourcesPath(selfPath)); +-#else + dirs.push_back(PREFIX L"/share/einstein/res"); + dirs.push_back(fromMbcs(getenv("HOME")) + L"/.einstein/res"); + #endif +-#endif + dirs.push_back(L"res"); + dirs.push_back(L"."); + resources = new ResourcesCollection(dirs); + From 4abd29047c4315540eb4197c0b74b778415ed9d5 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:51 +0000 Subject: [PATCH 036/175] ems-flasher: import from homebrew/games. --- Formula/ems-flasher.rb | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Formula/ems-flasher.rb diff --git a/Formula/ems-flasher.rb b/Formula/ems-flasher.rb new file mode 100644 index 000000000000..f83f88b52c06 --- /dev/null +++ b/Formula/ems-flasher.rb @@ -0,0 +1,26 @@ +class EmsFlasher < Formula + desc "Software for flashing the EMS Gameboy USB cart" + homepage "https://lacklustre.net/projects/ems-flasher/" + url "https://lacklustre.net/projects/ems-flasher/ems-flasher-0.03.tgz" + sha256 "d77723a3956e00a9b8af9a3545ed2c55cd2653d65137e91b38523f7805316786" + head "git://lacklustre.net/ems-flasher" + + bottle do + cellar :any + sha256 "3e48e32d5c881d2c4f5f6bd8d5f454f22d7f174da04a62ba141cc4f5403b9cf5" => :yosemite + sha256 "a8eb1537eab2d24537afbf4ab3f27e0514214f84fabdb77415c096bd04147318" => :mavericks + sha256 "a4bc387b199cb3842d4dee3998c24b1b73a30e9868fd9f9c1ce3f7ecbf5c0117" => :mountain_lion + end + + depends_on "pkg-config" => :build + depends_on "libusb" + + def install + system "make" + bin.install "ems-flasher" + end + + test do + system "#{bin}/ems-flasher", "--version" + end +end From 9301d8527db6fcabe449449ea1722d570aab066a Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:51 +0000 Subject: [PATCH 037/175] enigma: import from homebrew/games. --- Formula/enigma.rb | 58 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Formula/enigma.rb diff --git a/Formula/enigma.rb b/Formula/enigma.rb new file mode 100644 index 000000000000..63e1605ec3a6 --- /dev/null +++ b/Formula/enigma.rb @@ -0,0 +1,58 @@ +class Enigma < Formula + desc "Puzzle game inspired by Oxyd and Rock'n'Roll" + homepage "http://www.nongnu.org/enigma/" + url "https://downloads.sourceforge.net/project/enigma-game/Release%201.21/enigma-1.21.tar.gz" + sha256 "d872cf067d8eb560d3bb1cb17245814bc56ac3953ae1f12e2229c8eb6f82ce01" + bottle do + sha256 "60274053ae5662f56c2443578c873513b3f493e62a903f1a4f11befafd3aa970" => :yosemite + sha256 "70e36b4ad59bf95db896a2517615af904fbb8c1a409bbf5b1633980bbfc8b7bb" => :mavericks + sha256 "692a47168fbd05dc95395d0aeaa6e9d6077a7f3e0f93e983edafd5a01081f4a1" => :mountain_lion + end + + head do + url "https://github.com/Enigma-Game/Enigma.git" + depends_on "texi2html" => :build + end + + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "pkg-config" => :build + depends_on "imagemagick" => :build + depends_on "sdl" + depends_on "sdl_image" + depends_on "sdl_mixer" => ["with-libvorbis", "with-libmikmod"] + depends_on "sdl_ttf" + depends_on "freetype" + depends_on "libpng" + depends_on "xerces-c" + depends_on "gettext" + depends_on "enet" + + def install + system "./autogen.sh" if build.head? + + inreplace "configure" do |s| + s.gsub! /-framework (SDL(_(mixer|image|ttf))?)/, '-l\1' + s.gsub! %r{\${\w+//\\"/}/lib(freetype|png|xerces-c)\.a}, '-l\1' + s.gsub! %r{(LIBINTL)="\${with_libintl_prefix}/lib/lib(intl)\.a"}, '\1=-l\2' + s.gsub! /^\s+LIBENET_CFLAGS\n.*LIBENET.*\n\s+LIBENET_LIBS\n.*LIBENET.*$/, "" + end + inreplace "src/Makefile.in" do |s| + s.gsub! %r{(cp -a /Library/Frameworks/.*)$}, 'echo \1' + s.gsub! "mkalias -r", "ln -s" + end + + system "./configure", "--disable-dependency-tracking", + "--prefix=#{prefix}", + "--with-libintl-prefix=#{Formula["gettext"].opt_prefix}", + "--with-system-enet" + system "make" + system "make", "macapp" + prefix.install "etc/macfiles/Enigma.app" + bin.write_exec_script "#{prefix}/Enigma.app/Contents/MacOS/enigma" + end + + test do + assert_equal "Enigma v#{version}", shell_output("#{bin}/enigma --version").chomp + end +end From b889d4a9360623e0aa98150e2a38243c6b2ac0be Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:51 +0000 Subject: [PATCH 038/175] exult: import from homebrew/games. --- Formula/exult.rb | 63 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Formula/exult.rb diff --git a/Formula/exult.rb b/Formula/exult.rb new file mode 100644 index 000000000000..caeff599f698 --- /dev/null +++ b/Formula/exult.rb @@ -0,0 +1,63 @@ +class Exult < Formula + desc "Recreation of Ultima 7" + homepage "http://exult.sourceforge.net/" + url "svn://svn.code.sf.net/p/exult/code/exult/trunk", :revision => 7520 + version "1.4.9rc1+r7520" + head "svn://svn.code.sf.net/p/exult/code/exult/trunk" + + bottle do + sha256 "f9cac006633608c628a8d069e44c7c6f3c1ceb6c9f45eccfb3a011f4ca32fb41" => :el_capitan + sha256 "c36761dc9db169de70f9e9a56b64c3f609924728562d50f8ed04ac9354c06c9a" => :yosemite + sha256 "031de2aab1ec65682d2d89f029e4a8f574539d6048c9082a3ce8e5c88084b4fa" => :mavericks + end + + option "with-audio-pack", "Install audio pack" + + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "libtool" => :build + depends_on "pkg-config" => :build + depends_on "sdl2" + depends_on "libogg" + depends_on "libvorbis" + + resource "audio" do + url "https://downloads.sourceforge.net/project/exult/exult-data/exult_audio.zip" + sha256 "72e10efa8664a645470ceb99f6b749ce99c3d5fd1c8387c63640499cfcdbbc68" + end + + def install + # Use ~/Library/... instead of /Library for the games + inreplace "files/utils.cc" do |s| + s.gsub! /(gamehome_dir)\("\."\)/, '\1(home_dir)' + s.gsub! /(gamehome_dir) =/, '\1 +=' + end + + system "./autogen.sh" + system "./configure", "--disable-debug", "--disable-dependency-tracking", + "--prefix=#{prefix}" + system "make", "EXULT_DATADIR=#{pkgshare}/data" + system "make", "bundle" + pkgshare.install "Exult.app/Contents/Resources/data" + (pkgshare/"data").install resource("audio") if build.with? "audio-pack" + prefix.install "Exult.app" + bin.write_exec_script "#{prefix}/Exult.app/Contents/MacOS/exult" + end + + def caveats; <<-EOS.undent + Note that this includes only the game engine; you will need to supply your own + own legal copy of the Ultima 7 game files. Try here (Amazon.com): + http://bit.ly/8JzovU + + Update audio settings accordingly with configuration file: + ~/Library/Preferences/exult.cfg + + To use CoreAudio, set `driver` to `CoreAudio`. + To use audio pack, set `use_oggs` to `yes`. + EOS + end + + test do + system "#{bin}/exult", "-v" + end +end From be3a85c5f16a82752935c7e0f17e6f5174922212 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:52 +0000 Subject: [PATCH 039/175] fairymax: import from homebrew/games. --- Formula/fairymax.rb | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Formula/fairymax.rb diff --git a/Formula/fairymax.rb b/Formula/fairymax.rb new file mode 100644 index 000000000000..b6f5bb323fa7 --- /dev/null +++ b/Formula/fairymax.rb @@ -0,0 +1,30 @@ +class Fairymax < Formula + desc "AI for playing Chess variants" + homepage "http://www.chessvariants.org/index/msdisplay.php?itemid=MSfairy-max" + url "http://hgm.nubati.net/git/fairymax.git", :tag => "4.8V", :revision => "b12e1192005c781f64ed9c25c9825d20384d2468" + version "4.8V" + head "http://hgm.nubati.net/git/fairymax.git" + + bottle do + sha256 "452353f678194a579cf910183f0a147ebfdfe30fc48bd29f7d0499f53c25fdca" => :yosemite + sha256 "8d18b3bb91fd8d4158e7f074a0585256842a6c4d86a2ae8911b35271d86f2218" => :mavericks + sha256 "7fa32e1ece7c7b0d3b8b18765a7377eaae1218fff9521d1e523cbe275ecc6435" => :mountain_lion + end + + def install + system "make", "all", + "INI_F=#{pkgshare}/fmax.ini", + "INI_Q=#{pkgshare}/qmax.ini" + bin.install "fairymax", "shamax", "maxqi" + pkgshare.install Dir["data/*.ini"] + man6.install "fairymax.6.gz" + end + + test do + (testpath/"test").write <<-EOS.undent + hint + quit + EOS + system "#{bin}/fairymax < test" + end +end From fd38bacdd8cb98427a7186b0c5a2c2e3d359d071 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:52 +0000 Subject: [PATCH 040/175] fceux: import from homebrew/games. --- Formula/fceux.rb | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Formula/fceux.rb diff --git a/Formula/fceux.rb b/Formula/fceux.rb new file mode 100644 index 000000000000..c834c9cf7c46 --- /dev/null +++ b/Formula/fceux.rb @@ -0,0 +1,45 @@ +class Fceux < Formula + desc "The all in one NES/Famicom Emulator" + homepage "http://fceux.com" + url "https://downloads.sourceforge.net/project/fceultra/Source%20Code/2.2.3%20src/fceux-2.2.3.src.tar.gz" + sha256 "4be6dda9a347f941809a3c4a90d21815b502384adfdd596adaa7b2daf088823e" + + bottle do + cellar :any + sha256 "c723e1517167dc9087b5cb8f439c33eed99fde01cb955a651c3740dfd44ebcfb" => :sierra + sha256 "cc0491307589e13881b88485811d3b647fdbe32f5a622561b7d84c139a400b12" => :el_capitan + sha256 "7390f528ee617ed31110fffb5eeec0dc730013b5826364793dd7af691ae54fd1" => :yosemite + end + + deprecated_option "no-gtk" => "without-gtk+3" + + depends_on "pkg-config" => :build + depends_on "scons" => :build + depends_on "sdl" + depends_on "gtk+3" => :recommended + + def install + # Bypass X11 dependency injection + # https://sourceforge.net/p/fceultra/bugs/755/ + inreplace "src/drivers/sdl/SConscript", "env.ParseConfig(config_string)", "" + + args = [] + args << "RELEASE=1" + args << "GTK=0" + args << "GTK3=1" if build.with? "gtk+3" + # gdlib required for logo insertion, but headers are not detected + # https://sourceforge.net/p/fceultra/bugs/756/ + args << "LOGO=0" + scons *args + libexec.install "src/fceux" + pkgshare.install ["output/luaScripts", "output/palettes", "output/tools"] + (bin/"fceux").write <<-EOS.undent + #!/bin/bash + LUA_PATH=#{pkgshare}/luaScripts/?.lua #{libexec}/fceux "$@" + EOS + end + + test do + system "#{bin}/fceux", "-h" + end +end From 992fe810d71f44af9de51538165d6fecdbb0146f Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:52 +0000 Subject: [PATCH 041/175] fifechan: import from homebrew/games. --- Formula/fifechan.rb | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Formula/fifechan.rb diff --git a/Formula/fifechan.rb b/Formula/fifechan.rb new file mode 100644 index 000000000000..5f6eaa7908e2 --- /dev/null +++ b/Formula/fifechan.rb @@ -0,0 +1,41 @@ +class Fifechan < Formula + desc "C++ GUI library designed for games" + homepage "https://fifengine.github.io/fifechan/" + url "https://github.com/fifengine/fifechan/archive/0.1.3.tar.gz" + sha256 "66c07e030711ee7a8ef9bf583905de370d7972f22865c8a690fd3e710c626e5a" + + bottle do + cellar :any + sha256 "5d9d9cca51acebbab4e5fa4273d1c0825590ed38c725ebdf9edeb174229a07b1" => :sierra + sha256 "799e8fa5def1592ff559ed13913b0aff53b0df8fba9c8b2e46ed4af0800bbf20" => :el_capitan + sha256 "8eeeaad4b2d4d95573417b2a2a42dc2199d1148033011fab4a7854b0bf11542f" => :yosemite + end + + depends_on "cmake" => :build + depends_on "allegro" => :recommended + depends_on "sdl" => :recommended + depends_on "sdl_image" => :recommended + + def install + mkdir "build" do + system "cmake", "..", *std_cmake_args + system "make", "install" + end + end + + test do + (testpath/"fifechan_test.cpp").write <<-EOS + #include + int main(int n, char** c) { + fcn::Container* mContainer = new fcn::Container(); + if (mContainer == nullptr) { + return 1; + } + return 0; + } + EOS + + system ENV.cxx, "-I#{include}", "-L#{lib}", "-lfifechan", "-o", "fifechan_test", "fifechan_test.cpp" + system "./fifechan_test" + end +end From 5d21c33e71ffcab1f05e7c9b52d6bbb9b6314261 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:52 +0000 Subject: [PATCH 042/175] fizmo: import from homebrew/games. --- Formula/fizmo.rb | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Formula/fizmo.rb diff --git a/Formula/fizmo.rb b/Formula/fizmo.rb new file mode 100644 index 000000000000..c7d2966bbd14 --- /dev/null +++ b/Formula/fizmo.rb @@ -0,0 +1,34 @@ +class Fizmo < Formula + desc "Z-Machine interpreter" + homepage "https://fizmo.spellbreaker.org" + url "https://fizmo.spellbreaker.org/source/fizmo-0.8.2.tar.gz" + sha256 "369c3b58e019756229bf7e72cc5b15c049f1d6d5c65d7653267e67cef109e675" + + bottle do + sha256 "6508c97c7c80feeb2585a1ea483401ad893d2d99d27fbd9bae4c032c320b7a9f" => :el_capitan + sha256 "f054eccbe7d03c18ae2d7d8c8829a006dce5958b3d605c507219d2bf95d9536e" => :yosemite + sha256 "8e94594cf572ea84b187657ef9ff1f58426e8f3b79aecf53ecb309022c15b2a3" => :mavericks + end + + depends_on "pkg-config" => :build + depends_on :x11 + depends_on "jpeg" + depends_on "libpng" + depends_on "libsndfile" + depends_on "sdl2" + + def install + system "./configure", "--prefix=#{prefix}", + "--disable-dependency-tracking", + "--disable-silent-rules" + system "make", "install" + end + + test do + system "#{bin}/fizmo-console", "--help" + # Unable to test headless ncursew client + # https://github.com/Homebrew/homebrew-games/pull/366 + # system "#{bin}/fizmo-ncursesw", "--help" + system "#{bin}/fizmo-sdl2", "--help" + end +end From 743878ae92497031542727365359393955cd7e57 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:52 +0000 Subject: [PATCH 043/175] fmsx: import from homebrew/games. --- Formula/fmsx.rb | 93 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 Formula/fmsx.rb diff --git a/Formula/fmsx.rb b/Formula/fmsx.rb new file mode 100644 index 000000000000..dd65ea22bd5e --- /dev/null +++ b/Formula/fmsx.rb @@ -0,0 +1,93 @@ +class Fmsx < Formula + desc "MSX emulator" + homepage "http://fms.komkon.org/fMSX/" + url "http://fms.komkon.org/fMSX/fMSX46.zip" + version "4.6" + sha256 "07ac1a2728d5ebdafc5867c8935afdaaa9654832229461f2066b5efe968bcd59" + + bottle do + cellar :any + sha256 "14cc16177f83aae29447d66b21ab5bf8cfcc1994fc6d9b8e2ca1ecb2e8b9a40d" => :el_capitan + sha256 "ee40412473e92e4f6455f31f6e867a642194ab84c6f592859127b3e488d3ae71" => :yosemite + sha256 "88f87dbcd3074e4eabcacd88e27b54f8d63c12628150dbd9bdf410bd9098d04b" => :mavericks + end + + depends_on :x11 + depends_on "pulseaudio" + + resource "msx-rom" do + url "http://fms.komkon.org/fMSX/src/MSX.ROM" + sha256 "999564a371dd2fdf7fbe8d853e82a68d557c27b7d87417639b2fa17704b83f78" + end + + resource "msx2-rom" do + url "http://fms.komkon.org/fMSX/src/MSX2.ROM" + sha256 "4bc4ae85ca5f28246cd3e7b7e017d298ddd375603657f84ef2c7954bc2d9b919" + end + + resource "msx2ext-rom" do + url "http://fms.komkon.org/fMSX/src/MSX2EXT.ROM" + sha256 "6c6f421a10c428d960b7ecc990f99af1c638147f747bddca7b0bf0e2ab738300" + end + + resource "msx2p-rom" do + url "http://fms.komkon.org/fMSX/src/MSX2P.ROM" + sha256 "9501a609be7d92e53fbd75fa65c8317563035d617744664892863ed54463db51" + end + + resource "msx2pext-rom" do + url "http://fms.komkon.org/fMSX/src/MSX2PEXT.ROM" + sha256 "36000685128f95ff515a128973f8d439116c1a1a8e38c1777293a428894434a2" + end + + resource "fmpac-rom" do + url "http://fms.komkon.org/fMSX/src/FMPAC.ROM" + sha256 "3cfe44646b69a622656b96305f1b975f48ca018839f7946895f7a1352d9720aa" + end + + resource "disk-rom" do + url "http://fms.komkon.org/fMSX/src/DISK.ROM" + sha256 "31740a761447d7590c304338d389b0ae114546a8b9f79c9ffd5e374f80b7d354" + end + + resource "msxdos2-rom" do + url "http://fms.komkon.org/fMSX/src/MSXDOS2.ROM" + sha256 "08d582fda65f22e4397353855e828539a64df08a540e5d64706b3362ea09be17" + end + + resource "painter-rom" do + url "http://fms.komkon.org/fMSX/src/PAINTER.ROM" + sha256 "62e646cc9f0d50422016f12a77995be5547649b5961b58c883ff4d48baac280f" + end + + resource "kanji-rom" do + url "http://fms.komkon.org/fMSX/src/KANJI.ROM" + sha256 "56785703b14f252ce77be586716dbf5d94125e93b9e6069ff26f7686566cd91a" + end + + def install + chdir "fMSX/Unix" do + inreplace "Makefile" do |s| + pa = Formula["pulseaudio"] + s.gsub! %r{(DEFINES\s*\+=\s*[-\/$()\w\t ]*)}, "\\1 -DPULSE_AUDIO" + s.gsub! %r{(CFLAGS\s*\+=\s*[-\/$()\w\t ]*)}, "\\1 -I#{pa.include}\nLIBS += -L#{pa.lib} -lpulse-simple" + end + system "make" + bin.install "fmsx" + end + pkgshare.install "fMSX/Unix/CARTS.SHA" + resources.each { |r| pkgshare.install r } + end + + def caveats; <<-EOS.undent + No sound under OS X due to missing /dev/dsp. + Bundled ROM files are located the following directory: + #{pkgshare} + You may want to use this directory to set `-home` option. + EOS + end + + test do + system "#{bin}/fmsx", "-help" + end +end From ceb521ff6d9dfebb469e01be3e9bf0f1a807ac79 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:52 +0000 Subject: [PATCH 044/175] freeciv: import from homebrew/games. --- Formula/freeciv.rb | 86 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 Formula/freeciv.rb diff --git a/Formula/freeciv.rb b/Formula/freeciv.rb new file mode 100644 index 000000000000..c548402046f3 --- /dev/null +++ b/Formula/freeciv.rb @@ -0,0 +1,86 @@ +class Freeciv < Formula + desc "Free and Open Source empire-building strategy game" + homepage "http://freeciv.wikia.com" + url "https://downloads.sourceforge.net/project/freeciv/Freeciv%202.5/2.5.6/freeciv-2.5.6.tar.bz2" + mirror "http://download.gna.org/freeciv/stable/freeciv-2.5.6.tar.bz2" + sha256 "cfadc23eec11a5a8ae74a7d3719eb126026137f0700da065367fd55cbab6999b" + + bottle do + sha256 "18e56da76ea17733f3e66e981c5918f0ea0e6855d74c4429caa5b6a49cd95440" => :sierra + sha256 "382b6a200d7772347c822a02884d228617c49c0a64c6e0a5b70479e4c7a179d6" => :el_capitan + sha256 "1307f0c49868921b1a7667c1f05782016205df205193d77e1af136a56cb548cf" => :yosemite + end + + head do + url "svn://svn.gna.org/svn/freeciv/trunk" + depends_on "automake" => :build + depends_on "autoconf" => :build + depends_on "gettext" => :build + depends_on "libtool" => :build + end + + option "without-nls", "Disable NLS support" + option "without-sdl", "Disable the SDL Freeciv client" + + depends_on "gettext" if build.with? "nls" + depends_on "icu4c" + depends_on "pkg-config" => :build + depends_on "readline" + + depends_on "sdl" => :recommended + if build.with? "sdl" + depends_on "freetype" + depends_on "sdl_image" + depends_on "sdl_gfx" + depends_on "sdl_mixer" + depends_on "sdl_ttf" + end + + depends_on "gtk+" => :recommended + depends_on "gtk+3" => :optional + if build.with?("gtk+") || build.with?("gtk+3") + depends_on "atk" + depends_on "glib" + depends_on "pango" + end + depends_on "gdk-pixbuf" if build.with? "gtk+3" + + def install + args = %W[ + --disable-debug + --disable-dependency-tracking + --disable-gtktest + --prefix=#{prefix} + --with-readline=#{Formula["readline"].opt_prefix} + ] + + if build.without? "nls" + args << "--disable-nls" + else + gettext = Formula["gettext"] + args << "CFLAGS=-I#{gettext.include}" + args << "LDFLAGS=-L#{gettext.lib}" + end + + if build.head? + inreplace "./autogen.sh", "libtoolize", "glibtoolize" + system "./autogen.sh", *args + else + system "./configure", *args + end + + system "make", "install" + end + + test do + system bin/"freeciv-manual" + File.exist? testpath/"manual6.html" + + server = fork do + system bin/"freeciv-server", "-l", testpath/"test.log" + end + sleep 5 + Process.kill("TERM", server) + File.exist? testpath/"test.log" + end +end From 5e7a3985fbf8f9924f611300997b3d5150f176b3 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:52 +0000 Subject: [PATCH 045/175] frobtads: import from homebrew/games. --- Formula/frobtads.rb | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Formula/frobtads.rb diff --git a/Formula/frobtads.rb b/Formula/frobtads.rb new file mode 100644 index 000000000000..9c06c0800f4e --- /dev/null +++ b/Formula/frobtads.rb @@ -0,0 +1,31 @@ +class Frobtads < Formula + desc "TADS interpreter and compilers" + homepage "http://www.tads.org/frobtads.htm" + url "http://www.tads.org/frobtads/frobtads-1.2.3.tar.gz" + sha256 "88c6a987813d4be1420a1c697e99ecef4fa9dd9bc922be4acf5a3054967ee788" + + bottle do + sha256 "57bd02f13719c266c9473320cd5bbe641fe1b2f8244c4e97cd35694fd78e38ba" => :el_capitan + sha256 "c7cd9d7b88e197913decad46a34f9e31853265739a3458c32dc52ae158d610d3" => :yosemite + sha256 "862ee593c96541cdd53a0019cb7f0cc09f6944e62cd451e9875af81fe742ce5d" => :mavericks + end + + head do + url "https://github.com/realnc/frobtads.git" + + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "libtool" => :build + end + + def install + system "./bootstrap" if build.head? + system "./configure", "--disable-dependency-tracking", + "--prefix=#{prefix}" + system "make", "install" + end + + test do + assert_match /FrobTADS #{version}$/, shell_output("#{bin}/frob --version") + end +end From a4a665f1bf69265596b7b7a952984de9e707e022 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:52 +0000 Subject: [PATCH 046/175] frotz: import from homebrew/games. --- Formula/frotz.rb | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Formula/frotz.rb diff --git a/Formula/frotz.rb b/Formula/frotz.rb new file mode 100644 index 000000000000..30b127a548de --- /dev/null +++ b/Formula/frotz.rb @@ -0,0 +1,27 @@ +class Frotz < Formula + desc "Infocom-style interactive fiction player" + homepage "https://github.com/DavidGriffith/frotz" + url "https://github.com/DavidGriffith/frotz/archive/2.44.tar.gz" + sha256 "dbb5eb3bc95275dcb984c4bdbaea58bc1f1b085b20092ce6e86d9f0bf3ba858f" + + head "https://github.com/DavidGriffith/frotz.git" + + bottle do + cellar :any + sha256 "2c48e1e411a9e6721a2f7bc493c0f2b25f1846cd7a74837ba48b70c2497025f8" => :yosemite + sha256 "d51a6a6c16d0274843e0e1b629d73d5faa27ab8b7de713e5c42d6087c1391ec3" => :mavericks + sha256 "d29b8dd2a5f92b818ad782d602764119fe8b211b853e3911cb0dbc0863541467" => :mountain_lion + end + + def install + inreplace "Makefile" do |s| + s.remove_make_var! %w[CC OPTS] + s.change_make_var! "PREFIX", prefix + s.change_make_var! "CONFIG_DIR", etc + s.change_make_var! "MAN_PREFIX", share + end + + system "make", "frotz" + system "make", "install" + end +end From 4f11b998fe0960a495405fe2b40faef294db168d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:52 +0000 Subject: [PATCH 047/175] fs-uae: import from homebrew/games. --- Formula/fs-uae.rb | 54 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Formula/fs-uae.rb diff --git a/Formula/fs-uae.rb b/Formula/fs-uae.rb new file mode 100644 index 000000000000..9c11308ff041 --- /dev/null +++ b/Formula/fs-uae.rb @@ -0,0 +1,54 @@ +class FsUae < Formula + desc "Amiga emulator" + homepage "http://fs-uae.net/" + + stable do + url "https://fs-uae.net/stable/2.8.1u3/fs-uae-2.8.1u3.tar.gz" + version "2.8.1u3" + sha256 "7cc84844a77853f4fe2f2fc7da20ce94adc1a0c0c4b982ea28852a60b8a4d83a" + end + + bottle do + cellar :any + sha256 "535474334ea992223e03eadeb76cee7d71c6cc9cb1da6ae586059a2381545116" => :sierra + sha256 "7c419558f7db4581f17be1497384e583a1fe266cb6ef47007a977a254b957106" => :el_capitan + sha256 "af020b1cddc577b937e0ce681e1572c134983e1e1eccf3d5ec1dc46394c11428" => :yosemite + end + + head do + url "https://github.com/FrodeSolheim/fs-uae.git" + depends_on "automake" => :build + depends_on "autoconf" => :build + depends_on "libtool" => :build + end + + depends_on "pkg-config" => :build + depends_on "sdl2" + depends_on "libpng" + depends_on "libmpeg2" + depends_on "glib" + depends_on "gettext" + depends_on "freetype" + depends_on "glew" + depends_on "openal-soft" if MacOS.version <= :mavericks + + def install + system "./bootstrap" if build.head? + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--disable-silent-rules", + "--prefix=#{prefix}" + mkdir "gen" + system "make" + system "make", "install" + + # Remove unncessary files + (share/"applications").rmtree + (share/"icons").rmtree + (share/"mime").rmtree + end + + test do + assert_equal version.to_s, shell_output("#{bin}/fs-uae --version").chomp + end +end From f9cf4d8ac4960a3083e6fce303d930ef94fffc1a Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:52 +0000 Subject: [PATCH 048/175] fuego: import from homebrew/games. --- Formula/fuego.rb | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Formula/fuego.rb diff --git a/Formula/fuego.rb b/Formula/fuego.rb new file mode 100644 index 000000000000..365d904e2ff9 --- /dev/null +++ b/Formula/fuego.rb @@ -0,0 +1,28 @@ +class Fuego < Formula + desc "Collection of C++ libraries for the game of Go" + homepage "http://fuego.sourceforge.net/" + url "http://svn.code.sf.net/p/fuego/code/trunk", :revision => 1981 + version "1.1.SVN" + + head "http://svn.code.sf.net/p/fuego/code/trunk" + + bottle do + revision 1 + sha256 "382067236c46029318388b64b29cd1541befde1dab0c58285b2a34fe2ecf9f87" => :el_capitan + sha256 "5eee24a4ddfbc59ed557ca653a0298bc951bc48168319fc1be1b5e8729ef8641" => :yosemite + sha256 "f04d98b00cc30b4152fc72626b48dc3e29f66bdd1ba28d3bb90dedd064a06167" => :mavericks + end + + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "boost" + + def install + system "autoreconf", "-fvi" + system "./configure", "--disable-dependency-tracking", + "--disable-silent-rules", + "--prefix=#{prefix}", + "--with-boost=#{Formula["boost"].opt_prefix}" + system "make", "install" + end +end From 100addaa57f8054201264d2ab57534c05d65996f Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:52 +0000 Subject: [PATCH 049/175] fuse-emulator: import from homebrew/games. --- Formula/fuse-emulator.rb | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Formula/fuse-emulator.rb diff --git a/Formula/fuse-emulator.rb b/Formula/fuse-emulator.rb new file mode 100644 index 000000000000..b60d3814bc9b --- /dev/null +++ b/Formula/fuse-emulator.rb @@ -0,0 +1,37 @@ +class FuseEmulator < Formula + desc "Free Unix Spectrum Emulator" + homepage "http://fuse-emulator.sourceforge.net/" + url "https://downloads.sourceforge.net/project/fuse-emulator/fuse/1.3.2/fuse-1.3.2.tar.gz" + sha256 "576bf916b499a4d5932acc34d315e2acd36636d1d5a3911c839589487a6b68e6" + + bottle do + sha256 "50f40554c9c5b2ac2ea8fa9a3921951953f34b6f701cade4e30c0a4a48d1ca97" => :sierra + sha256 "0ab8a31e1b8d350b96656ee105c2eca3ce60116f86e75c293eb3f2c6c3b35fce" => :el_capitan + sha256 "360cbef5b242257abe2885b77a39f49e7fa5cab45b9e94582107535f45a377ba" => :yosemite + end + + head do + url "http://svn.code.sf.net/p/fuse-emulator/code/trunk/fuse" + depends_on "automake" => :build + depends_on "autoconf" => :build + depends_on "libtool" => :build + end + + depends_on "pkg-config" => :build + depends_on "sdl" + depends_on "libspectrum" + depends_on "libpng" + + def install + system "./autogen.sh" if build.head? + system "./configure", "--disable-dependency-tracking", + "--disable-sdltest", + "--with-sdl", + "--prefix=#{prefix}" + system "make", "install" + end + + test do + system "#{bin}/fuse", "--version" + end +end From 67ac3def9ecac742d85e0cdd198f9676dee36005 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:53 +0000 Subject: [PATCH 050/175] gearboy: import from homebrew/games. --- Formula/gearboy.rb | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Formula/gearboy.rb diff --git a/Formula/gearboy.rb b/Formula/gearboy.rb new file mode 100644 index 000000000000..4e6957ba69a1 --- /dev/null +++ b/Formula/gearboy.rb @@ -0,0 +1,30 @@ +class Gearboy < Formula + desc "Nintendo Game Boy (Color) emulator" + homepage "https://github.com/drhelius/Gearboy" + url "https://github.com/drhelius/Gearboy/archive/gearboy-2.3.1.tar.gz" + sha256 "5182f74b7d4a76ee3a995968149e8f2b07841225b30193537ffda17dfd6feb01" + head "https://github.com/drhelius/Gearboy.git" + + bottle do + cellar :any + sha256 "3f25391fa9689c7d1c53988a3bb064082b9ad400fb73bb1f3e923ef1310131ff" => :sierra + sha256 "7df8075dee5224be99ad9ed3a1d8244b198c5837282092959badc5e9a6b7ec3e" => :el_capitan + sha256 "c3ca114a29526d2908c11500b91f138a8a45f2b5df09b955668c39bdc25588a8" => :yosemite + end + + depends_on "qt5" + depends_on "sdl2" + + def install + cd "platforms/macosx/Gearboy" do + inreplace "Gearboy.pro" do |s| + s.gsub! "/usr/local/include", Formula["sdl2"].include + s.gsub! "/usr/local/lib", Formula["sdl2"].lib + end + system "#{Formula["qt5"].bin}/qmake", "PREFIX=#{prefix}", "CONFIG+=c++11" + system "make" + prefix.install "Gearboy.app" + bin.write_exec_script "#{prefix}/Gearboy.app/Contents/MacOS/Gearboy" + end + end +end From 159b386887b5e497ffc8fcc0407f2f7940a17702 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:53 +0000 Subject: [PATCH 051/175] gearsystem: import from homebrew/games. --- Formula/gearsystem.rb | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Formula/gearsystem.rb diff --git a/Formula/gearsystem.rb b/Formula/gearsystem.rb new file mode 100644 index 000000000000..6dc560dd7046 --- /dev/null +++ b/Formula/gearsystem.rb @@ -0,0 +1,30 @@ +class Gearsystem < Formula + desc "Sega Master System / Game Gear emulator" + homepage "https://github.com/drhelius/Gearsystem" + url "https://github.com/drhelius/Gearsystem/archive/gearsystem-2.2.tar.gz" + sha256 "58004ae6cc7497d466213d2b7f00f2f1abbbd2ea900de228e2f392ceb505984a" + head "https://github.com/drhelius/Gearsystem.git" + + bottle do + cellar :any + sha256 "4b1f81eaf83e75b56247687a0a805083e1d109124fe65c1e26e0669d73ad563d" => :el_capitan + sha256 "9dd43b91cd8a84676a03ca34b2a55ff34d3b7e502463432dd20e42d4933178c0" => :yosemite + sha256 "59db7fb31165ccf6f7afe966b20c82d6119f635b233be319738bce37d7047046" => :mavericks + end + + depends_on "qt5" + depends_on "sdl2" + + def install + cd "platforms/macosx/Gearsystem" do + inreplace "Gearsystem.pro" do |s| + s.gsub! "/usr/local/include", Formula["sdl2"].include.to_s + s.gsub! "/usr/local/lib", Formula["sdl2"].lib.to_s + end + system "#{Formula["qt5"].bin}/qmake", "PREFIX=#{prefix}", "CONFIG+=c++11" + system "make" + prefix.install "Gearsystem.app" + bin.write_exec_script "#{prefix}/Gearsystem.app/Contents/MacOS/Gearsystem" + end + end +end From 0ec72cacf24f9b8719309bfb7a26db8abeb016fd Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:53 +0000 Subject: [PATCH 052/175] git-game: import from homebrew/games. --- Formula/git-game.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Formula/git-game.rb diff --git a/Formula/git-game.rb b/Formula/git-game.rb new file mode 100644 index 000000000000..a242f361d91e --- /dev/null +++ b/Formula/git-game.rb @@ -0,0 +1,16 @@ +class GitGame < Formula + desc "Game for git to guess who made which commit" + homepage "https://github.com/jsomers/git-game" + url "https://github.com/jsomers/git-game/archive/1.2.tar.gz" + sha256 "d893b2c813388754c16d867cf37726cd7e73c9ccd316735aac43bf1cd3ab1412" + + bottle :unneeded + + def install + bin.install "git-game" + end + + test do + system "git", "game", "help" + end +end From c58389f68fa9b63a60e8f68182186d248edc6131 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:53 +0000 Subject: [PATCH 053/175] git-if: import from homebrew/games. --- Formula/git-if.rb | 51 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Formula/git-if.rb diff --git a/Formula/git-if.rb b/Formula/git-if.rb new file mode 100644 index 000000000000..60c32ae101f3 --- /dev/null +++ b/Formula/git-if.rb @@ -0,0 +1,51 @@ +class GitIf < Formula + desc "Glulx interpreter that is optimized for speed" + homepage "http://ifarchive.org/indexes/if-archiveXprogrammingXglulxXinterpretersXgit.html" + url "http://ifarchive.org/if-archive/programming/glulx/interpreters/git/git-135.zip" + version "1.3.5" + sha256 "4bdfae2e1ab085740efddf99d43ded6a044f1f2df274f753737e5f0e402fc4e9" + head "https://github.com/DavidKinder/Git.git" + + bottle do + cellar :any_skip_relocation + sha256 "650bda401bc0a473cc7cfb29ddcf8039d235b2d1d895d15b70e50143d517a4c8" => :sierra + sha256 "e3c9fe6aba13fad92dac7e5010acdb282902762817d432558a95d3aa1f1c7ec0" => :el_capitan + sha256 "04c11168167f4998f3bfbd9d3fe603d2c7f583bdf7a5c50630db32bce289b3c7" => :yosemite + end + + option "with-glkterm", "Build with glkterm (without wide character support)" + + depends_on "cheapglk" => [:build, :optional] + depends_on "glkterm" => [:build, :optional] + depends_on "glktermw" => :build if build.without?("cheapglk") && build.without?("glkterm") + + def install + if build.with?("cheapglk") && build.with?("glkterm") + odie "Options --with-cheapglk and --with-glkterm are mutually exclusive." + end + + if build.with? "cheapglk" + glk = Formula["cheapglk"] + elsif build.with? "glkterm" + glk = Formula["glkterm"] + else + glk = Formula["glktermw"] + end + + inreplace "Makefile", "GLK = cheapglk", "GLK = #{glk.name}" if build.without? "cheapglk" + inreplace "Makefile", "GLKINCLUDEDIR = ../$(GLK)", "GLKINCLUDEDIR = #{glk.include}" + inreplace "Makefile", "GLKLIBDIR = ../$(GLK)", "GLKLIBDIR = #{glk.lib}" + inreplace "Makefile", /^OPTIONS = /, "OPTIONS = -DUSE_MMAP -DUSE_INLINE" + + system "make" + bin.install "git" => "git-if" + end + + test do + if build.with? "cheapglk" + assert shell_output("#{bin}/git-if").start_with? "usage: git gamefile.ulx" + else + assert pipe_output("#{bin}/git-if -v").start_with? "GlkTerm, library version" + end + end +end From 5aaf8e28f68940f8783f0c28b4ff56fe35c563c2 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:53 +0000 Subject: [PATCH 054/175] glkterm: import from homebrew/games. --- Formula/glkterm.rb | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Formula/glkterm.rb diff --git a/Formula/glkterm.rb b/Formula/glkterm.rb new file mode 100644 index 000000000000..9873d12ecb2c --- /dev/null +++ b/Formula/glkterm.rb @@ -0,0 +1,46 @@ +class Glkterm < Formula + desc "Terminal-window Glk library" + homepage "http://www.eblong.com/zarf/glk/index.html" + url "http://www.eblong.com/zarf/glk/glkterm-104.tar.gz" + version "1.0.4" + sha256 "473d6ef74defdacade2ef0c3f26644383e8f73b4f1b348e37a9bb669a94d927e" + + bottle do + cellar :any_skip_relocation + sha256 "5a72c3f8490cd55598d1160533e951e5b188b319a2dccbf0cb6ee8a8b12dd4b0" => :sierra + sha256 "e1f42b6bef2421cf3c42e52f79b8e6153301b7c8d65fbaf4fe284b691705899c" => :el_capitan + sha256 "3fe7df7e54d96dcd88cc57674ae570b34af41b6a0511439a28c3036bc9e80580" => :yosemite + end + + keg_only "Conflicts with other Glk libraries" + + def install + system "make" + + lib.install "libglkterm.a" + include.install "glk.h", "glkstart.h", "gi_blorb.h", "gi_dispa.h", "Make.glkterm" + end + + test do + (testpath/"test.c").write <<-EOS.undent + #include "glk.h" + #include "glkstart.h" + + glkunix_argumentlist_t glkunix_arguments[] = { + { NULL, glkunix_arg_End, NULL } + }; + + int glkunix_startup_code(glkunix_startup_t *data) + { + return TRUE; + } + + void glk_main() + { + glk_exit(); + } + EOS + system ENV.cc, "test.c", "-I#{include}", "-L#{lib}", "-lglkterm", "-lncurses", "-o", "test" + system "echo test | ./test" + end +end From d51ef8fde75c6d18e78cef52144020a13346cb05 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:53 +0000 Subject: [PATCH 055/175] glktermw: import from homebrew/games. --- Formula/glktermw.rb | 49 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Formula/glktermw.rb diff --git a/Formula/glktermw.rb b/Formula/glktermw.rb new file mode 100644 index 000000000000..4e5fc864e878 --- /dev/null +++ b/Formula/glktermw.rb @@ -0,0 +1,49 @@ +class Glktermw < Formula + desc "Terminal-window Glk library with Unicode support" + homepage "http://www.eblong.com/zarf/glk/index.html" + url "http://www.eblong.com/zarf/glk/glktermw-104.tar.gz" + version "1.0.4" + sha256 "5968630b45e2fd53de48424559e3579db0537c460f4dc2631f258e1c116eb4ea" + + bottle do + cellar :any_skip_relocation + sha256 "4fb944dd33eb8943ffa988e20001bde6c76969d8dab98ec82dfa9b12586b5081" => :sierra + sha256 "4cabfbfc3cf4f9946986424ca5741d3146c84e055d12418ef9c81f7795295f44" => :el_capitan + sha256 "1c2dc8d72af8e15f7c8b38935c4bc7abeff3328143a5b0ad66da88e682d6e8dd" => :yosemite + end + + keg_only "Conflicts with other Glk libraries" + + def install + inreplace "gtoption.h", "/* #define LOCAL_NCURSESW */", "#define LOCAL_NCURSESW" + inreplace "Makefile", "-lncursesw", "-lncurses" + + system "make" + + lib.install "libglktermw.a" + include.install "glk.h", "glkstart.h", "gi_blorb.h", "gi_dispa.h", "Make.glktermw" + end + + test do + (testpath/"test.c").write <<-EOS.undent + #include "glk.h" + #include "glkstart.h" + + glkunix_argumentlist_t glkunix_arguments[] = { + { NULL, glkunix_arg_End, NULL } + }; + + int glkunix_startup_code(glkunix_startup_t *data) + { + return TRUE; + } + + void glk_main() + { + glk_exit(); + } + EOS + system ENV.cc, "test.c", "-I#{include}", "-L#{lib}", "-lglktermw", "-lncurses", "-o", "test" + system "echo test | ./test" + end +end From 9e32f8f13a0e5033ac6b69b2268f6fac34faa0f8 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:53 +0000 Subject: [PATCH 056/175] glulxe: import from homebrew/games. --- Formula/glulxe.rb | 50 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Formula/glulxe.rb diff --git a/Formula/glulxe.rb b/Formula/glulxe.rb new file mode 100644 index 000000000000..d1b815641b3c --- /dev/null +++ b/Formula/glulxe.rb @@ -0,0 +1,50 @@ +class Glulxe < Formula + desc "Portable VM like the Z-machine" + homepage "http://www.eblong.com/zarf/glulx/" + url "http://eblong.com/zarf/glulx/glulxe-054.tar.gz" + version "0.5.4" + sha256 "1fc26f8aa31c880dbc7c396ede196c5d2cdff9bdefc6b192f320a96c5ef3376e" + head "https://github.com/erkyrath/glulxe.git" + + bottle do + cellar :any_skip_relocation + sha256 "9b79beec27e0f114814a8b7a89a08b420bfc1d73c52047188429d2b592b47fe1" => :sierra + sha256 "d1eaa6d3fc7b190f9501c30805f7325b607f26f218c4f483a67d4f630862892b" => :el_capitan + sha256 "61d29891d33f47a18e18b1b1cef775a815d77b18201220b4ec86b0ff902d405d" => :yosemite + end + + option "with-glkterm", "Build with glkterm (without wide character support)" + + depends_on "cheapglk" => [:build, :optional] + depends_on "glkterm" => [:build, :optional] + depends_on "glktermw" => :build if build.without?("cheapglk") && build.without?("glkterm") + + def install + if build.with?("cheapglk") && build.with?("glkterm") + odie "Options --with-cheapglk and --with-glkterm are mutually exclusive." + end + + if build.with? "cheapglk" + glk = Formula["cheapglk"] + elsif build.with? "glkterm" + glk = Formula["glkterm"] + else + glk = Formula["glktermw"] + end + + inreplace "Makefile", "GLKINCLUDEDIR = ../cheapglk", "GLKINCLUDEDIR = #{glk.include}" + inreplace "Makefile", "GLKLIBDIR = ../cheapglk", "GLKLIBDIR = #{glk.lib}" + inreplace "Makefile", "Make.cheapglk", "Make.#{glk.name}" + + system "make" + bin.install "glulxe" + end + + test do + if build.with? "cheapglk" + assert shell_output("#{bin}/glulxe").start_with? "Welcome to the Cheap Glk Implementation" + else + assert pipe_output("#{bin}/glulxe -v").start_with? "GlkTerm, library version" + end + end +end From a6520835ba2b83892c4b54129f984fbd596a12c4 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:53 +0000 Subject: [PATCH 057/175] gnu-chess: import from homebrew/games. --- Formula/gnu-chess.rb | 58 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Formula/gnu-chess.rb diff --git a/Formula/gnu-chess.rb b/Formula/gnu-chess.rb new file mode 100644 index 000000000000..ae594fafecd0 --- /dev/null +++ b/Formula/gnu-chess.rb @@ -0,0 +1,58 @@ +class GnuChess < Formula + desc "GNU Chess" + homepage "https://www.gnu.org/software/chess/" + url "https://ftpmirror.gnu.org/chess/gnuchess-6.2.4.tar.gz" + mirror "https://ftp.gnu.org/gnu/chess/gnuchess-6.2.4.tar.gz" + sha256 "3c425c0264f253fc5cc2ba969abe667d77703c728770bd4b23c456cbe5e082ef" + + bottle do + sha256 "411c317415947009b6049a01eba5f982b3a490f6bf55e11666af6e6c8b8ffe18" => :sierra + sha256 "65ee081879182d9ebd12eef9d737bc12ad22247ff27ecd339ecb2f76e1434cbe" => :el_capitan + sha256 "20c1c10b54746fb09eeb0101b014d39fb6196b0668ed5e6e9b9acd0b6488b970" => :yosemite + end + + head do + url "svn://svn.savannah.gnu.org/chess/trunk" + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "help2man" => :build + depends_on "gettext" + end + + option "with-book", "Download the opening book (~25MB)" + + resource "book" do + url "https://ftpmirror.gnu.org/chess/book_1.02.pgn.gz" + sha256 "deac77edb061a59249a19deb03da349cae051e52527a6cb5af808d9398d32d44" + end + + def install + if build.head? + system "autoreconf", "--install" + chmod 0755, "install-sh" + end + + system "./configure", "--disable-dependency-tracking", + "--prefix=#{prefix}" + system "make", "install" + + if build.with? "book" + resource("book").stage do + doc.install "book_1.02.pgn" + end + end + end + + if build.with? "book" + def caveats; <<-EOS.undent + This formula also downloads the additional opening book. The + opening book is a PGN file located in #{doc} that can be added + using gnuchess commands. + EOS + end + end + + test do + assert_equal "GNU Chess #{version}", shell_output("#{bin}/gnuchess --version").chomp + end +end From 729f823787193ba8a0bba2ec7d493264295f4090 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:53 +0000 Subject: [PATCH 058/175] gnu-go: import from homebrew/games. --- Formula/gnu-go.rb | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Formula/gnu-go.rb diff --git a/Formula/gnu-go.rb b/Formula/gnu-go.rb new file mode 100644 index 000000000000..2e76e9db6cf1 --- /dev/null +++ b/Formula/gnu-go.rb @@ -0,0 +1,27 @@ +class GnuGo < Formula + desc "GNU Go" + homepage "https://www.gnu.org/software/gnugo/gnugo.html" + url "https://ftpmirror.gnu.org/gnugo/gnugo-3.8.tar.gz" + mirror "https://ftp.gnu.org/gnu/gnugo/gnugo-3.8.tar.gz" + sha256 "da68d7a65f44dcf6ce6e4e630b6f6dd9897249d34425920bfdd4e07ff1866a72" + revision 1 + head "git://git.savannah.gnu.org/gnugo.git" + + bottle do + cellar :any_skip_relocation + sha256 "2fb1f3a416c5c2073ca72c5deeba248b9c81d357558a7315221dcf3634303203" => :sierra + sha256 "cf02936086b6da588fab4b8e9c5e000b0d9fd78d7ab45a6b3202e55026408b7d" => :el_capitan + sha256 "2d0a130fba94f47f80815f3c6da5c9ceeb45e7190972185ae275a8647305e39d" => :yosemite + end + + def install + system "./configure", "--disable-debug", "--disable-dependency-tracking", + "--prefix=#{prefix}", + "--with-readline" + system "make", "install" + end + + test do + assert_match /GNU Go #{version}$/, shell_output("#{bin}/gnugo --version") + end +end From a8f233a4e1a53ff245be55a4f53e313bf133c1d8 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:53 +0000 Subject: [PATCH 059/175] gnu-shogi: import from homebrew/games. --- Formula/gnu-shogi.rb | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Formula/gnu-shogi.rb diff --git a/Formula/gnu-shogi.rb b/Formula/gnu-shogi.rb new file mode 100644 index 000000000000..69429d42b8e0 --- /dev/null +++ b/Formula/gnu-shogi.rb @@ -0,0 +1,27 @@ +class GnuShogi < Formula + desc "GNU Shogi (Japanese Chess)" + homepage "https://www.gnu.org/software/gnushogi/" + url "https://ftpmirror.gnu.org/gnushogi/gnushogi-1.4.2.tar.gz" + mirror "https://ftp.gnu.org/gnu/gnushogi/gnushogi-1.4.2.tar.gz" + sha256 "1ecc48a866303c63652552b325d685e7ef5e9893244080291a61d96505d52b29" + + bottle do + sha256 "d5f6a61a19d4a7021f7df9a2531ac416a20bda3c5ac57e03c388634d62aafe8e" => :yosemite + sha256 "f6b79feeeed71109d169782a5cfd744073b4d7e18cd56f6a97bfa0d551225083" => :mavericks + sha256 "40db203ce21ba253edf1bd714bae5f065e9119cc9cadfde4439d18dd45db343a" => :mountain_lion + end + + def install + system "./configure", "--prefix=#{prefix}" + system "make" + system "make", "install", "MANDIR=#{man6}", "INFODIR=#{info}" + end + + test do + (testpath/"test").write <<-EOS.undent + 7g7f + exit + EOS + system "#{bin}/gnushogi < test" + end +end From f6eaf2b84c1970a4368537ad546d439c73185012 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:53 +0000 Subject: [PATCH 060/175] gnuski: import from homebrew/games. --- Formula/gnuski.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Formula/gnuski.rb diff --git a/Formula/gnuski.rb b/Formula/gnuski.rb new file mode 100644 index 000000000000..1a3bcd153b78 --- /dev/null +++ b/Formula/gnuski.rb @@ -0,0 +1,18 @@ +class Gnuski < Formula + desc "Open source clone of Skifree" + homepage "http://gnuski.sourceforge.net/" + url "https://downloads.sourceforge.net/project/gnuski/gnuski/gnuski-0.3/gnuski-0.3.tar.gz" + sha256 "1b629bd29dd6ad362b56055ccdb4c7ad462ff39d7a0deb915753c2096f5f959d" + + bottle do + cellar :any_skip_relocation + sha256 "8dbf391590db15b5fc88034e5b964d1f938044e0a99c317ffc523bda3586a6ec" => :el_capitan + sha256 "11cc6933909b99946c338d372d8a967ef8cccd1e7f43b3ee727f149c193ebfc6" => :yosemite + sha256 "82066055b0f45e86adb2ca749980a9d455d31bdf042ec8d0c9444e7a9a5e82a3" => :mavericks + end + + def install + system "make" + bin.install "gnuski" + end +end From a690015866b0f93df417b29404db025155c970e4 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:54 +0000 Subject: [PATCH 061/175] go-gui: import from homebrew/games. --- Formula/go-gui.rb | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Formula/go-gui.rb diff --git a/Formula/go-gui.rb b/Formula/go-gui.rb new file mode 100644 index 000000000000..333ad50e3d57 --- /dev/null +++ b/Formula/go-gui.rb @@ -0,0 +1,47 @@ +class GoGui < Formula + desc "GUI for playing Go over Go Text Protocol" + homepage "http://gogui.sourceforge.net" + url "https://downloads.sourceforge.net/project/gogui/gogui/1.4.9/gogui-1.4.9.zip" + sha256 "32684b756ab5b6bf9412c035594eddfd1be9250de12d348c3501850857b86662" + + head do + url "git://git.code.sf.net/p/gogui/code" + + depends_on "docbook" => :build + depends_on "docbook-xsl" => :build + end + + depends_on :ant => :build + depends_on :java => "1.6" + + resource "quaqua" do + url "http://www.randelshofer.ch/quaqua/files/quaqua-5.4.1.nested.zip" + sha256 "a01ce8bcce6e81941ca928468e728e76e0773957c685c349474ee04f3be677d6" + end + + def install + inreplace "build.xml", "/Developer/Tools/SetFile", "/usr/bin/SetFile" + if build.head? + resource("quaqua").stage do + system "unzip", "quaqua-*.zip" + (buildpath/"lib").install "Quaqua/dist/quaqua.jar" + end + args = %W[ + -Ddocbook-xsl.dir=#{Formula["docbook-xsl"].prefix}/docbook-xsl + -Ddocbook.dtd-4.2=#{Formula["docbook"].prefix}/docbook/xml/4.2 + ] + else + args = %w[ + -Ddoc-uptodate=true + ] + end + system "ant", "gogui.app", *args + prefix.install "build/GoGui.app" + bin.write_exec_script "#{prefix}/GoGui.app/Contents/MacOS/JavaApplicationStub" + mv "#{bin}/JavaApplicationStub", "#{bin}/gogui" + end + + test do + assert_equal "GoGui #{version}", shell_output("#{bin}/gogui -version").chomp + end +end From a51496bd9000c534ed778444502ab738ba141bee Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:54 +0000 Subject: [PATCH 062/175] gpcslots2: import from homebrew/games. --- Formula/gpcslots2.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Formula/gpcslots2.rb diff --git a/Formula/gpcslots2.rb b/Formula/gpcslots2.rb new file mode 100644 index 000000000000..d7f7f423c713 --- /dev/null +++ b/Formula/gpcslots2.rb @@ -0,0 +1,17 @@ +class Gpcslots2 < Formula + desc "Casino text-console game" + homepage "http://sourceforge.net/projects/gpcslots2/" + url "https://downloads.sourceforge.net/project/gpcslots2/gpcslots2_0-4-5b" + version "0.4.5b" + sha256 "4daf5b6e5a23fe6cd121fe1250f10ad9f3b936bd536d475ec585f57998736f55" + + bottle :unneeded + + def install + bin.install "gpcslots2_0-4-5b" => "gpcslots2" + end + + test do + system "#{bin}/gpcslots2", "-h" + end +end From 95f085d0b08eee658a49c3cd04b5eedd82f7215e Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:54 +0000 Subject: [PATCH 063/175] greed: import from homebrew/games. --- Formula/greed.rb | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Formula/greed.rb diff --git a/Formula/greed.rb b/Formula/greed.rb new file mode 100644 index 000000000000..6dc2c416d233 --- /dev/null +++ b/Formula/greed.rb @@ -0,0 +1,36 @@ +class Greed < Formula + desc "Game of consumption" + homepage "http://www.catb.org/~esr/greed/" + url "http://www.catb.org/~esr/greed/greed-4.1.tar.gz" + sha256 "2356151b2f95badcb8ad413ca88ee7022a46b11b2edab5b096de6d033778b1ea" + head "https://gitlab.com/esr/greed.git" + + bottle do + cellar :any_skip_relocation + sha256 "9a34bc7c0d767d0687f2d302173b1a93977512f11106e78269e82faf8d824957" => :el_capitan + sha256 "122677213cbe13f011da1b06ebea4f24812c6c8a3c68f702151922f665dfaaec" => :yosemite + sha256 "72c17694248c5bd5a8cba9947e2f04a6475116b8ed5d04a6b45a35c6f95101fb" => :mavericks + end + + def install + # Handle hard-coded destination + inreplace "Makefile", "/usr/share/man/man6", man6 + # Make doesn't make directories + bin.mkpath + man6.mkpath + (var/"greed").mkpath + # High scores will be stored in var/greed + system "make", "SFILE=#{var}/greed/greed.hs" + system "make", "install", "BIN=#{bin}" + end + + def caveats; <<-EOS.undent + High scores will be stored in the following location: + #{var}/greed/greed.hs + EOS + end + + test do + File.executable? "#{bin}/greed" + end +end From ee2cdf59aea3a55177d7b646d40f51524f09145e Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:54 +0000 Subject: [PATCH 064/175] guichan: import from homebrew/games. --- Formula/guichan.rb | 167 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 167 insertions(+) create mode 100644 Formula/guichan.rb diff --git a/Formula/guichan.rb b/Formula/guichan.rb new file mode 100644 index 000000000000..ff1946cb244e --- /dev/null +++ b/Formula/guichan.rb @@ -0,0 +1,167 @@ +class Guichan < Formula + desc "small, efficient C++ GUI library designed for games" + homepage "http://guichan.sourceforge.net/oldsite/about.shtml" + url "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/guichan/guichan-0.8.2.tar.gz" + sha256 "eedf206eae5201eaae027b133226d0793ab9a287bfd74c5f82c7681e3684eeab" + + bottle do + cellar :any + sha256 "980c483e7566fc69294a26a603bcf474fe74c660840916ef238ea9f88a27daed" => :el_capitan + sha256 "60ac3594c93c20b0a992d85990d981e9d5f9de42492c0f3ab7b49a83286e655f" => :yosemite + sha256 "8e1358e9b004b2889abb90ff24fb9ce22f2fa6efb856db76a708ececac0609f1" => :mavericks + end + + depends_on "sdl_image" + # "with-allegro" requires allegero-config. But that is no longer supplied from ver. 4.9. + + resource "fixedfont.bmp" do + url "http://guichan.sourceforge.net/oldsite/images/fixedfont.bmp" + sha256 "fc6144c8fefa27c207560820450abb41378c705a0655f536ce33e44a5332c5cc" + end + + def install + ENV.append "CPPFLAGS", "-I#{Formula["sdl_image"].opt_include}/SDL" + ENV.append "LDFLAGS", "-lSDL -lSDL_image -framework OpenGL" + inreplace "src/opengl/Makefile.in", "-no-undefined", " " + inreplace "src/sdl/Makefile.in", "-no-undefined", " " + + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--disable-silent-rules", + "--prefix=#{prefix}" + system "make", "install" + end + + test do + testpath.install resource("fixedfont.bmp") + (testpath/"helloworld.cpp").write <<-EOS.undent + #include + #include + #include + #include "SDL/SDL.h" + + bool running = true; + + SDL_Surface* screen; + SDL_Event event; + + gcn::SDLInput* input; // Input driver + gcn::SDLGraphics* graphics; // Graphics driver + gcn::SDLImageLoader* imageLoader; // For loading images + + gcn::Gui* gui; // A Gui object - binds it all together + gcn::Container* top; // A top container + gcn::ImageFont* font; // A font + gcn::Label* label; // And a label for the Hello World text + + void init() + { + SDL_Init(SDL_INIT_VIDEO); + screen = SDL_SetVideoMode(640, 480, 32, SDL_HWSURFACE); + SDL_EnableUNICODE(1); + SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL); + + imageLoader = new gcn::SDLImageLoader(); + gcn::Image::setImageLoader(imageLoader); + graphics = new gcn::SDLGraphics(); + graphics->setTarget(screen); + input = new gcn::SDLInput(); + + top = new gcn::Container(); + top->setDimension(gcn::Rectangle(0, 0, 640, 480)); + gui = new gcn::Gui(); + gui->setGraphics(graphics); + gui->setInput(input); + gui->setTop(top); + font = new gcn::ImageFont("fixedfont.bmp", " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"); + gcn::Widget::setGlobalFont(font); + + label = new gcn::Label("Hello World"); + label->setPosition(280, 220); + top->add(label); + } + + void halt() + { + delete label; + delete font; + delete top; + delete gui; + delete input; + delete graphics; + delete imageLoader; + } + + void checkInput() + { + while(SDL_PollEvent(&event)) + { + if (event.type == SDL_KEYDOWN) + { + if (event.key.keysym.sym == SDLK_ESCAPE) + { + running = false; + } + if (event.key.keysym.sym == SDLK_f) + { + if (event.key.keysym.mod & KMOD_CTRL) + { + // Works with X11 only + SDL_WM_ToggleFullScreen(screen); + } + } + } + else if(event.type == SDL_QUIT) + { + running = false; + } + input->pushInput(event); + } + } + + void run() + { + while(running) + { + checkInput(); + gui->logic(); + gui->draw(); + SDL_Flip(screen); + } + } + + int main(int argc, char **argv) + { + try + { + init(); + run(); + halt(); + } + catch (gcn::Exception e) + { + std::cerr << e.getMessage() << std::endl; + return 1; + } + catch (std::exception e) + { + std::cerr << "Std exception: " << e.what() << std::endl; + return 1; + } + catch (...) + { + std::cerr << "Unknown exception" << std::endl; + return 1; + } + return 0; + } + EOS + system ENV.cc, "helloworld.cpp", ENV.cppflags, "-I#{HOMEBREW_PREFIX}/include/SDL", + "-L#{Formula["SDL"].opt_lib}", "-framework", "Foundation", "-framework", "CoreGraphics", "-framework", "Cocoa", + "-lSDL", "-lSDLmain", "-lSDL_image", "-lguichan", "-lguichan_sdl", "-lobjc", "-lc++", "-o", "helloworld" + helloworld = fork do + system testpath/"helloworld" + end + Process.kill("TERM", helloworld) + end +end From a9765380191a1350165150ce17fa10ab8ef65479 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:54 +0000 Subject: [PATCH 065/175] hatari: import from homebrew/games. --- Formula/hatari.rb | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Formula/hatari.rb diff --git a/Formula/hatari.rb b/Formula/hatari.rb new file mode 100644 index 000000000000..612cc458cb5d --- /dev/null +++ b/Formula/hatari.rb @@ -0,0 +1,41 @@ +class Hatari < Formula + desc "Atari ST/STE/TT/Falcon emulator" + homepage "https://hatari.tuxfamily.org" + url "https://download.tuxfamily.org/hatari/2.0.0/hatari-2.0.0.tar.bz2" + sha256 "52a447a59b6979d55d1525f3c4a21ec013e4371354d6683ede71546c5e6da577" + head "https://hg.tuxfamily.org/mercurialroot/hatari/hatari", :using => :hg, :branch => "default" + + bottle do + cellar :any + sha256 "33cb425e5dfc9a746ae0a003e7de76bd0f0ab7c48d57f90fd7f7cab1f97be586" => :sierra + sha256 "96e75e0d2235ead48758ef5dd11d1ecc1e5415190d8c521fd5b26f329673a738" => :el_capitan + sha256 "443350d22e25674a03d149e313c17974cb44eed80c30a7dfab89410b7d748caf" => :yosemite + end + + depends_on "cmake" => :build + depends_on "libpng" + depends_on "sdl2" + depends_on "portaudio" + + # Download EmuTOS ROM image + resource "emutos" do + url "https://downloads.sourceforge.net/project/emutos/emutos/0.9.6/emutos-512k-0.9.6.zip" + sha256 "2c7d57cac6792d0c7e921f9655f224b039402283dd24c894b085c7b6e9a053a6" + end + + def install + # Set .app bundle destination + inreplace "src/CMakeLists.txt", "/Applications", prefix + system "cmake", *std_cmake_args + system "make" + prefix.install "src/Hatari.app" + bin.write_exec_script "#{prefix}/Hatari.app/Contents/MacOS/hatari" + resource("emutos").stage do + (prefix/"Hatari.app/Contents/Resources").install "etos512k.img" => "tos.img" + end + end + + test do + assert_match /Hatari v#{version} -/, shell_output("#{bin}/hatari -v", 1) + end +end From c8deb3b2a1e9e81d229557dfd6b47849c42fca91 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:54 +0000 Subject: [PATCH 066/175] hexgui: import from homebrew/games. --- Formula/hexgui.rb | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Formula/hexgui.rb diff --git a/Formula/hexgui.rb b/Formula/hexgui.rb new file mode 100644 index 000000000000..a62aeac4c5f2 --- /dev/null +++ b/Formula/hexgui.rb @@ -0,0 +1,27 @@ +class Hexgui < Formula + desc "GUI for playing Hex over Hex Text Protocol" + homepage "https://sourceforge.net/p/benzene/hexgui/" + url "https://github.com/apetresc/hexgui/archive/v0.9.1.tar.gz" + sha256 "7ed1af209617ad2e4877e5f46b4ba78eced14f94fa581b65ac3111abc7613c08" + head "https://github.com/apetresc/hexgui.git" + + bottle do + cellar :any_skip_relocation + sha256 "5e87b126283782870c226f75fbb5afc11c2a67fba65531762de559bc41f543be" => :el_capitan + sha256 "322cd3dbad1e2988391b03d54ffd33db5b75b5fdd5032121581c86c673fd43ca" => :yosemite + sha256 "dd40606897e4153506c84c8fdac00d945774c1f5ac48ccbf70c2aedfbc2c2138" => :mavericks + end + + depends_on :ant => :build + depends_on :java => "1.6+" + + def install + system "ant" + libexec.install Dir["*"] + (bin/"hexgui").write_env_script libexec/"bin/hexgui", Language::Java.java_home_env("1.6+") + end + + test do + assert_match /^HexGui #{version} .*/, shell_output("#{bin}/hexgui -version").chomp + end +end From 04bcac2047169ec4e67e551586d17f90cc77c914 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:54 +0000 Subject: [PATCH 067/175] homeworlds: import from homebrew/games. --- Formula/homeworlds.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Formula/homeworlds.rb diff --git a/Formula/homeworlds.rb b/Formula/homeworlds.rb new file mode 100644 index 000000000000..ea97f2d0bc41 --- /dev/null +++ b/Formula/homeworlds.rb @@ -0,0 +1,14 @@ +class Homeworlds < Formula + desc "C++ framework for the game of Binary Homeworlds" + homepage "https://github.com/Quuxplusone/Homeworlds/" + url "https://github.com/Quuxplusone/Homeworlds.git", + :revision => "917cd7e7e6d0a5cdfcc56cd69b41e3e80b671cde" + version "20141022" + + depends_on "wxmac" + + def install + system "make" + bin.install "wxgui" => "homeworlds-wx", "annotate" => "homeworlds-cli" + end +end From 97f3439539247baebb15d720be353f46557981f7 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:54 +0000 Subject: [PATCH 068/175] huexpress: import from homebrew/games. --- Formula/huexpress.rb | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Formula/huexpress.rb diff --git a/Formula/huexpress.rb b/Formula/huexpress.rb new file mode 100644 index 000000000000..5377b593fa6b --- /dev/null +++ b/Formula/huexpress.rb @@ -0,0 +1,30 @@ +class Huexpress < Formula + desc "PC Engine emulator" + homepage "https://github.com/kallisti5/huexpress" + url "https://github.com/kallisti5/huexpress/archive/3.0.3.tar.gz" + sha256 "159a13cd469d0645377377604c0fc4b3d3d1980d4d0e71c634c293f99db2c497" + head "https://github.com/kallisti5/huexpress.git" + + bottle do + cellar :any + sha256 "aefa69c1df19635a784390e259890ca2107bf66a390c7e84bfd9f51c042f150a" => :el_capitan + sha256 "25302596add34af85e0381d09a363f1789becf9378b0181253867e418e83c935" => :yosemite + sha256 "5e85cb80e11a1d57413ae5d33321b773712cdafee692cef68082a748ec4affdd" => :mavericks + end + + depends_on "scons" => :build + depends_on "pkg-config" => :build + depends_on "sdl2" + depends_on "sdl2_mixer" => "with-libvorbis" + depends_on "libvorbis" + depends_on "libzip" + + def install + scons + bin.install ["src/huexpress", "src/hucrc"] + end + + test do + assert_match /Version #{version}$/, shell_output("#{bin}/huexpress -h", 1) + end +end From 1427e1d4290e664502da92c3d2f6a941bfce4db4 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:54 +0000 Subject: [PATCH 069/175] inform6: import from homebrew/games. --- Formula/inform6.rb | 55 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Formula/inform6.rb diff --git a/Formula/inform6.rb b/Formula/inform6.rb new file mode 100644 index 000000000000..02ef50178b8a --- /dev/null +++ b/Formula/inform6.rb @@ -0,0 +1,55 @@ +class Inform6 < Formula + desc "Design system for interactive fiction" + homepage "http://www.inform-fiction.org/inform6.html" + + stable do + url "http://ifarchive.flavorplex.com/if-archive/infocom/compilers/inform6/source/inform-6.32.1.tar.gz" + sha256 "d0526771968e6bdd79dbb09fce729ace3e18a34548b1de7e7095c5759e8f1205" + + patch do + # Fixes case-insensitivity issue that removes critical inform6 library files + # https://github.com/DavidGriffith/inform6unix/pull/1 (fixed in HEAD) + url "https://gist.githubusercontent.com/ziz/f2c0554ab0fefffab54b/raw/53182f68cfb7670ab5c99ff6238e9bdd19519f0d/inform6unix-6.32.1.patch" + sha256 "bd470d6d254002dd13bbbec8018afee24f4a2ebc1444c0b786262a847ed55a52" + end + end + bottle do + revision 1 + sha256 "298362a553b468718d19a84750b3b90c59130ccd2fc12d8f6a533ac27ba6e177" => :el_capitan + sha256 "17ff38723a643158f9a50d59b34ea6c556dfd8a45ff704f40b6bb1cbd7d2dbd1" => :yosemite + sha256 "5c0982e9a614c5dfcd529a060725a46624a391f45095b8bfdcadaba34834b806" => :mavericks + end + + devel do + url "http://ifarchive.flavorplex.com/if-archive/infocom/compilers/inform6/source/inform-6.33.1-b2.tar.gz" + version "6.33.1-b2" + sha256 "5e260d5114507b8294ab74f2dac35d5681fa294629a842d57811d04fa5833f8c" + end + + head do + url "https://github.com/DavidGriffith/inform6unix.git" + + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "libtool" => :build + end + + resource "Adventureland.inf" do + url "http://inform-fiction.org/examples/Adventureland/Adventureland.inf" + sha256 "3961388ff00b5dfd1ccc1bb0d2a5c01a44af99bdcf763868979fa43ba3393ae7" + end + + def install + system "./autogen.sh" if build.head? + system "./configure", "--disable-dependency-tracking", + "--prefix=#{prefix}" + system "make", "install" + end + + test do + resource("Adventureland.inf").stage do + system "#{bin}/inform", "Adventureland.inf" + assert File.exist? "Adventureland.z5" + end + end +end From 283f4187b70ec37399315584331ae2eabc04736c Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:54 +0000 Subject: [PATCH 070/175] instead: import from homebrew/games. --- Formula/instead.rb | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Formula/instead.rb diff --git a/Formula/instead.rb b/Formula/instead.rb new file mode 100644 index 000000000000..0769ba7d013e --- /dev/null +++ b/Formula/instead.rb @@ -0,0 +1,31 @@ +class Instead < Formula + desc "Interpreter of simple text adventures" + homepage "https://instead.syscall.ru/" + url "https://github.com/instead-hub/instead/archive/2.4.1.tar.gz" + sha256 "2368d6e7a38ce1e82feea3848d10916f52caf6103579ac5fbc2bd6dcfdf89c6e" + head "https://github.com/instead-hub/instead.git" + + bottle do + sha256 "7e363add5c92102b75aa71690bfcf68279aa573a06fb6e63457e840ad4111502" => :el_capitan + sha256 "9db3e6ff43659ea9b63ad59dbf27ee02d159d137d3e6aeabb2bffbab93b35f3b" => :yosemite + sha256 "09210457cf3c12e9afa5fc9e5a14cfe09a0c31ea072f9bee041125d68de79535" => :mavericks + end + + depends_on "cmake" => :build + depends_on "lua" + depends_on "sdl" + depends_on "sdl_image" + depends_on "sdl_mixer" + depends_on "sdl_ttf" + + def install + mkdir "build" do + system "cmake", "..", "-DWITH_GTK2=OFF", *std_cmake_args + system "make", "install" + end + end + + test do + assert_match /INSTEAD #{version} /, shell_output("#{bin}/instead -h 2>&1") + end +end From 662ac731e20e02cfe161afb441bbd50b1130ae1d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:54 +0000 Subject: [PATCH 071/175] jnethack: import from homebrew/games. --- Formula/jnethack.rb | 244 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 244 insertions(+) create mode 100644 Formula/jnethack.rb diff --git a/Formula/jnethack.rb b/Formula/jnethack.rb new file mode 100644 index 000000000000..5294264c892b --- /dev/null +++ b/Formula/jnethack.rb @@ -0,0 +1,244 @@ +require "etc" + +# Nethack the way God intended it to be played: from a terminal. + +# This formula is based on Nethack formula. +# The patches in DATA section are shamelessly stolen from MacPorts' jnethack portfile. + +class Jnethack < Formula + desc "Japanese localization of Nethack" + homepage "http://jnethack.sourceforge.jp/" + url "https://downloads.sourceforge.net/project/nethack/nethack/3.4.3/nethack-343-src.tgz" + version "3.4.3-0.11" + sha256 "bb39c3d2a9ee2df4a0c8fdde708fbc63740853a7608d2f4c560b488124866fe4" + + # needs X11 locale for i18n + depends_on :x11 + + # Don't remove save folder + skip_clean "libexec/save" + + patch do + url "http://iij.dl.sourceforge.jp/jnethack/58545/jnethack-3.4.3-0.11.diff.gz" + sha256 "fbc071f6b33c53d89e8f13319ced952e605499a21d2086077296c631caff7389" + end + + patch :DATA + + def install + # Build everything in-order; no multi builds. + ENV.deparallelize + + ENV["HOMEBREW_CFLAGS"] = ENV.cflags + + # Symlink makefiles + system "sh", "sys/unix/setup.sh" + + inreplace "include/config.h", + /^#\s*define HACKDIR.*$/, + "#define HACKDIR \"#{libexec}\"" + + # Enable wizard mode for the current user + wizard = Etc.getpwuid.name + + inreplace "include/config.h", + /^#\s*define\s+WIZARD\s+"wizard"/, + "#define WIZARD \"#{wizard}\"" + + inreplace "include/config.h", + /^#\s*define\s+WIZARD_NAME\s+"wizard"/, + "#define WIZARD_NAME \"#{wizard}\"" + + cd "dat" do + system "make" + + %w[perm logfile].each do |f| + touch f + libexec.install f + end + + # Stage the data + libexec.install %w[jhelp jhh jcmdhelp jhistory jopthelp jwizhelp dungeon license data jdata.base joracles options jrumors.tru jrumors.fal quest.dat jquest.txt] + libexec.install Dir["*.lev"] + end + + # Make the game + ENV.append_to_cflags "-I../include" + cd "src" do + system "make" + end + + bin.install "src/jnethack" + (libexec+"save").mkpath + end +end + +__END__ +--- nethack/src/options.c.orig 2006-08-12 16:45:15.000000000 +0900 ++++ nethack/src/options.c 2006-08-12 16:45:43.000000000 +0900 +@@ -137,7 +137,7 @@ + #else + {"news", (boolean *)0, FALSE, SET_IN_FILE}, + #endif +- {"null", &flags.null, TRUE, SET_IN_GAME}, ++ {"null", &flags.null, FALSE, SET_IN_GAME}, + #ifdef MAC + {"page_wait", &flags.page_wait, TRUE, SET_IN_GAME}, + #else +--- nethack/sys/unix/Makefile.doc.orig 2006-07-29 05:14:04.000000000 +0900 ++++ nethack/sys/unix/Makefile.doc 2006-07-29 05:24:47.000000000 +0900 +@@ -40,8 +40,8 @@ + latex Guidebook.tex + + +-GAME = nethack +-MANDIR = /usr/local/man/man6 ++GAME = jnethack ++MANDIR = $(DESTDIR)HOMEBREW_PREFIX/share/man/man6 + MANEXT = 6 + + # manual installation for most BSD-style systems +--- nethack/sys/unix/Makefile.src.orig 2008-05-12 09:35:18.000000000 +0900 ++++ nethack/sys/unix/Makefile.src 2008-05-12 09:36:38.000000000 +0900 +@@ -36,7 +36,7 @@ + # SHELL=E:/GEMINI2/MUPFEL.TTP + + # Normally, the C compiler driver is used for linking: +-LINK=$(CC) ++LINK=$(CC) $(CFLAGS) + + # Pick the SYSSRC and SYSOBJ lines corresponding to your desired operating + # system. +@@ -72,7 +72,7 @@ + # + # If you are using GCC 2.2.2 or higher on a DPX/2, just use: + # +-CC = gcc ++#CC = gcc + # + # For HP/UX 10.20 with GCC: + # CC = gcc -D_POSIX_SOURCE +@@ -154,8 +154,8 @@ + # flags for debugging: + # CFLAGS = -g -I../include + +-CFLAGS = -W -g -O -I../include +-LFLAGS = ++CFLAGS = $(HOMEBREW_CFLAGS) -I../include ++LFLAGS = $(LDFLAGS) + + # The Qt and Be window systems are written in C++, while the rest of + # NetHack is standard C. If using Qt, uncomment the LINK line here to get +--- nethack/sys/unix/Makefile.top.orig 2006-08-11 13:30:01.000000000 +0900 ++++ nethack/sys/unix/Makefile.top 2006-08-11 13:35:41.000000000 +0900 +@@ -14,18 +14,18 @@ + # MAKE = make + + # make NetHack +-PREFIX = /usr ++PREFIX = $(DESTDIR)HOMEBREW_PREFIX + GAME = jnethack + # GAME = nethack.prg + GAMEUID = games +-GAMEGRP = bin ++GAMEGRP = games + + # Permissions - some places use setgid instead of setuid, for instance + # See also the option "SECURE" in include/config.h +-GAMEPERM = 04755 +-FILEPERM = 0644 ++GAMEPERM = 02755 ++FILEPERM = 0664 + EXEPERM = 0755 +-DIRPERM = 0755 ++DIRPERM = 0775 + + # GAMEDIR also appears in config.h as "HACKDIR". + # VARDIR may also appear in unixconf.h as "VAR_PLAYGROUND" else GAMEDIR +@@ -35,9 +35,9 @@ + # therefore there should not be anything in GAMEDIR that you want to keep + # (if there is, you'll have to do the installation by hand or modify the + # instructions) +-GAMEDIR = $(PREFIX)/games/lib/$(GAME)dir ++GAMEDIR = $(PREFIX)/share/$(GAME)dir + VARDIR = $(GAMEDIR) +-SHELLDIR = $(PREFIX)/games ++SHELLDIR = $(PREFIX)/bin + + # per discussion in Install.X11 and Install.Qt + VARDATND = +--- nethack/sys/unix/Makefile.utl.orig 2008-05-12 10:17:59.000000000 +0900 ++++ nethack/sys/unix/Makefile.utl 2008-05-12 10:19:33.000000000 +0900 +@@ -15,7 +15,7 @@ + + # if you are using gcc as your compiler, + # uncomment the CC definition below if it's not in your environment +-CC = gcc ++#CC = gcc + # + # For Bull DPX/2 systems at B.O.S. 2.0 or higher use the following: + # +@@ -89,8 +89,8 @@ + # flags for debugging: + # CFLAGS = -g -I../include + +-CFLAGS = -O -I../include +-LFLAGS = ++CFLAGS = $(HOMEBREW_CFLAGS) -I../include ++LFLAGS = $(LDFLAGS) + + LIBS = + +@@ -276,7 +276,7 @@ + # dependencies for recover + # + recover: $(RECOVOBJS) +- $(CC) $(LFLAGS) -o recover $(RECOVOBJS) $(LIBS) ++ $(CC) $(CFLAGS) $(LFLAGS) -o recover $(RECOVOBJS) $(LIBS) + + recover.o: recover.c $(CONFIG_H) ../include/date.h + +--- nethack/sys/unix/nethack.sh.orig 2006-08-24 23:23:30.000000000 +0900 ++++ nethack/sys/unix/nethack.sh 2006-08-24 23:24:35.000000000 +0900 +@@ -5,6 +5,7 @@ + export HACKDIR + HACK=$HACKDIR/nethack + MAXNROFPLAYERS=20 ++COCOT="HOMEBREW_PREFIX/bin/cocot -t UTF-8 -p EUC-JP" + + # JP + # set LC_ALL, NETHACKOPTIONS etc.. +@@ -26,6 +27,10 @@ + export USERFILESEARCHPATH + fi + ++if [ "X$LANG" = "Xja_JP.eucJP" ] ; then ++ COCOT="" ++fi ++ + #if [ "X$DISPLAY" ] ; then + # xset fp+ $HACKDIR + #fi +@@ -84,9 +89,9 @@ + cd $HACKDIR + case $1 in + -s*) +- exec $HACK "$@" ++ exec $COCOT $HACK "$@" + ;; + *) +- exec $HACK "$@" $MAXNROFPLAYERS ++ exec $COCOT $HACK "$@" $MAXNROFPLAYERS + ;; + esac +--- nethack/win/tty/termcap.c.orig 2006-08-09 19:55:36.000000000 +0900 ++++ nethack/win/tty/termcap.c 2006-08-09 20:05:44.000000000 +0900 +@@ -861,7 +861,7 @@ + + #include + +-#ifndef LINUX ++#if !defined(LINUX) && !defined(__APPLE__) + extern char *tparm(); + #endif + From d197b8b28b3b6394297ebd95caf4947be8250940 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:54 +0000 Subject: [PATCH 072/175] jpcsp: import from homebrew/games. --- Formula/jpcsp.rb | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Formula/jpcsp.rb diff --git a/Formula/jpcsp.rb b/Formula/jpcsp.rb new file mode 100644 index 000000000000..a8127d51f2cf --- /dev/null +++ b/Formula/jpcsp.rb @@ -0,0 +1,35 @@ +class Jpcsp < Formula + desc "PSP emulator written in Java" + homepage "http://jpcsp.org/" + url "https://github.com/jpcsp/jpcsp.git", :revision => "9bf0cb72568e4c7170c6c5b0a975e0ff2f5205d1" + version "0.7+20160322" + head "https://github.com/jpcsp/jpcsp.git" + + bottle do + cellar :any + sha256 "cdfd6715e70f271ee1df320a230951edcc173bb9d70c84298c1665c4c64c868c" => :el_capitan + sha256 "68861093a2cb32f11c6769abca9e718b404547824f86f14eb7564ae65dfc4f4a" => :yosemite + sha256 "d04a5ffea0538bc056a009e307343a05cc06f3e53cac6125c5916c31b44953f3" => :mavericks + end + + depends_on "ant" => :build + depends_on "p7zip" => :build + depends_on :java => "1.6+" + + def install + system "ant", "-f", "build-auto.xml", "dist-macosx" + chmod 0755, "dist/jpcsp-macosx/Jpcsp.app/Contents/MacOS/JavaApplicationStub" + prefix.install "dist/jpcsp-macosx/Jpcsp.app" + bin.write_exec_script "#{prefix}/Jpcsp.app/Contents/MacOS/JavaApplicationStub" + mv "#{bin}/JavaApplicationStub", "#{bin}/jpcsp" + end + + def caveats; <<-EOS.undent + ISO/CSO images are to be placed in the following directory: + #{prefix}/Jpcsp.app/Contents/Resources/Java/umdimages + + To avoid any incidental wipeout upon future updates, change it to + a safe location (under Options > Settings > General > UMD path folders). + EOS + end +end From 868018ed20f7452b4e1851c56c0a55d97c682588 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:55 +0000 Subject: [PATCH 073/175] lcs: import from homebrew/games. --- Formula/lcs.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Formula/lcs.rb diff --git a/Formula/lcs.rb b/Formula/lcs.rb new file mode 100644 index 000000000000..2fe1e4137496 --- /dev/null +++ b/Formula/lcs.rb @@ -0,0 +1,17 @@ +class Lcs < Formula + desc "Satirical console-based political role-playing/strategy game" + homepage "http://sourceforge.net/projects/lcsgame/" + url "svn://svn.code.sf.net/p/lcsgame/code/trunk", :revision => "738" + version "4.07.4b" + + head "svn://svn.code.sf.net/p/lcsgame/code/trunk" + + depends_on "autoconf" => :build + depends_on "automake" => :build + + def install + system "./bootstrap" + system "./configure", "LIBS=-liconv", "--prefix=#{prefix}" + system "make", "install" + end +end From 4e09e77a2252b8403d6bd7f070a86e395edd3123 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:55 +0000 Subject: [PATCH 074/175] libggz: import from homebrew/games. --- Formula/libggz.rb | 59 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Formula/libggz.rb diff --git a/Formula/libggz.rb b/Formula/libggz.rb new file mode 100644 index 000000000000..80c7846a5798 --- /dev/null +++ b/Formula/libggz.rb @@ -0,0 +1,59 @@ +class Libggz < Formula + desc "The libggz library wraps many common low-level functions." + homepage "http://dev.ggzgamingzone.org/libraries/libggz/" + url "http://mirrors.ibiblio.org/ggzgamingzone/ggz/0.0.14.1/libggz-0.0.14.1.tar.gz" + sha256 "54301052a327f2ff3f2d684c5b1d7920e8601e13f4f8d5f1d170e5a7c9585e85" + + bottle do + cellar :any + sha256 "4d7d16c238744f95a8a8036071fc1f91ef2208b739d0b3a3aeba2ee5ed21fb61" => :el_capitan + sha256 "70c9a8476e4b7089b62e119ecec56734fcd5d2d44995b9a7cf6fb3f85baf79ab" => :yosemite + sha256 "a72920286680f0f8f38ef0dca92908e6da98e8b88fa74351616110b112c85c49" => :mavericks + end + + # Libggz of this version is unable to build with gnutls-30 and later. + depends_on "libgcrypt" + depends_on "gettext" + + def install + ENV.append "CPPFLAS", "-I#{Formula["gettext"].opt_prefix}/include" + ENV.append "LDFLAGS", "-L#{Formula["gettext"].opt_prefix}/lib" + + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--disable-silent-rules", + "--prefix=#{prefix}", + "--with-gcrypt" + system "make", "check" + system "make", "install" + end + + test do + (testpath/"test.c").write <<-EOS.undent + #include + + #include + + int main(void) + { + int errs = 0; + char *teststr, *instr, *outstr; + + teststr = "" >< &&"; + instr = teststr; + outstr = ggz_xml_escape(instr); + instr = ggz_xml_unescape(outstr); + if(strcmp(instr, teststr)) { + errs++; + } + ggz_free(instr); + ggz_free(outstr); + ggz_memory_check(); + + return errs; + } + EOS + system ENV.cc, "test.c", ENV.cppflags, "-L/usr/lib", "-L#{lib}", "-lggz", "-o", "test" + system "./test" + end +end From fcebafea5ba9c28978afb29a2b731b83c48c5b3e Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:55 +0000 Subject: [PATCH 075/175] liblcf: import from homebrew/games. --- Formula/liblcf.rb | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Formula/liblcf.rb diff --git a/Formula/liblcf.rb b/Formula/liblcf.rb new file mode 100644 index 000000000000..f0f9eadc4b33 --- /dev/null +++ b/Formula/liblcf.rb @@ -0,0 +1,47 @@ +class Liblcf < Formula + desc "Library for RPG Maker 2000/2003 games data" + homepage "https://easyrpg.org/" + url "https://github.com/EasyRPG/liblcf/archive/0.5.0.tar.gz" + sha256 "27333416afd5069429d5a81fd032faad6f8fe60bd1bfe0ac3240c1496dce90f2" + revision 1 + head "https://github.com/EasyRPG/liblcf.git" + + bottle do + cellar :any + sha256 "b3157783da712d9e7e159a0f7bb654e01384813613befa9eda8488940df658c7" => :sierra + sha256 "6243f9c34e36b4ddd2cd078c79934dc57d1498b5ab1645a7a5f38fb4fd45e55f" => :el_capitan + sha256 "c7db4406fa2035cdf5b5ff527a28799e2a068d7738e9452ae1bef1e88331d599" => :yosemite + end + + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "libtool" => :build + depends_on "pkg-config" => :build + depends_on "icu4c" + depends_on "expat" + + def install + system "autoreconf", "-i" + system "./configure", "--disable-dependency-tracking", + "--disable-silent-rules", + "--prefix=#{prefix}" + system "make", "check" + system "make", "install" + end + + test do + (testpath/"test.cpp").write <<-EOS.undent + #include "lsd_reader.h" + #include + + int main() { + std::time_t const current = std::time(NULL); + assert(current == LSD_Reader::ToUnixTimestamp(LSD_Reader::ToTDateTime(current))); + return 0; + } + EOS + system ENV.cc, "test.cpp", "-I#{include}/liblcf", "-L#{lib}", "-llcf", "-std=c++11", \ + "-o", "test" + system "./test" + end +end From a66a1b70f716f5b31a50dfc5dc665884f47c44eb Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:55 +0000 Subject: [PATCH 076/175] libspectrum: import from homebrew/games. --- Formula/libspectrum.rb | 46 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Formula/libspectrum.rb diff --git a/Formula/libspectrum.rb b/Formula/libspectrum.rb new file mode 100644 index 000000000000..d54c47ada09e --- /dev/null +++ b/Formula/libspectrum.rb @@ -0,0 +1,46 @@ +class Libspectrum < Formula + desc "Support library for ZX Spectrum emulator" + homepage "http://fuse-emulator.sourceforge.net/libspectrum.php" + url "https://downloads.sourceforge.net/project/fuse-emulator/libspectrum/1.3.2/libspectrum-1.3.2.tar.gz" + sha256 "c7d7580097116a7afd90f1e3d000e4b7a66b20178503f11e03b3a95180208c3f" + + bottle do + cellar :any + sha256 "dac41d17a30a8f9b4e65bfcd54ee684484fbfc5e86313cf3ace3f68aa41dbee5" => :sierra + sha256 "19b8dbb3542c1b7c890083cbdd632e90382125876a2a35f9385f6658e9e25fca" => :el_capitan + sha256 "f04142727815bb59686b49b34b0e0ebc1d9fb7f5061d80e2aaf24f4141e0569f" => :yosemite + end + + head do + url "http://svn.code.sf.net/p/fuse-emulator/code/trunk/libspectrum" + depends_on "automake" => :build + depends_on "autoconf" => :build + depends_on "libtool" => :build + end + + depends_on "pkg-config" => :build + depends_on "libgcrypt" => :recommended + depends_on "glib" => :recommended + depends_on "audiofile" => :recommended + + def install + system "./autogen.sh" if build.head? + system "./configure", "--prefix=#{prefix}" + system "make", "install" + end + + test do + (testpath/"test.c").write <<-EOS.undent + #include "libspectrum.h" + #include + + int main() { + assert(libspectrum_init() == LIBSPECTRUM_ERROR_NONE); + assert(strcmp(libspectrum_version(), "#{version}") == 0); + return 0; + } + EOS + system ENV.cc, "test.c", "-I#{include}", "-L#{lib}", "-lspectrum", "-o", "test" + system "./test" + end +end From e5a24d53d29a5fd7332fe97f5b8507fca28a4687 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:55 +0000 Subject: [PATCH 077/175] libtcod: import from homebrew/games. --- Formula/libtcod.rb | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Formula/libtcod.rb diff --git a/Formula/libtcod.rb b/Formula/libtcod.rb new file mode 100644 index 000000000000..0e67f47ea8c4 --- /dev/null +++ b/Formula/libtcod.rb @@ -0,0 +1,27 @@ +class Libtcod < Formula + desc "API for roguelike developpers" + homepage "http://roguecentral.org/doryen/libtcod/" + url "https://bitbucket.org/libtcod/libtcod/get/1.5.1.tar.bz2" + sha256 "290145f760371881bcc6aa3fda256a2927f9210acc3f0a7230c5dfd57d9052d0" + + depends_on "cmake" => :build + depends_on "sdl" + + def install + # Remove unnecessary X11 check - our SDL doesn't use X11 + inreplace "CMakelists.txt" do |s| + s.gsub! "find_package(X11 REQUIRED)", "" + s.gsub! "${X11_INCLUDE_DIRS}", "" + end + + system "cmake", ".", *std_cmake_args + system "make" + + # cmake produces an install target, but it installs nothing + lib.install "src/libtcod.dylib" + lib.install "src/libtcod-gui.dylib" + include.install Dir["include/*"] + # don't yet know what this is for + libexec.install "data" + end +end From 0aa67dc48ff48cf28693c7badda54855cb5e05cb Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:55 +0000 Subject: [PATCH 078/175] lincity-ng: import from homebrew/games. --- Formula/lincity-ng.rb | 56 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Formula/lincity-ng.rb diff --git a/Formula/lincity-ng.rb b/Formula/lincity-ng.rb new file mode 100644 index 000000000000..e161f5346a7a --- /dev/null +++ b/Formula/lincity-ng.rb @@ -0,0 +1,56 @@ +class LincityNg < Formula + desc "City simulation game" + homepage "https://github.com/lincity-ng/lincity-ng/" + revision 1 + head "https://github.com/lincity-ng/lincity-ng.git" + + stable do + url "https://github.com/lincity-ng/lincity-ng/archive/lincity-ng-2.0.tar.gz" + sha256 "e05a2c1e1d682fbf289caecd0ea46ca84b0db9de43c7f1b5add08f0fdbf1456b" + end + + bottle do + sha256 "52e481eb39b035267c438d0c7632f003b9c0442ed009dbc560a7f087bc7924c3" => :el_capitan + sha256 "00f2e62a528c4f6b55bbda893b4720a6c318d00eb2d30d3ff2accdcb84034f26" => :yosemite + sha256 "e0fbca775197ab15ec9a747af1acf883aa1a5191753fb4ceceec201aaff66c33" => :mavericks + end + + devel do + url "https://downloads.sourceforge.net/project/lincity-ng.berlios/lincity-ng-2.9.beta.tar.bz2" + version "2.9.beta" + sha256 "542506135e833f7fd7231c0a5b2ab532fab719d214add461227af72d97ac9d4f" + end + + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "pkg-config" => :build + depends_on "jam" => :build + depends_on "physfs" + depends_on "sdl" + depends_on "sdl_gfx" + depends_on "sdl_image" + depends_on "sdl_mixer" => "with-libvorbis" + depends_on "sdl_ttf" + + def install + # Generate CREDITS + system 'cat data/gui/creditslist.xml | grep -v "@" | cut -d\> -f2 | cut -d\< -f1 >CREDITS' + system "./autogen.sh" + system "./configure", "--disable-sdltest", + "--with-apple-opengl-framework", + "--prefix=#{prefix}", + "--datarootdir=#{pkgshare}" + system "jam", "install" + rm_rf ["#{pkgshare}/applications", "#{pkgshare}/pixmaps"] + end + + def caveats; <<-EOS.undent + If you have problem with fullscreen, try running in windowed mode: + lincity-ng -w + EOS + end + + test do + assert_match /lincity-ng version #{version}$/, shell_output("#{bin}/lincity-ng --version") + end +end From f1083e8791b3bf4bbde1bb5d5aca1afed22add0d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:55 +0000 Subject: [PATCH 079/175] magnetix: import from homebrew/games. --- Formula/magnetix.rb | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Formula/magnetix.rb diff --git a/Formula/magnetix.rb b/Formula/magnetix.rb new file mode 100644 index 000000000000..2b9aa7680616 --- /dev/null +++ b/Formula/magnetix.rb @@ -0,0 +1,34 @@ +class Magnetix < Formula + desc "Interpreter for Magnetic Scrolls adventures" + homepage "http://www.maczentrisch.de/magnetiX/" + url "http://www.maczentrisch.de/magnetiX/downloads/magnetiX_src.zip" + version "3.1" + sha256 "9862c95659c4db0c5cbe604163aefb503e48462c5769692010d8851d7b31c2fb" + + bottle do + cellar :any_skip_relocation + sha256 "ee4c817c04ed86ac02db49790b3c04614e8e0910b3ca8e2919cd109cfc0af859" => :yosemite + sha256 "77c8740e09b3653bceb2a346c7c6856ac0bd692c66c7499e2037e991376e536a" => :mavericks + sha256 "06f295ba2960f8f374030cc0d75753ac8ff90c1497e86dc68f11d06646cdad74" => :mountain_lion + end + + depends_on :xcode => :build + + def install + cd "magnetiX_src" do + xcodebuild + prefix.install "build/Default/magnetiX.app" + bin.write_exec_script "#{prefix}/magnetiX.app/Contents/MacOS/magnetiX" + end + end + + def caveats; <<-EOS.undent + Install games in the following directory: + ~/Library/Application Support/magnetiX/ + EOS + end + + test do + File.executable? "#{prefix}/magnetiX.app/Contents/MacOS/magnetiX" + end +end From 67e0dff0db5b46268912f3a5e78ba86c800c014a Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:55 +0000 Subject: [PATCH 080/175] mame: import from homebrew/games. --- Formula/mame.rb | 56 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Formula/mame.rb diff --git a/Formula/mame.rb b/Formula/mame.rb new file mode 100644 index 000000000000..ffa3ff1383e0 --- /dev/null +++ b/Formula/mame.rb @@ -0,0 +1,56 @@ +class Mame < Formula + desc "Multiple Arcade Machine Emulator" + homepage "http://mamedev.org/" + url "https://github.com/mamedev/mame/archive/mame0179.tar.gz" + version "0.179" + sha256 "d1616ef32b884c3e7913378ebf5282b6f846f895f419eb92a9068770581e081b" + head "https://github.com/mamedev/mame.git" + + bottle do + cellar :any + sha256 "cf8874630445d18a9144830d1264cf8bdcefc844650a0f0b95f2599817fb2e86" => :sierra + sha256 "7b4888946f886f88afb2c3af87efbc3d15bd3807c0bc865d322563a7cb3ccff6" => :el_capitan + sha256 "0b635b1d334826182cd8b26cb9fda82764dbb266a359e04064ac177bc30bf4ee" => :yosemite + end + + depends_on :macos => :yosemite + depends_on "pkg-config" => :build + depends_on "sphinx-doc" => :build + depends_on "sdl2" + depends_on "jpeg" + depends_on "flac" + depends_on "portmidi" + depends_on "portaudio" + + # Needs GCC 4.9 or newer + fails_with :gcc_4_0 + fails_with :gcc + ("4.3".."4.8").each do |n| + fails_with :gcc => n + end + + def install + inreplace "scripts/src/osd/sdl.lua", "--static", "" + system "make", "USE_LIBSDL=1", + "USE_SYSTEM_LIB_EXPAT=", # brewed version not picked up + "USE_SYSTEM_LIB_ZLIB=1", + "USE_SYSTEM_LIB_JPEG=1", + "USE_SYSTEM_LIB_FLAC=1", + "USE_SYSTEM_LIB_LUA=", # lua53 not available yet + "USE_SYSTEM_LIB_PORTMIDI=1", + "USE_SYSTEM_LIB_PORTAUDIO=1" + bin.install "mame64" => "mame" + cd "docs" do + system "make", "text" + doc.install Dir["build/text/*"] + system "make", "man" + man1.install "build/man/MAME.1" => "mame.1" + end + pkgshare.install %w[artwork bgfx hash ini keymaps plugins samples uismall.bdf] + end + + test do + assert shell_output("#{bin}/mame -help").start_with? "MAME v#{version}" + system "#{bin}/mame", "-validate" + end +end From 76e9bde21e5b3632a1d6f57b91066f1916ebbf21 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:55 +0000 Subject: [PATCH 081/175] mapcrafter: import from homebrew/games. --- Formula/mapcrafter.rb | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Formula/mapcrafter.rb diff --git a/Formula/mapcrafter.rb b/Formula/mapcrafter.rb new file mode 100644 index 000000000000..97ff66382277 --- /dev/null +++ b/Formula/mapcrafter.rb @@ -0,0 +1,41 @@ +class Mapcrafter < Formula + desc "Minecraft map renderer" + homepage "http://mapcrafter.org" + url "https://github.com/mapcrafter/mapcrafter/archive/v.2.3.1.tar.gz" + sha256 "b88e53ccffc00f83717f2e686dbed047b95f011187af2b7a23ba7f5cd3537679" + + bottle do + cellar :any + sha256 "1b9ee05f76a7b62f4f05c8ff3272270dc70238b629511d23bd80b3ae6a533f1e" => :el_capitan + sha256 "60fb27db0f09c5ca489c9e9201260a667c58eef7c99d81274b3f1afa2d2dcd30" => :yosemite + sha256 "902135b0b046e3915edf4fb7446390f10fca11a4bb84e73db2a7537d71108790" => :mavericks + end + + needs :cxx11 + + depends_on "cmake" => :build + depends_on "jpeg-turbo" + depends_on "libpng" + + if MacOS.version < :mavericks + depends_on "boost" => "c++11" + else + depends_on "boost" + end + + def install + ENV.cxx11 + + args = std_cmake_args + args << "-DJPEG_INCLUDE_DIR=#{Formula["jpeg-turbo"].opt_include}" + args << "-DJPEG_LIBRARY=#{Formula["jpeg-turbo"].opt_lib}/libjpeg.dylib" + + system "cmake", ".", *args + system "make", "install" + end + + test do + assert_match(/Mapcrafter/, + shell_output("#{bin}/mapcrafter --version")) + end +end From 06d65d72ded01b67a23aa9e4b6be01ed6a26ede8 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:55 +0000 Subject: [PATCH 082/175] mednafen: import from homebrew/games. --- Formula/mednafen.rb | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Formula/mednafen.rb diff --git a/Formula/mednafen.rb b/Formula/mednafen.rb new file mode 100644 index 000000000000..6597e655d04b --- /dev/null +++ b/Formula/mednafen.rb @@ -0,0 +1,35 @@ +class Mednafen < Formula + desc "Multi-system emulator" + homepage "http://mednafen.fobby.net/" + url "https://mednafen.github.io/releases/files/mednafen-0.9.41.tar.xz" + sha256 "74736b9b52a7ba6270b67ae8e6c876a887e0e26a00a7d96bdd49af17992aac47" + + bottle do + sha256 "9959b1e649d1557b5e3a1e9f0637fcc043caa0bd45ce6888785647dbee9495cf" => :sierra + end + + depends_on "pkg-config" => :build + depends_on "sdl" + depends_on "libsndfile" + depends_on "gettext" + + needs :cxx11 + + fails_with :clang do + build 800 + cause <<-EOS.undent + LLVM miscompiles some loop code with optimization + https://llvm.org/bugs/show_bug.cgi?id=15470 + EOS + end + + def install + ENV.cxx11 + system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking" + system "make", "install" + end + + test do + assert_equal version.to_s, shell_output("#{bin}/mednafen -dump_modules_def M >/dev/null || head -n 1 M").chomp + end +end From 496b00bd1ff3dea380a9f81467c6a3cc253304d8 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:55 +0000 Subject: [PATCH 083/175] mgba: import from homebrew/games. --- Formula/mgba.rb | 119 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 Formula/mgba.rb diff --git a/Formula/mgba.rb b/Formula/mgba.rb new file mode 100644 index 000000000000..c420efa3a492 --- /dev/null +++ b/Formula/mgba.rb @@ -0,0 +1,119 @@ +class Mgba < Formula + desc "Game Boy Advance emulator" + homepage "https://mgba.io/" + revision 1 + head "https://github.com/mgba-emu/mgba.git" + + stable do + url "https://github.com/mgba-emu/mgba/archive/0.5.2.tar.gz" + sha256 "3d9fda762e6e0dd26ffbd3cbaa5365dc7ca7ed324cee5c65b7c85eaa3c37c4f3" + + # Remove for > 0.5.2 + # Upstream commit from 18 Jan 2017 "Feature: Support ImageMagick 7" + # https://github.com/mgba-emu/mgba/commit/2e3daaedc208824c9b8a54480bd614160cdda9e7 + # Can't use the commit itself as a patch since it doesn't apply cleanly + patch :DATA + end + + bottle do + cellar :any + sha256 "6c14c5b6c16b661b1219f0c85e1fb6be5cc106d01ececc89474c860592807625" => :sierra + sha256 "cc0b67eb0f5bed1d38942174c46471bcc329a1d214f239e71fa280653ab0e60f" => :el_capitan + sha256 "d8fa03dc72b58c430e2b8b6dc382e84b0ccff5c2faafcbca93fcc8b307ee5749" => :yosemite + end + + depends_on "cmake" => :build + depends_on "pkg-config" => :build + depends_on "ffmpeg" => :recommended + depends_on "imagemagick" => :recommended + depends_on "libepoxy" => :recommended + depends_on "libpng" => :recommended + depends_on "libzip" => :recommended + depends_on "qt5" => :recommended + depends_on "sdl2" + + def install + inreplace "src/platform/qt/CMakeLists.txt" do |s| + # Avoid framework installation via tools/deploy-macosx.py + s.gsub! /(add_custom_command\(TARGET \${BINARY_NAME}-qt)/, '#\1' + # Install .app bundle into prefix, not prefix/Applications + s.gsub! "Applications", "." + end + + cmake_args = [] + cmake_args << "-DUSE_EPOXY=OFF" if build.without? "libepoxy" + cmake_args << "-DUSE_MAGICK=OFF" if build.without? "imagemagick" + cmake_args << "-DUSE_FFMPEG=OFF" if build.without? "ffmpeg" + cmake_args << "-DUSE_PNG=OFF" if build.without? "libpng" + cmake_args << "-DUSE_LIBZIP=OFF" if build.without? "libzip" + cmake_args << "-DBUILD_QT=OFF" if build.without? "qt5" + + system "cmake", ".", *cmake_args, *std_cmake_args + system "make", "install" + if build.with? "qt5" + # Replace SDL frontend binary with a script for running Qt frontend + # -DBUILD_SDL=OFF would be easier, but disable joystick support in Qt frontend + rm "#{bin}/mgba" + bin.write_exec_script "#{prefix}/mGBA.app/Contents/MacOS/mGBA" + end + end + + test do + system "#{bin}/mGBA", "-h" + end +end + +__END__ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3812082..6be1599 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -322,6 +322,7 @@ if(HAVE_UMASK) + endif() + + # Feature dependencies ++set(FEATURE_DEFINES) + set(FEATURES) + if(CMAKE_SYSTEM_NAME MATCHES .*BSD) + set(LIBEDIT_LIBRARIES -ledit) +@@ -431,11 +432,16 @@ if(USE_MAGICK) + list(APPEND FEATURE_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/feature/imagemagick/imagemagick-gif-encoder.c") + list(APPEND DEPENDENCY_LIB ${MAGICKWAND_LIBRARIES}) + string(REGEX MATCH "^[0-9]+\\.[0-9]+" MAGICKWAND_VERSION_PARTIAL ${MagickWand_VERSION}) ++ string(REGEX MATCH "^[0-9]+" MAGICKWAND_VERSION_MAJOR ${MagickWand_VERSION}) + if(${MAGICKWAND_VERSION_PARTIAL} EQUAL "6.7") + set(MAGICKWAND_DEB_VERSION "5") ++ elseif(${MagickWand_VERSION} EQUAL "6.9.7") ++ set(MAGICKWAND_DEB_VERSION "-6.q16-3") + else() + set(MAGICKWAND_DEB_VERSION "-6.q16-2") + endif() ++ list(APPEND FEATURE_DEFINES MAGICKWAND_VERSION_MAJOR=${MAGICKWAND_VERSION_MAJOR}) ++ + set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS},libmagickwand${MAGICKWAND_DEB_VERSION}") + endif() + +@@ -595,7 +601,6 @@ if(USE_DEBUGGERS) + list(APPEND FEATURES DEBUGGERS) + endif() + +-set(FEATURE_DEFINES) + foreach(FEATURE IN LISTS FEATURES) + list(APPEND FEATURE_DEFINES "USE_${FEATURE}") + endforeach() +diff --git a/src/feature/imagemagick/imagemagick-gif-encoder.h b/src/feature/imagemagick/imagemagick-gif-encoder.h +index 13505e6..842cad9 100644 +--- a/src/feature/imagemagick/imagemagick-gif-encoder.h ++++ b/src/feature/imagemagick/imagemagick-gif-encoder.h +@@ -15,7 +15,11 @@ CXX_GUARD_START + #define MAGICKCORE_HDRI_ENABLE 0 + #define MAGICKCORE_QUANTUM_DEPTH 8 + ++#if MAGICKWAND_VERSION_MAJOR >= 7 ++#include ++#else + #include ++#endif + + struct ImageMagickGIFEncoder { + struct mAVStream d; From c78958612cac691827b42cd51bd6c2a8a0a1e5aa Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:55 +0000 Subject: [PATCH 084/175] minetest: import from homebrew/games. --- Formula/minetest.rb | 70 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Formula/minetest.rb diff --git a/Formula/minetest.rb b/Formula/minetest.rb new file mode 100644 index 000000000000..538775aaee7f --- /dev/null +++ b/Formula/minetest.rb @@ -0,0 +1,70 @@ +class Minetest < Formula + desc "Free, open source voxel game engine and game" + homepage "http://www.minetest.net/" + + stable do + url "https://github.com/minetest/minetest/archive/0.4.15.tar.gz" + sha256 "5684e6118e3484f8901323f1ca4179202659010b33c72f02bc03df792493e3a9" + + resource "minetest_game" do + url "https://github.com/minetest/minetest_game/archive/0.4.15.tar.gz" + sha256 "f583ea55f511bbcc106c60f7d488ec3fe6b961efc3fd648603b6acd0189d7d8a" + end + end + + bottle do + sha256 "12219bfb7b38be2fcf9e1e3972b368b22186b9bd02825992b74a16640e22185f" => :sierra + sha256 "419e76cc823140f59d8333ffadc4d4d82ee345783646224bbb1c6b009726d57e" => :el_capitan + sha256 "6f6cfe8dd8745264abb8317d1d5876152c9503f3e8d8975def066118d09abe83" => :yosemite + end + + head do + url "https://github.com/minetest/minetest.git" + + resource "minetest_game" do + url "https://github.com/minetest/minetest_game.git", :branch => "master" + end + end + + depends_on :x11 + depends_on "cmake" => :build + depends_on "irrlicht" + depends_on "jpeg" + depends_on "libogg" + depends_on "libvorbis" + depends_on "luajit" => :recommended + depends_on "freetype" => :recommended + depends_on "gettext" => :recommended + depends_on "leveldb" => :optional + depends_on "redis" => :optional + + def install + (buildpath/"games/minetest_game").install resource("minetest_game") + + args = std_cmake_args - %w[-DCMAKE_BUILD_TYPE=None] + args << "-DCMAKE_BUILD_TYPE=Release" << "-DBUILD_CLIENT=1" << "-DBUILD_SERVER=0" + args << "-DENABLE_REDIS=1" if build.with? "redis" + args << "-DENABLE_LEVELDB=1" if build.with? "leveldb" + args << "-DENABLE_FREETYPE=1" << "-DCMAKE_EXE_LINKER_FLAGS='-L#{Formula["freetype"].opt_lib}'" if build.with? "freetype" + args << "-DENABLE_GETTEXT=1" << "-DCUSTOM_GETTEXT_PATH=#{Formula["gettext"].opt_prefix}" if build.with? "gettext" + + # -ffast-math compiler flag is an issue on Mac + # https://github.com/minetest/minetest/issues/4274 + inreplace "src/CMakeLists.txt", "-ffast-math", "" + + system "cmake", ".", *args + system "make", "package" + system "unzip", "minetest-*-osx.zip" + prefix.install "minetest.app" + end + + def caveats; <<-EOS.undent + Put additional subgames and mods into "games" and "mods" folders under + "~/Library/Application Support/minetest/", respectively (you may have + to create those folders first). + + If you would like to start the Minetest server from a terminal, run + "/Applications/minetest.app/Contents/MacOS/minetest --server". + EOS + end +end From 13ac9a8494f675f6d9582316ff997adea288d3da Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:56 +0000 Subject: [PATCH 085/175] mkhexgrid: import from homebrew/games. --- Formula/mkhexgrid.rb | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Formula/mkhexgrid.rb diff --git a/Formula/mkhexgrid.rb b/Formula/mkhexgrid.rb new file mode 100644 index 000000000000..9f7292069aab --- /dev/null +++ b/Formula/mkhexgrid.rb @@ -0,0 +1,32 @@ +class Mkhexgrid < Formula + desc "Fully-configurable hex grid generator" + homepage "http://www.nomic.net/~uckelman/mkhexgrid/" + url "http://www.nomic.net/~uckelman/mkhexgrid/releases/mkhexgrid-0.1.1.src.tar.bz2" + sha256 "122609261cc91c2063ab5315d4316a27c9a0ab164f663a6cb781dd87310be3dc" + + depends_on "boost" + depends_on "gd" + + def install + inreplace "Makefile" do |s| + s.change_make_var! "DESTDIR", prefix + s.change_make_var! "CC", ENV.cc + # don't chown/chgrp the installed files + s.gsub! "-o 0 -g 0", "" + end + inreplace "mkhexgrid.cpp" do |s| + s.sub! "catch (exception &e)", "catch (std::exception &e)" + end + system "make" # needs to be separate + system "make", "install" + end + + test do + # test the example from the man page (but without inches) + system "#{bin}/mkhexgrid", "--output=ps", "--image-width=2448", + "--image-height=1584", "--hex-side=36", "--coord-bearing=0", + "--coord-dist=22", "--coord-size=8", "--grid-thickness=1", + "--coord-font=Helvetica", "--grid-grain=h", "--grid-start=o", + "--coord-tilt=-90", "--centered", "-o", "test.ps" + end +end From 43fc27225931f9c165d9944fe701b67a0a8981eb Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:56 +0000 Subject: [PATCH 086/175] moon-buggy: import from homebrew/games. --- Formula/moon-buggy.rb | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Formula/moon-buggy.rb diff --git a/Formula/moon-buggy.rb b/Formula/moon-buggy.rb new file mode 100644 index 000000000000..ce7e7877124f --- /dev/null +++ b/Formula/moon-buggy.rb @@ -0,0 +1,39 @@ +class MoonBuggy < Formula + desc "Drive some car across the moon" + homepage "http://www.seehuhn.de/pages/moon-buggy" + + stable do + url "http://m.seehuhn.de/programs/moon-buggy-1.0.tar.gz" + sha256 "f8296f3fabd93aa0f83c247fbad7759effc49eba6ab5fdd7992f603d2d78e51a" + end + bottle do + revision 1 + sha256 "09baeea891ef8e04546714bc917e69eebd359a3bdff2340f270f61e76653ac2f" => :el_capitan + sha256 "45fd9404d723b6e49dadc612b85b39ddc2534685e9135b940b58332b61379df8" => :yosemite + sha256 "a3a4c2e2d6e808524107ca651bfeeb8ee063ca5dd2d27054bdf1ea705553bbc7" => :mavericks + end + + devel do + url "http://m.seehuhn.de/programs/moon-buggy-1.0.51.tar.gz" + sha256 "352dc16ccae4c66f1e87ab071e6a4ebeb94ff4e4f744ce1b12a769d02fe5d23f" + end + + head do + url "https://github.com/seehuhn/moon-buggy.git" + depends_on "autoconf" => :build + depends_on "automake" => :build + end + + def install + system "./autogen.sh" if build.head? + system "./configure", "--disable-debug", "--disable-dependency-tracking", + "--prefix=#{prefix}", + "--mandir=#{man}", + "--infodir=#{info}" + system "make", "install" + end + + test do + assert_match /Moon-Buggy #{version}$/, shell_output("#{bin}/moon-buggy -V") + end +end From d1455268e6350424bd876cc1430dd30a2e7467c4 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:56 +0000 Subject: [PATCH 087/175] mupen64plus: import from homebrew/games. --- Formula/mupen64plus.rb | 83 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 Formula/mupen64plus.rb diff --git a/Formula/mupen64plus.rb b/Formula/mupen64plus.rb new file mode 100644 index 000000000000..b03f2bce3438 --- /dev/null +++ b/Formula/mupen64plus.rb @@ -0,0 +1,83 @@ +class Mupen64plus < Formula + desc "Cross-platform plugin-based N64 emulator" + homepage "http://www.mupen64plus.org/" + url "https://github.com/mupen64plus/mupen64plus-core/releases/download/2.5/mupen64plus-bundle-src-2.5.tar.gz" + sha256 "9c75b9d826f2d24666175f723a97369b3a6ee159b307f7cc876bbb4facdbba66" + + bottle do + cellar :any + revision 1 + sha256 "4cd138b1288a6bed93507b5cabac1ece7da4e4f14bc16710258ad3d7a4add7c6" => :el_capitan + sha256 "67d1d0c84f96191f88b3cf7bde4da1c0c801dec0534c962b2c550660e00c707d" => :yosemite + sha256 "f99cc7177a1e5e9cffaa3bd03826237f0fdfc02acbeddf2f1c165251b181208a" => :mavericks + end + + option "without-osd", "Disables the On Screen Display" + option "with-new-dynarec", "Replace dynamic recompiler with Ari64's experimental dynarec" + option "with-src", "Build with libsamplerate" + option "with-speex", "Build with libspeexdsp" + + deprecated_option "disable-osd" => "without-osd" + deprecated_option "enable-new-dynarec" => "with-new-dynarec" + + depends_on "pkg-config" => :build + depends_on "libpng" + depends_on "sdl" + depends_on "boost" + depends_on "freetype" if build.with? "osd" + depends_on "libsamplerate" if build.with? "src" + depends_on "speex" => :optional + + resource "rom" do + url "https://github.com/mupen64plus/mupen64plus-rom/raw/76ef14c876ed036284154444c7bdc29d19381acc/m64p_test_rom.v64" + sha256 "b5fe9d650a67091c97838386f5102ad94c79232240f9c5bcc72334097d76224c" + end + + def install + # Prevent different C++ standard library warning + inreplace Dir["source/mupen64plus-**/projects/unix/Makefile"], /(-mmacosx-version-min)=\d+\.\d+/, "\\1=#{MacOS.version}" + + common_args = ["install", "PREFIX=#{prefix}", "INSTALL_STRIP_FLAG=-S"] + + cd "source/mupen64plus-core/projects/unix" do + args = common_args.dup + args << "OSD=0" if build.without? "osd" + args << "NEW_DYNAREC=1" if build.with? "new-dynarec" + system "make", *args + end + + cd "source/mupen64plus-audio-sdl/projects/unix" do + args = common_args.dup + args << "NO_SRC=1" if build.without? "src" + args << "NO_SPEEX=1" if build.without? "speex" + system "make", *args + end + + cd "source/mupen64plus-input-sdl/projects/unix" do + system "make", *common_args + end + + cd "source/mupen64plus-rsp-hle/projects/unix" do + system "make", *common_args + end + + cd "source/mupen64plus-video-glide64mk2/projects/unix" do + system "make", *common_args + end + + cd "source/mupen64plus-video-rice/projects/unix" do + system "make", *common_args + end + + cd "source/mupen64plus-ui-console/projects/unix" do + system "make", *common_args + end + end + + test do + resource("rom").stage do + system bin/"mupen64plus", "--testshots", "1", + "m64p_test_rom.v64" + end + end +end From 606e02d1aca0d3e85921d6394135f17f7e86e906 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:56 +0000 Subject: [PATCH 088/175] myman: import from homebrew/games. --- Formula/myman.rb | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Formula/myman.rb diff --git a/Formula/myman.rb b/Formula/myman.rb new file mode 100644 index 000000000000..b8ba26e2c0ac --- /dev/null +++ b/Formula/myman.rb @@ -0,0 +1,33 @@ +class Myman < Formula + desc "Text-mode videogame inspired by Namco's Pac-Man" + homepage "http://myman.sourceforge.net/" + url "https://downloads.sourceforge.net/project/myman/myman-cvs/myman-cvs-2009-10-30/myman-wip-2009-10-30.tar.gz" + sha256 "bf69607eabe4c373862c81bf56756f2a96eecb8eaa8c911bb2abda78b40c6d73" + head ":pserver:anonymous:@myman.cvs.sourceforge.net:/cvsroot/myman", :using => :cvs + + bottle do + rebuild 1 + sha256 "452b64835fbf52eec3d5b83532153caf2f0fd7c039b35b589031bbcc9db7f0ad" => :sierra + sha256 "fb2e03ca7d79febb09bbb7f192fc2c6c3fa9cd401dbcd4dfae9b01746aa6faa6" => :el_capitan + sha256 "60e5b8dca2b167ff37369ec25c208d653e716415e603f2a53db32186c05958cf" => :yosemite + end + + depends_on "coreutils" => :build + depends_on "gnu-sed" => :build + depends_on "homebrew/dupes/groff" => :build + + def install + ENV["RMDIR"] = "grmdir" + ENV["SED"] = "gsed" + ENV["INSTALL"] = "ginstall" + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--disable-silent-rules", + "--prefix=#{prefix}" + system "make", "install" + end + + test do + system "#{bin}/myman", "-k" + end +end From 9c4d6e8b2023ab6bc84b79a72ce72cdc9fe7f4f7 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:56 +0000 Subject: [PATCH 089/175] naga: import from homebrew/games. --- Formula/naga.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Formula/naga.rb diff --git a/Formula/naga.rb b/Formula/naga.rb new file mode 100644 index 000000000000..9f36872dc274 --- /dev/null +++ b/Formula/naga.rb @@ -0,0 +1,23 @@ +class Naga < Formula + desc "Terminal implementation of the Snake game" + homepage "https://github.com/anayjoshi/naga/" + url "https://github.com/anayjoshi/naga/archive/naga-v1.0.tar.gz" + sha256 "7f56b03b34e2756b9688e120831ef4f5932cd89b477ad8b70b5bcc7c32f2f3b3" + + bottle do + cellar :any_skip_relocation + revision 1 + sha256 "d463ce4c2bab8ca72fcdee4545592a5de2d4eb4c30ae83d8bc7e59aff65b9b37" => :el_capitan + sha256 "c1e7b2d084acd6f9c902dd012f56c3f4bb0e8e6482cea24d6416dcd9ec5fe540" => :yosemite + sha256 "79beeb5cf00056d30ca4ca8173b6c992d562ab4b948e62d636fbc599b17a9bba" => :mavericks + end + + def install + bin.mkpath + system "make", "install", "INSTALL_PATH=#{bin}/naga" + end + + test do + File.exist? "#{bin}/naga" + end +end From c98e49780d484899cebd517b5969c9376d37d127 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:56 +0000 Subject: [PATCH 090/175] nazghul: import from homebrew/games. --- Formula/nazghul.rb | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Formula/nazghul.rb diff --git a/Formula/nazghul.rb b/Formula/nazghul.rb new file mode 100644 index 000000000000..31465092bbd7 --- /dev/null +++ b/Formula/nazghul.rb @@ -0,0 +1,42 @@ +class Nazghul < Formula + desc "Computer role-playing game engine" + homepage "https://web.archive.org/web/20130402222926/http://myweb.cableone.net/gmcnutt/nazghul.html" + url "https://downloads.sourceforge.net/project/nazghul/nazghul/nazghul-0.7.1/nazghul-0.7.1.tar.gz" + sha256 "f1b62810da52a116dfc1c407dbe683991b1b380ca611f57b5701cfbb803e9d2b" + + bottle do + cellar :any + sha256 "463268eb22b46f6197ccfc8c7042306cc63d9da14fb64e39af391fa8e63b4bcd" => :yosemite + sha256 "be226e182e99ef8944baf85c34c46f3820e24ccb3052d1f267d2edc6d313f02c" => :mavericks + sha256 "8212dbd986171a00d9f2a986ef52394daf2cfc98ed20b8697332880cd20f6343" => :mountain_lion + end + + depends_on "sdl" + depends_on "sdl_image" + depends_on "sdl_mixer" + depends_on "libpng" + + def install + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--prefix=#{prefix}", + "--disable-sdltest", + "--bindir=#{libexec}" + # Not sure why the ifdef is commented out in this file + inreplace "src/skill.c", "#include ", "" + system "make", "install" + + # installing into libexec then rewriting the wrapper script so the + # program name is 'haxima' rather than 'haxima.sh' and there isn't + # a 'nazghul' executable in bin to confuse the user + (bin/"haxima").write <<-EOS.undent + #!/bin/sh + "/usr/local/Cellar/nazghul/0.7.1/libexec/nazghul" -I "/usr/local/Cellar/nazghul/0.7.1/share/nazghul/haxima" -G "$HOME/.haxima" "$@" + EOS + end + + test do + assert_match version.to_s, + shell_output("#{bin}/haxima -v") + end +end From 9e5179971c6437b40d554bce05c827508277631a Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:56 +0000 Subject: [PATCH 091/175] neopop-sdl: import from homebrew/games. --- Formula/neopop-sdl.rb | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Formula/neopop-sdl.rb diff --git a/Formula/neopop-sdl.rb b/Formula/neopop-sdl.rb new file mode 100644 index 000000000000..4ca8a868a53c --- /dev/null +++ b/Formula/neopop-sdl.rb @@ -0,0 +1,38 @@ +class NeopopSdl < Formula + desc "NeoGeo Pocket emulator" + homepage "https://nih.at/NeoPop-SDL/" + url "https://nih.at/NeoPop-SDL/NeoPop-SDL-0.2.tar.bz2" + sha256 "2df1b717faab9e7cb597fab834dc80910280d8abf913aa8b0dcfae90f472352e" + + bottle do + cellar :any + sha256 "3d8a1f106136142a38f8ec89e0bd2403d6294f51ba86211a1309e58186906f50" => :sierra + sha256 "6b56cf6822ca345a48cca6527417f449d884b35bde617b9d59058b1e29a2b7e4" => :el_capitan + sha256 "3eb50b57fef442f83df0d9d92f1612094a40feb38658b9d153eae568d0570472" => :yosemite + end + + head do + url "http://hg.nih.at/NeoPop-SDL/", :using => :hg + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "pkg-config" => :build + depends_on "ffmpeg" + end + + depends_on "libpng" + depends_on "sdl" + depends_on "sdl_net" + + def install + system "autoreconf", "-i" if build.head? + system "./configure", "--disable-dependency-tracking", + "--disable-silent-rules", + "--prefix=#{prefix}", + "--mandir=#{man}" + system "make", "install" + end + + test do + assert_equal "NeoPop (SDL) v0.71 (SDL-Version #{version})", shell_output("#{bin}/NeoPop-SDL -V").chomp + end +end From 3e9e79aa3ed6680fbc92d8b4b8e98cd9682243a5 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:56 +0000 Subject: [PATCH 092/175] nesemu2: import from homebrew/games. --- Formula/nesemu2.rb | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Formula/nesemu2.rb diff --git a/Formula/nesemu2.rb b/Formula/nesemu2.rb new file mode 100644 index 000000000000..c3310537cce9 --- /dev/null +++ b/Formula/nesemu2.rb @@ -0,0 +1,28 @@ +class Nesemu2 < Formula + desc "Cycle accurate NES emulator" + homepage "http://www.nesemu2.com/" + url "https://github.com/holodnak/nesemu2.git", :revision => "5173f08fda3ad313ad494d4c67f8b3aed18e4e59" + version "0.6.1+20140930" + head "https://github.com/holodnak/nesemu2.git" + + bottle do + cellar :any + sha256 "c2096564a3a460a3a76d6a982f7c8a46c0ee776696dc7882a3c1d0069f68f5e6" => :el_capitan + sha256 "47b2366f4edcf4be2a4d0adf3745274195d920b560778c43d3bec3c2ef434e23" => :yosemite + sha256 "a6a6fb240a1a4d4ae660f35d5cb8253f35ea58e428048760f9882f1e0ab66dd1" => :mavericks + end + + depends_on "wla-dx" => :build + depends_on "sdl" + + def install + inreplace "make/sources.make", "-framework SDL", "-lSDL" + inreplace "source/misc/config.c", %r{/usr(/share/nesemu2)}, "#{HOMEBREW_PREFIX}\\1" + bin.mkpath + system "make", "install", "INSTALLPATH=#{bin}", "DATAPATH=#{pkgshare}" + end + + test do + system "#{bin}/nesemu2", "--mappers" + end +end From 373e88dbf0a889e66b25f5ef43d102d4312a8b3b Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:56 +0000 Subject: [PATCH 093/175] nestopia-ue: import from homebrew/games. --- Formula/nestopia-ue.rb | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Formula/nestopia-ue.rb diff --git a/Formula/nestopia-ue.rb b/Formula/nestopia-ue.rb new file mode 100644 index 000000000000..ed455898da61 --- /dev/null +++ b/Formula/nestopia-ue.rb @@ -0,0 +1,28 @@ +class NestopiaUe < Formula + desc "Nestopia UE (Undead Edition): NES emulator" + homepage "http://0ldsk00l.ca/nestopia/" + url "https://downloads.sourceforge.net/project/nestopiaue/1.47/nestopia-1.47.tgz" + sha256 "84624d30ab05d609db2734db0065616b268f79d4aa35f1cd90cb35ee8d96be0c" + head "https://github.com/rdanbrook/nestopia.git" + + bottle do + sha256 "70c485d2d1cd9dd4aa7cbf78cf2acb532bbc5c90e553a5e00a3d6a112704e7df" => :el_capitan + sha256 "0cd58c71d243e7adf02761a83d5fb479b5cdf3778cfb023e57dac7fd48c3490d" => :yosemite + sha256 "e9d6496a8b23a17c1a3a46695e5e41b75a8d08275271fd4e23bbe9ed5b92eb94" => :mavericks + end + + depends_on "sdl2" + depends_on "libao" + depends_on "libarchive" + depends_on "libepoxy" + + def install + system "make", "PREFIX=#{prefix}", "DATADIR=#{pkgshare}" + bin.install "nestopia" + pkgshare.install "NstDatabase.xml" + end + + test do + assert_match /Nestopia UE #{version}$/, shell_output("#{bin}/nestopia --version") + end +end From 93c85a241dff4d55bd40ee73bc4061908b29186f Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:56 +0000 Subject: [PATCH 094/175] nethack: import from homebrew/games. --- Formula/nethack.rb | 60 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Formula/nethack.rb diff --git a/Formula/nethack.rb b/Formula/nethack.rb new file mode 100644 index 000000000000..df67e448b563 --- /dev/null +++ b/Formula/nethack.rb @@ -0,0 +1,60 @@ +# Nethack the way God intended it to be played: from a terminal. + +class Nethack < Formula + desc "Single-player roguelike video game" + homepage "http://www.nethack.org/index.html" + url "https://downloads.sourceforge.net/project/nethack/nethack/3.6.0/nethack-360-src.tgz" + version "3.6.0" + sha256 "1ade698d8458b8d87a4721444cb73f178c74ed1b6fde537c12000f8edf2cb18a" + head "git://git.code.sf.net/p/nethack/NetHack", :branch => "NetHack-3.6.0" + + bottle do + sha256 "084d5b20224c58b8564ddd42e689c4774be6ae25e59e22b5d48e2857bd14c57b" => :el_capitan + sha256 "866bd31a499ed58a1ae9cf2606e861bbde2a8077a9562c18499e913eb3251d6f" => :yosemite + sha256 "73ba72cfac3baf22f57532a0811e13ceab204022634bb730e34a7c9803352d04" => :mavericks + end + + # Don't remove save folder + skip_clean "libexec/save" + + def install + # Build everything in-order; no multi builds. + ENV.deparallelize + + # Generate makefiles for OS X + cd "sys/unix" do + if MacOS.version >= :yosemite + hintfile = "macosx10.10" + elsif MacOS.version >= :lion + hintfile = "macosx10.7" + elsif MacOS.version >= :leopard + hintfile = "macosx10.5" + else + hintfile = "macosx" + end + + inreplace "hints/#{hintfile}", + /^HACKDIR=.*/, + "HACKDIR=#{libexec}" + + system "sh", "setup.sh", "hints/#{hintfile}" + end + + # Enable wizard mode for all users + inreplace "sys/unix/sysconf", + /^WIZARDS=.*/, + "WIZARDS=*" + + # Make the game + system "make", "install" + bin.install "src/nethack" + (libexec+"save").mkpath + + # Enable `man nethack` + man6.install "doc/nethack.6" + + # These need to be group-writable in multi-user situations + chmod "g+w", libexec + chmod "g+w", libexec+"save" + end +end From 5f1cac253ed533cab3c6c4806a5b5b772ffd485f Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:56 +0000 Subject: [PATCH 095/175] nethack4: import from homebrew/games. --- Formula/nethack4.rb | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Formula/nethack4.rb diff --git a/Formula/nethack4.rb b/Formula/nethack4.rb new file mode 100644 index 000000000000..26fd3c017cdb --- /dev/null +++ b/Formula/nethack4.rb @@ -0,0 +1,43 @@ +class Nethack4 < Formula + desc "Patched, fork version of Nethack" + homepage "http://nethack4.org" + url "http://nethack4.org/media/releases/nethack4-4.3-beta2.tar.gz" + version "4.3.0-beta2" + sha256 "b143a86b5e1baf55c663ae09c2663b169d265e95ac43154982296a1887d05f15" + + head "http://nethack4.org/media/nethack4.git" + + bottle do + rebuild 1 + sha256 "ac7e833109caa3a6c4a365170440945aafcbfc35dec2be0bfa62ced758c9c17c" => :el_capitan + sha256 "6a1214f77c7906081e7ce8c32faca47054fd980f5d342aa5e872cc6599ecf682" => :yosemite + sha256 "0f07bbc26d41390eb75ff3fe03969d0de5cc41fb07aa16435ecc515882d77444" => :mavericks + end + + # Assumes C11 _Noreturn is available for clang: + # http://trac.nethack4.org/ticket/568 + fails_with :clang do + build 425 + end + + # 'find_default_dynamic_libraries' failed on 10.11: + # https://github.com/Homebrew/homebrew-games/issues/642 + fails_with :clang do + build 703 + end + + def install + ENV.refurbish_args + + mkdir "build" + cd "build" do + system "../aimake", "--with=jansson", "--without=gui", + "-i", prefix, "--directory-layout=prefix", + "--override-directory", "staterootdir=#{var}" + end + end + + test do + system "nethack4", "--version" + end +end From 14fd3262172e9b6b1997bea38f18e3db49e23746 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:57 +0000 Subject: [PATCH 096/175] nethacked: import from homebrew/games. --- Formula/nethacked.rb | 216 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 216 insertions(+) create mode 100644 Formula/nethacked.rb diff --git a/Formula/nethacked.rb b/Formula/nethacked.rb new file mode 100644 index 000000000000..6aae29eff77d --- /dev/null +++ b/Formula/nethacked.rb @@ -0,0 +1,216 @@ +require "etc" + +# Bugfixed and interface-patched Nethack. +# +# This formula is based on the Nethack formula, and includes the +# patches from same. The original notes from the Nethack formula +# follow: +# - @jterk +# +# Nethack the way God intended it to be played: from a terminal. +# This build script was created referencing: +# * http://nethackwiki.com/wiki/Compiling#On_Mac_OS_X +# * http://nethackwiki.com/wiki/Pkgsrc#patch-ac_.28system.h.29 +# and copious hacking until things compiled. +# +# The patch applied incorporates the patch-ac above, the OS X +# instructions from the Wiki, and whatever else needed to be +# done. +# - @adamv + +class Nethacked < Formula + desc "Bugfixed and interface-patched Nethack" + homepage "https://nethacked.github.io/" + url "https://github.com/nethacked/nethacked/archive/1.0.tar.gz" + sha256 "4e3065a7b652d5fc21577e0b7ac3a60513cd30f4ee81c7f11431a71185b609aa" + + # Don't remove save folder + skip_clean "libexec/save" + + patch :DATA + + def install + # Build everything in-order; no multi builds. + ENV.deparallelize + + # Symlink makefiles + system "sh", "sys/unix/setup.sh" + + inreplace "include/config.h", + /^#\s*define HACKDIR.*$/, + "#define HACKDIR \"#{libexec}\"" + + # Enable wizard mode for the current user + wizard = Etc.getpwuid.name + + inreplace "include/config.h", + /^#\s*define\s+WIZARD\s+"wizard"/, + "#define WIZARD \"#{wizard}\"" + + inreplace "include/config.h", + /^#\s*define\s+WIZARD_NAME\s+"wizard"/, + "#define WIZARD_NAME \"#{wizard}\"" + + cd "dat" do + # Make the data first, before we munge the CFLAGS + system "make" + %w[perm logfile].each do |f| + touch f + libexec.install f + end + + # Stage the data + libexec.install %w[help hh cmdhelp history opthelp wizhelp dungeon license data oracles options rumors quest.dat] + libexec.install Dir["*.lev"] + end + + # Make the game + ENV.append_to_cflags "-I../include" + cd "src" do + system "make" + end + + bin.install "src/nethacked" + (libexec+"save").mkpath + + # These need to be group-writable in multi-user situations + chmod "g+w", libexec + chmod "g+w", libexec+"save" + end +end + +__END__ +diff --git a/include/system.h b/include/system.h +index a4efff9..cfe96f1 100644 +--- a/include/system.h ++++ b/include/system.h +@@ -79,10 +79,10 @@ typedef long off_t; + # if !defined(__SC__) && !defined(LINUX) + E long NDECL(random); + # endif +-# if (!defined(SUNOS4) && !defined(bsdi) && !defined(__FreeBSD__)) || defined(RANDOM) ++# if (!defined(SUNOS4) && !defined(bsdi) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__APPLE__)) || defined(RANDOM) + E void FDECL(srandom, (unsigned int)); + # else +-# if !defined(bsdi) && !defined(__FreeBSD__) ++# if !defined(bsdi) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__APPLE__) + E int FDECL(srandom, (unsigned int)); + # endif + # endif +@@ -132,7 +132,7 @@ E void FDECL(perror, (const char *)); + E void FDECL(qsort, (genericptr_t,size_t,size_t, + int(*)(const genericptr,const genericptr))); + #else +-# if defined(BSD) || defined(ULTRIX) ++# if defined(BSD) || defined(ULTRIX) && !defined(__NetBSD__) + E int qsort(); + # else + # if !defined(LATTICE) && !defined(AZTEC_50) +@@ -421,7 +421,7 @@ E size_t FDECL(strlen, (const char *)); + # ifdef HPUX + E unsigned int FDECL(strlen, (char *)); + # else +-# if !(defined(ULTRIX_PROTO) && defined(__GNUC__)) ++# if !(defined(ULTRIX_PROTO) && defined(__GNUC__)) && !defined(__NetBSD__) + E int FDECL(strlen, (const char *)); + # endif + # endif /* HPUX */ +@@ -476,9 +476,9 @@ E char *sprintf(); + # if !defined(SVR4) && !defined(apollo) + # if !(defined(ULTRIX_PROTO) && defined(__GNUC__)) + # if !(defined(SUNOS4) && defined(__STDC__)) /* Solaris unbundled cc (acc) */ +-E int FDECL(vsprintf, (char *, const char *, va_list)); +-E int FDECL(vfprintf, (FILE *, const char *, va_list)); +-E int FDECL(vprintf, (const char *, va_list)); ++// E int FDECL(vsprintf, (char *, const char *, va_list)); ++// E int FDECL(vfprintf, (FILE *, const char *, va_list)); ++// E int FDECL(vprintf, (const char *, va_list)); + # endif + # endif + # endif +@@ -521,7 +521,7 @@ E struct tm *FDECL(localtime, (const time_t *)); + # endif + # endif + +-# if defined(ULTRIX) || (defined(BSD) && defined(POSIX_TYPES)) || defined(SYSV) || defined(MICRO) || defined(VMS) || defined(MAC) || (defined(HPUX) && defined(_POSIX_SOURCE)) ++# if defined(ULTRIX) || (defined(BSD) && defined(POSIX_TYPES)) || defined(SYSV) || defined(MICRO) || defined(VMS) || defined(MAC) || (defined(HPUX) && defined(_POSIX_SOURCE)) || defined(__NetBSD__) + E time_t FDECL(time, (time_t *)); + # else + E long FDECL(time, (time_t *)); +diff --git a/include/unixconf.h b/include/unixconf.h +index fe1b006..3a195a6 100644 +--- a/include/unixconf.h ++++ b/include/unixconf.h +@@ -19,20 +19,20 @@ + */ + + /* define exactly one of the following four choices */ +-/* #define BSD 1 */ /* define for 4.n/Free/Open/Net BSD */ ++#define BSD 1 /* define for 4.n/Free/Open/Net BSD */ + /* also for relatives like SunOS 4.x, DG/UX, and */ + /* older versions of Linux */ + /* #define ULTRIX */ /* define for Ultrix v3.0 or higher (but not lower) */ + /* Use BSD for < v3.0 */ + /* "ULTRIX" not to be confused with "ultrix" */ +-#define SYSV /* define for System V, Solaris 2.x, newer versions */ ++/* #define SYSV */ /* define for System V, Solaris 2.x, newer versions */ + /* of Linux */ + /* #define HPUX */ /* Hewlett-Packard's Unix, version 6.5 or higher */ + /* use SYSV for < v6.5 */ + + + /* define any of the following that are appropriate */ +-#define SVR4 /* use in addition to SYSV for System V Release 4 */ ++/* #define SVR4 */ /* use in addition to SYSV for System V Release 4 */ + /* including Solaris 2+ */ + #define NETWORK /* if running on a networked system */ + /* e.g. Suns sharing a playground through NFS */ +@@ -285,8 +285,8 @@ + + #if defined(BSD) || defined(ULTRIX) + # if !defined(DGUX) && !defined(SUNOS4) +-#define memcpy(d, s, n) bcopy(s, d, n) +-#define memcmp(s1, s2, n) bcmp(s2, s1, n) ++// #define memcpy(d, s, n) bcopy(s, d, n) ++// #define memcmp(s1, s2, n) bcmp(s2, s1, n) + # endif + # ifdef SUNOS4 + #include +diff --git a/sys/unix/Makefile.src b/sys/unix/Makefile.src +index 29ad99a..7842af2 100644 +--- a/sys/unix/Makefile.src ++++ b/sys/unix/Makefile.src +@@ -151,8 +151,8 @@ GNOMEINC=-I/usr/lib/glib/include -I/usr/lib/gnome-libs/include -I../win/gnome + # flags for debugging: + # CFLAGS = -g -I../include + +-CFLAGS = -O -I../include +-LFLAGS = ++#CFLAGS = -O -I../include ++#LFLAGS = + + # The Qt and Be window systems are written in C++, while the rest of + # NetHack is standard C. If using Qt, uncomment the LINK line here to get +@@ -230,8 +230,8 @@ WINOBJ = $(WINTTYOBJ) + # WINTTYLIB = -ltermcap + # WINTTYLIB = -lcurses + # WINTTYLIB = -lcurses16 +-# WINTTYLIB = -lncurses +-WINTTYLIB = -ltermlib ++WINTTYLIB = -lncurses ++#WINTTYLIB = -ltermlib + # + # libraries for X11 + # If USE_XPM is defined in config.h, you will also need -lXpm here. +diff --git a/win/tty/termcap.c b/win/tty/termcap.c +index 706e203..dadc9a9 100644 +--- a/win/tty/termcap.c ++++ b/win/tty/termcap.c +@@ -835,7 +835,7 @@ cl_eos() /* free after Robert Viduya */ + + #include + +-#ifndef LINUX ++#if !defined(LINUX) && !defined(__APPLE__) + extern char *tparm(); + #endif From 3ab73826f54808a391f5d37536dfa5721719a231 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:57 +0000 Subject: [PATCH 097/175] netris: import from homebrew/games. --- Formula/netris.rb | 76 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Formula/netris.rb diff --git a/Formula/netris.rb b/Formula/netris.rb new file mode 100644 index 000000000000..89b1c0456899 --- /dev/null +++ b/Formula/netris.rb @@ -0,0 +1,76 @@ +class Netris < Formula + desc "Networked variant of tetris" + homepage "https://web.archive.org/web/20071223041235/http://www.netris.be/" + url "ftp://ftp.netris.org/pub/netris/netris-0.52.tar.gz" + mirror "http://ftp.de.debian.org/debian/pool/main/n/netris/netris_0.52.orig.tar.gz" + sha256 "8bc770ebb2c3ead1611ca7a1a2f3d833e169536c78d53b3fcf49381164ee9706" + + bottle do + cellar :any_skip_relocation + sha256 "f884ada9bc59b53601b77b93e1b0b87e25dff13c7fbf5f078c309c08af9495c6" => :el_capitan + sha256 "5c62fe0fa8814eabf4689098111f3c67f413295f1200e1b67971d699ed3adc82" => :yosemite + sha256 "0f3ddd592b107ba5526d0de0a02ebc46f93ce9d069d7558d9104f56fe1ad6722" => :mavericks + end + + # Debian has been applying fixes and security patches, so let's re-use their work. + # Also fixes case of "TERM=xterm-color256" which otherwise segfaults. + patch do + url "http://git.deb.at/w/pkg/netris.git/blob_plain/90991bd0137a2510f93ec126a8642f48eb3738be:/debian/patches/01_multi-games-with-scoring" + sha256 "5d5182afc06fbb6d011edfaa0c12e88425884019372f95faee563b760d03e556" + end + + patch do + url "http://git.deb.at/w/pkg/netris.git/blob_plain/90991bd0137a2510f93ec126a8642f48eb3738be:/debian/patches/02_line-count-patch" + sha256 "c31de57729cfde1ec72e49fd0ee1984cfffc179eb3d16b1268853e14e827b71f" + end + + patch do + url "http://git.deb.at/w/pkg/netris.git/blob_plain/90991bd0137a2510f93ec126a8642f48eb3738be:/debian/patches/03_staircase-effect-fix" + sha256 "df17bd23186c3d0379d298ac2e526ff40c7cdcebbe174c2bf2f08aa067abb4c7" + end + + patch do + url "http://git.deb.at/w/pkg/netris.git/blob_plain/90991bd0137a2510f93ec126a8642f48eb3738be:/debian/patches/04_robot-close-fixup" + sha256 "8c79a8925357b57b07d4afa8a2ef048528f4ca19e25851637fd6f20f93ea7ae4" + end + + patch do + url "http://git.deb.at/w/pkg/netris.git/blob_plain/90991bd0137a2510f93ec126a8642f48eb3738be:/debian/patches/05_init-static-vars" + sha256 "5b057390f6736c0d5c1d2b149c6550fb322358544641dc89d358c4c275a17724" + end + + patch do + url "http://git.deb.at/w/pkg/netris.git/blob_plain/90991bd0137a2510f93ec126a8642f48eb3738be:/debian/patches/06_curses.c-include-term.h" + sha256 "9f0b631dcfcf2114ea1c70a599df401aafa21fb73423fa98783d01ac9a0845dc" + end + + patch do + url "http://git.deb.at/w/pkg/netris.git/blob_plain/90991bd0137a2510f93ec126a8642f48eb3738be:/debian/patches/07_curses.c-include-time.h" + sha256 "b53bd8af4f09661ed9030baf52456595f3b4149966c2e3111c91305957a94a52" + end + + patch do + url "http://git.deb.at/w/pkg/netris.git/blob_plain/90991bd0137a2510f93ec126a8642f48eb3738be:/debian/patches/08_various-fixes" + sha256 "8c9f709c115d8acf4af04e6dd60d75f2c7ecda2f9708aca2a2848966ec6999db" + end + + patch do + url "http://git.deb.at/w/pkg/netris.git/blob_plain/90991bd0137a2510f93ec126a8642f48eb3738be:/debian/patches/09_ipv6" + sha256 "cf6c216cd4381a82945b441e2ad659120643126f52a89f745a9692fc708e8261" + end + + patch do + url "http://git.deb.at/w/pkg/netris.git/blob_plain/90991bd0137a2510f93ec126a8642f48eb3738be:/debian/patches/10_fix-memory-leak" + sha256 "380566f670b90585943a2f3c69fdb83bae04d0e62cc457bb8d7558f393f6b874" + end + + def install + system "sh", "Configure" + system "make" + bin.install "netris" + end + + test do + assert_match "Netris version #{version}", shell_output("#{bin}/netris -H 2>&1") + end +end From abda9fbf860ac826652ec369dc7202fc46bd905f Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:57 +0000 Subject: [PATCH 098/175] nettoe: import from homebrew/games. --- Formula/nettoe.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Formula/nettoe.rb diff --git a/Formula/nettoe.rb b/Formula/nettoe.rb new file mode 100644 index 000000000000..a367e008d4eb --- /dev/null +++ b/Formula/nettoe.rb @@ -0,0 +1,23 @@ +class Nettoe < Formula + desc "Tic Tac Toe-like game for the console" + homepage "http://nettoe.sourceforge.net/" + url "https://downloads.sourceforge.net/project/nettoe/nettoe/1.5.1/nettoe-1.5.1.tar.gz" + sha256 "dbc2c08e7e0f7e60236954ee19a165a350ab3e0bcbbe085ecd687f39253881cb" + + bottle do + cellar :any_skip_relocation + sha256 "593d6b69194903eda0ed6668c177aef36efcc1bc2bc09763dc21549a8b8803f2" => :el_capitan + sha256 "48caa53cd7d854aaaf857c46092923a40903720e31cab9187c412efba77f39cb" => :yosemite + sha256 "bb75d69b61846aa3e399370d2ad6e51ca62f3aa3387e96cef5d4136fec87245d" => :mavericks + end + + def install + system "./configure", "--disable-dependency-tracking", + "--prefix=#{prefix}" + system "make", "install" + end + + test do + assert_match /netToe #{version} /, shell_output("#{bin}/nettoe -v") + end +end From d5e06f247abc3783430483e4a0449d0616f0af75 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:57 +0000 Subject: [PATCH 099/175] ninvaders: import from homebrew/games. --- Formula/ninvaders.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Formula/ninvaders.rb diff --git a/Formula/ninvaders.rb b/Formula/ninvaders.rb new file mode 100644 index 000000000000..717fe3c9efdb --- /dev/null +++ b/Formula/ninvaders.rb @@ -0,0 +1,22 @@ +class Ninvaders < Formula + desc "Space Invaders in the terminal" + homepage "http://ninvaders.sourceforge.net/" + url "https://downloads.sourceforge.net/project/ninvaders/ninvaders/0.1.1/ninvaders-0.1.1.tar.gz" + sha256 "bfbc5c378704d9cf5e7fed288dac88859149bee5ed0850175759d310b61fd30b" + + def install + ENV.j1 # this formula's build system can't parallelize + inreplace "Makefile" do |s| + s.change_make_var! "CC", ENV.cc + # gcc-4.2 doesn't like the lack of space here + s.gsub! "-o$@", "-o $@" + end + system "make" # build the binary + bin.install "nInvaders" + end + + test do + assert_match "nInvaders #{version}", + shell_output("#{bin}/nInvaders -h 2>&1", 1) + end +end From 9730e76872f0423531a5f2151aef3db780cf6756 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:57 +0000 Subject: [PATCH 100/175] np2: import from homebrew/games. --- Formula/np2.rb | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Formula/np2.rb diff --git a/Formula/np2.rb b/Formula/np2.rb new file mode 100644 index 000000000000..2040e049b04a --- /dev/null +++ b/Formula/np2.rb @@ -0,0 +1,47 @@ +class Np2 < Formula + desc "Neko Project 2: PC-9801 emulator" + homepage "http://www.yui.ne.jp/np2/" + url "http://amethyst.yui.ne.jp/svn/pc98/np2/tags/VER_0_86/", :using => :svn, :revision => "2606" + head "http://amethyst.yui.ne.jp/svn/pc98/np2/trunk/", :using => :svn + + bottle do + cellar :any + sha256 "78341257a8c7addbcacb8784ec08fce32e29fa3baf362fe42566d21bf38d0ee1" => :el_capitan + sha256 "5fa9209b5c2541d6df94a4357dea87d2c84d263a25a7f1aa814282419d9d50ba" => :yosemite + sha256 "c3a1324b9143ed2fcaa1bbf24816c66810f47ab1e78f676da27fc9af4ccca051" => :mavericks + end + + depends_on :xcode => :build + depends_on "sdl2" + depends_on "sdl2_ttf" + + def install + sdl2 = Formula["sdl2"] + sdl2_ttf = Formula["sdl2_ttf"] + + cd "sdl2/MacOSX" do + # Use brewed library paths + inreplace "np2sdl2.xcodeproj/project.pbxproj" do |s| + s.gsub! "BAF84E4B195AA35E00183062", "//BAF84E4B195AA35E00183062" + s.gsub! "HEADER_SEARCH_PATHS = (", "LIBRARY_SEARCH_PATHS = (\"$(inherited)\", #{sdl2.lib}, #{sdl2_ttf.lib}); HEADER_SEARCH_PATHS = (#{sdl2.include}/SDL2, #{sdl2.include}, #{sdl2_ttf.include}," + s.gsub! "buildSettings = {", 'buildSettings ={ OTHER_LDFLAGS = "-lSDL2 -lSDL2_ttf";' + end + # Force to use Japanese TTF font + inreplace "np2sdl2/compiler.h", "#define RESOURCE_US", "" + # Always use current working directory + inreplace "np2sdl2/main.m", "[pstrBundlePath UTF8String]", '"./"' + + xcodebuild "SYMROOT=build" + bin.install "build/Release/np2sdl2.app/Contents/MacOS/np2sdl2" => "np2" + end + end + + def caveats; <<-EOS.undent + A Japanese TTF file named `default.ttf` should be in the working directory. + EOS + end + + test do + assert_match %r{Usage: #{bin}/np2}, shell_output("#{bin}/np2 -h", 1) + end +end From 30b4ba07ae96f8889fb643c5a805992ca33ef8f0 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:57 +0000 Subject: [PATCH 101/175] npush: import from homebrew/games. --- Formula/npush.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Formula/npush.rb diff --git a/Formula/npush.rb b/Formula/npush.rb new file mode 100644 index 000000000000..8f1739964201 --- /dev/null +++ b/Formula/npush.rb @@ -0,0 +1,23 @@ +class Npush < Formula + desc "Logic game simliar to Sokoban and Boulder Dash" + homepage "http://npush.sourceforge.net/" + url "https://downloads.sourceforge.net/project/npush/npush/0.7/npush-0.7.tgz" + sha256 "f216d2b3279e8737784f77d4843c9e6f223fa131ce1ebddaf00ad802aba2bcd9" + head "svn://svn.code.sf.net/p/npush/code/" + + bottle do + cellar :any_skip_relocation + sha256 "6813b07cd32089c5c41d04375233270f8a61d26dfcb41f82a50063c995a562bc" => :el_capitan + sha256 "b54aafd290ef5872b8b4737165639cb7a670902bee8bbb52422913c40aae0e94" => :yosemite + sha256 "3959d2c4f0a9e7525e18f44a25e5208388979bcf97a4896570766f4f29c8b1d9" => :mavericks + end + + def install + system "make" + pkgshare.install ["npush", "levels"] + (bin/"npush").write <<-EOS.undent + #!/bin/sh + cd "#{pkgshare}" && exec ./npush $@ + EOS + end +end From 276b6922ae8d2219f1c4dd2cf70f40f6909a5513 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:57 +0000 Subject: [PATCH 102/175] nsnake: import from homebrew/games. --- Formula/nsnake.rb | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Formula/nsnake.rb diff --git a/Formula/nsnake.rb b/Formula/nsnake.rb new file mode 100644 index 000000000000..f7641dfa9890 --- /dev/null +++ b/Formula/nsnake.rb @@ -0,0 +1,26 @@ +class Nsnake < Formula + desc "Classic snake game with textual interface" + homepage "http://nsnake.alexdantas.net/" + url "https://downloads.sourceforge.net/project/nsnake/GNU-Linux/nsnake-3.0.1.tar.gz" + sha256 "e0a39e0e188a6a8502cb9fc05de3fa83dd4d61072c5b93a182136d1bccd39bb9" + head "https://github.com/alexdantas/nSnake.git" + + bottle do + sha256 "46aa5c2e7ad88a8aac26ecc50c649ab10bea44f2dcfc93baf0318330efa4de6f" => :el_capitan + sha256 "a862406eef08f74430c46fa68894c39ac34448d24ea62f247a49851b867a0679" => :yosemite + sha256 "c38fb4274610227b8dc9351c53887bb57f7539e6eec45172502f7c6ffac2d6f9" => :mavericks + end + + def install + system "make", "install", "PREFIX=#{prefix}" + + # No need for Linux desktop + (share/"applications").rmtree + (share/"icons").rmtree + (share/"pixmaps").rmtree + end + + test do + assert_match /nsnake v#{version} /, shell_output("#{bin}/nsnake -v") + end +end From fae14c062497e7036b50b020df74ba4a232c494b Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:57 +0000 Subject: [PATCH 103/175] nsuds: import from homebrew/games. --- Formula/nsuds.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Formula/nsuds.rb diff --git a/Formula/nsuds.rb b/Formula/nsuds.rb new file mode 100644 index 000000000000..044aea64478e --- /dev/null +++ b/Formula/nsuds.rb @@ -0,0 +1,24 @@ +class Nsuds < Formula + desc "Ncurses Sudoku system" + homepage "http://nsuds.sourceforge.net/" + url "https://downloads.sourceforge.net/project/nsuds/nsuds/nsuds-0.7B/nsuds-0.7B.tar.gz" + sha256 "6d9b3e53f3cf45e9aa29f742f6a3f7bc83a1290099a62d9b8ba421879076926e" + + head do + url "git://git.code.sf.net/p/nsuds/code" + depends_on "autoconf" => :build + depends_on "automake" => :build + end + + def install + system "autoreconf", "-i" if build.head? + system "./configure", "--disable-dependency-tracking", + "--prefix=#{prefix}" + inreplace "src/Makefile", /chgrp .*/, "" + system "make", "install" + end + + test do + assert_match /nsuds version #{version}$/, shell_output("#{bin}/nsuds -v") + end +end From 147a949ac06b83b5348736870fddfaf9b7a90964 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:57 +0000 Subject: [PATCH 104/175] nudoku: import from homebrew/games. --- Formula/nudoku.rb | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Formula/nudoku.rb diff --git a/Formula/nudoku.rb b/Formula/nudoku.rb new file mode 100644 index 000000000000..aa9798971999 --- /dev/null +++ b/Formula/nudoku.rb @@ -0,0 +1,31 @@ +class Nudoku < Formula + desc "ncurses based sudoku game" + homepage "https://jubalh.github.io/nudoku/" + url "https://github.com/jubalh/nudoku/releases/download/0.2.4/nudoku-0.2.4.tar.xz" + sha256 "4a5c6ab215ed677e31b968f3aa0c418b91b4e643e4adfade543f533ce6cde53a" + + bottle do + cellar :any_skip_relocation + sha256 "0bf39388df6d96c63ec97c07fc639b1be7c9c4678c2618a2208f9daf76612d57" => :el_capitan + sha256 "287e553001990ff92d786727e9150956e0ddf00a89a6c4d32dc44e5f4851704b" => :yosemite + sha256 "991300e012d8c3ff8709bd4b69c4d1c81a6ca09e98a6876fff8dbc517026bab0" => :mavericks + end + + head do + url "https://github.com/jubalh/nudoku.git" + depends_on "autoconf" => :build + depends_on "automake" => :build + end + + def install + system "autoreconf", "-i" if build.head? + system "./configure", "--disable-dependency-tracking", + "--disable-silent-rules", + "--prefix=#{prefix}" + system "make", "install" + end + + test do + assert_match /nudoku version #{version}$/, shell_output("#{bin}/nudoku -v") + end +end From 7d27cf4c47ad7465b05f974372550af9996b30cc Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:57 +0000 Subject: [PATCH 105/175] nuvie: import from homebrew/games. --- Formula/nuvie.rb | 52 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Formula/nuvie.rb diff --git a/Formula/nuvie.rb b/Formula/nuvie.rb new file mode 100644 index 000000000000..85c8d796781e --- /dev/null +++ b/Formula/nuvie.rb @@ -0,0 +1,52 @@ +class Nuvie < Formula + desc "The Ultima 6 engine" + homepage "http://nuvie.sourceforge.net/" + url "https://downloads.sourceforge.net/project/nuvie/Nuvie/0.5/nuvie-0.5.tgz" + sha256 "ff026f6d569d006d9fe954f44fdf0c2276dbf129b0fc5c0d4ef8dce01f0fc257" + + bottle do + sha256 "c0c3f49017d8aca42f7abf1681db052d699585741aad47ae9c92f19f1aa9208c" => :yosemite + sha256 "cf1ca12f0dc0fdf4b26fb53be5899b979eb277005de257e94c5b1509d53cf2eb" => :mavericks + sha256 "b44e21612d24b3f2552f342f445408a19b82449e5686c1b40b1c72686fe20b09" => :mountain_lion + end + + head do + url "https://github.com/nuvie/nuvie.git" + depends_on "autoconf" => :build + depends_on "automake" => :build + end + + depends_on "sdl" + + def install + inreplace "./nuvie.cpp" do |s| + s.gsub! 'datadir", "./data"', "datadir\", \"#{lib}/data\"" + s.gsub! 'home + "/Library', '"/Library' + s.gsub! 'config_path.append("/Library/Preferences/Nuvie Preferences");', "config_path = \"#{var}/nuvie/nuvie.cfg\";" + s.gsub! "/Library/Application Support/Nuvie Support/", "#{var}/nuvie/game/" + s.gsub! "/Library/Application Support/Nuvie/", "#{var}/nuvie/" + end + system "./autogen.sh" if build.head? + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--disable-sdltest", + "--prefix=#{prefix}" + system "make" + bin.install "nuvie" + pkgshare.install "data" + end + + def post_install + (var/"nuvie/game").mkpath + end + + def caveats; <<-EOS.undent + Copy your Ultima 6 game files into the following directory: + #{var}/nuvie/game/ultima6/ + Save games will be stored in the following directory: + #{var}/nuvie/savegames/ + Config file will be located at: + #{var}/nuvie/nuvie.cfg + EOS + end +end From 1a60fc95dbdc8eb422d83c71172c58ed1b2b780b Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:57 +0000 Subject: [PATCH 106/175] nxengine: import from homebrew/games. --- Formula/nxengine.rb | 63 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Formula/nxengine.rb diff --git a/Formula/nxengine.rb b/Formula/nxengine.rb new file mode 100644 index 000000000000..b7456e482940 --- /dev/null +++ b/Formula/nxengine.rb @@ -0,0 +1,63 @@ +class Nxengine < Formula + desc "Rewrite of Cave Story (Doukutsu Monogatari)" + homepage "http://nxengine.sourceforge.net/" + url "http://nxengine.sourceforge.net/dl/nx-src-1006.tar.bz2" + version "1.0.0.6" + sha256 "cf9cbf15dfdfdc9936720a714876bb1524afbd2931e3eaa4c89984a40b21ad68" + + bottle do + cellar :any + sha256 "6a41ce2306cb98480ef13ade6860c138491d8d8523605f50006f410608826e0e" => :el_capitan + sha256 "0cd1b84a302e7342833581497cfbb260af6ffa21280c7339cada8033c4c5be5d" => :yosemite + sha256 "96bd43fa469d10ff9d874f2d4a2125a1878f6eb0bad229ad4f0c7b0ff139b550" => :mavericks + end + + depends_on "sdl" + depends_on "sdl_ttf" + + # Freeware Cave Story 1.0.0.6 pre-patched with Aeon Genesis English translation + resource "game" do + url "http://www.cavestory.org/downloads/cavestoryen.zip" + sha256 "aa87fa30bee9b4980640c7e104791354e0f1f6411ee0d45a70af70046aa0685f" + end + + def install + # Remove unused linux header + inreplace "platform/Linux/vbesync.c", "#include ", "" + # Replacement of htole16 for OS X + inreplace ["sound/org.cpp", "sound/pxt.cpp"] do |s| + s.gsub! "endian.h", "libkern/OSByteOrder.h" + s.gsub! "htole16", "OSSwapHostToLittleInt16" + end + # Use var/nxengine for extracted data files, without messing current directory + inreplace "graphics/font.cpp", /(fontfile) = "(\w+\.(bmp|ttf))"/, "\\1 = \"#{var}/nxengine/\\2\"" + inreplace "platform.cpp", /(return .*fopen)\((fname), mode\);/, "char fn[256]; strcpy(fn, \"#{var}/nxengine/\"); strcat(fn, \\2); \\1(fn, mode);" + inreplace "graphics/nxsurface.cpp", /(image = SDL_LoadBMP)\((pbm_name)\);/, "char fn[256]; strcpy(fn, \"#{var}/nxengine/\"); strcat(fn, \\2); \\1(fn);" + inreplace "extract/extractpxt.cpp", /(mkdir)\((\".+\")/, "char dir[256]; strcpy(dir, \"#{var}/nxengine/\"); strcat(dir, \\2); \\1(dir" + inreplace "extract/extractfiles.cpp" do |s| + s.gsub! /char \*dir = strdup\((fname)\);/, "char *dir = (char *)malloc(256); strcpy(dir, \"#{var}/nxengine/\"); strcat(dir, \\1);" + s.gsub! "strchr", "strrchr" + end + + system "make" + bin.install "nx" + pkgshare.install ["smalfont.bmp", "sprites.sif", "tilekey.dat"] + resource("game").stage do + pkgshare.install ["Doukutsu.exe", "data"] + end + end + + def post_install + # Symlink original game data to a working directory in var + (var/"nxengine").mkpath + ln_sf Dir[pkgshare/"*"], "#{var}/nxengine/" + # Use system font, avoiding any license issue + ln_sf "/Library/Fonts/Courier New.ttf", "#{var}/nxengine/font.ttf" + end + + def caveats; <<-EOS.undent + When the game runs first time, it will extract data files into the following directory: + #{var}/nxengine + EOS + end +end From 648d2a886c13d9894030e2284bf7eb8232e652e4 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:57 +0000 Subject: [PATCH 107/175] omega-rpg: import from homebrew/games. --- Formula/omega-rpg.rb | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Formula/omega-rpg.rb diff --git a/Formula/omega-rpg.rb b/Formula/omega-rpg.rb new file mode 100644 index 000000000000..62650fc673b8 --- /dev/null +++ b/Formula/omega-rpg.rb @@ -0,0 +1,38 @@ +class OmegaRpg < Formula + desc "The classic Roguelike game" + homepage "http://www.alcyone.com/max/projects/omega/" + url "http://www.alcyone.com/binaries/omega/omega-0.80.2-src.tar.gz" + sha256 "60164319de90b8b5cae14f2133a080d5273e5de3d11c39df080a22bbb2886104" + revision 1 + + bottle do + sha256 "66fb30477b59d100f7ac35e186202dedd60682bc4650784f82be599e839b2c6a" => :yosemite + sha256 "95f29ae642a99f7c830aa6af6ff645a23ea19ebd02e781eb354e0db646088f9d" => :mavericks + sha256 "64968e94d82f9664cb571b59bdddc10c119dd278e99e7c026a63c0421e93951e" => :mountain_lion + end + + def install + # Set up our target folders + inreplace "defs.h", "#define OMEGALIB \"./omegalib/\"", "#define OMEGALIB \"#{libexec}/\"" + + # Don't alias CC; also, don't need that ncurses include path + # Set the system type in CFLAGS, not in makefile + # Remove an obsolete flag + inreplace "Makefile" do |s| + s.remove_make_var! ["CC", "CFLAGS", "LDFLAGS"] + end + + ENV.append_to_cflags "-DUNIX -DSYSV" + + system "make" + + # 'make install' is weird, so we do it ourselves + bin.install "omega" + libexec.install Dir["omegalib/*"] + end + + def post_install + # omega refuses to run without license.txt in OMEGALIB + ln_s prefix/"license.txt", libexec/"license.txt" + end +end From 9e86b75604506d6e0b03611102928d3b236b431c Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:58 +0000 Subject: [PATCH 108/175] onscripter: import from homebrew/games. --- Formula/onscripter.rb | 73 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 Formula/onscripter.rb diff --git a/Formula/onscripter.rb b/Formula/onscripter.rb new file mode 100644 index 000000000000..55c764bccb00 --- /dev/null +++ b/Formula/onscripter.rb @@ -0,0 +1,73 @@ +class Onscripter < Formula + desc "NScripter-compatible visual novel engine" + homepage "https://onscripter.osdn.jp/" + url "https://onscripter.osdn.jp/onscripter-20161102.tar.gz" + sha256 "e9a39b1c45cc47c363eb15773a9944da7a29eff74261ccb656ff5ce4b5fdd5d8" + + bottle do + cellar :any + sha256 "fd7c75efab115baea62753d3d1782da8ee37f3b3efe0244617e74b1565bf2b6d" => :sierra + sha256 "195400d5f1b00f4ea87afd84d4bbbff3db9588c0453ffd958747d46452fc648e" => :el_capitan + sha256 "32049a5783405c811890d4ae5aa5981718fac4522d359bb1c5c1b7a20b569459" => :yosemite + end + + option "with-english", "Build with single-byte character mode" + + depends_on "pkg-config" => :build + depends_on "sdl" + depends_on "sdl_ttf" + depends_on "sdl_image" + depends_on "sdl_mixer" => "with-libvorbis" + depends_on "smpeg" + depends_on "jpeg" + depends_on "lua" => :recommended + + def install + incs = [ + `pkg-config --cflags sdl SDL_ttf SDL_image SDL_mixer`.chomp, + `smpeg-config --cflags`.chomp, + "-I#{Formula["jpeg"].include}", + ] + + libs = [ + `pkg-config --libs sdl SDL_ttf SDL_image SDL_mixer`.chomp, + `smpeg-config --libs`.chomp, + "-ljpeg", + "-lbz2", + ] + + defs = %w[ + -DMACOSX + -DUSE_CDROM + -DUTF8_CAPTION + -DUTF8_FILESYSTEM + ] + + ext_objs = [] + + if build.with? "lua" + lua = Formula["lua"] + incs << "-I#{lua.include}" + libs << "-L#{lua.lib} -llua" + defs << "-DUSE_LUA" + ext_objs << "LUAHandler.o" + end + + if build.with? "english" + defs += %w[ + -DENABLE_1BYTE_CHAR + -DFORCE_1BYTE_CHAR + ] + end + + k = %w[INCS LIBS DEFS EXT_OBJS] + v = [incs, libs, defs, ext_objs].map { |x| x.join(" ") } + args = k.zip(v).map { |x| x.join("=") } + system "make", "-f", "Makefile.MacOSX", *args + bin.install %w[onscripter sardec nsadec sarconv nsaconv] + end + + test do + assert shell_output("#{bin}/onscripter -v").start_with? "ONScripter version #{version}" + end +end From 46a15e3c2a995a55b9ff42b581b3fe2c5f47901b Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:58 +0000 Subject: [PATCH 109/175] open-tyrian: import from homebrew/games. --- Formula/open-tyrian.rb | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Formula/open-tyrian.rb diff --git a/Formula/open-tyrian.rb b/Formula/open-tyrian.rb new file mode 100644 index 000000000000..fbf19ed5adf7 --- /dev/null +++ b/Formula/open-tyrian.rb @@ -0,0 +1,42 @@ +class OpenTyrian < Formula + desc "Open-source port of Tyrian" + homepage "https://bitbucket.org/opentyrian/opentyrian" + url "http://www.camanis.net/opentyrian/releases/opentyrian-2.1.20130907-src.tar.gz" + sha256 "f54b6b3cedcefa187c9f605d6164aae29ec46a731a6df30d351af4c008dee45f" + head "https://bitbucket.org/opentyrian/opentyrian", :using => :hg + + bottle do + sha256 "f9761c338f5e39984b19661cb95293eae561fb24762ccf5721f91105e353dd20" => :el_capitan + sha256 "370c59cf4f742979b78c7923c57b533f6c5ec8eec3522db7d9143dd07554334d" => :yosemite + sha256 "730f02623ca48c3bb9f40f7610b01988a3434d7cb6bf5ecda013300206fdd21d" => :mavericks + end + + depends_on "sdl" + depends_on "sdl_net" + + resource "data" do + url "http://camanis.net/tyrian/tyrian21.zip" + sha256 "7790d09a2a3addcd33c66ef063d5900eb81cc9c342f4807eb8356364dd1d9277" + end + + def install + datadir = pkgshare/"data" + datadir.install resource("data") + args = [] + if build.head? + args << "TYRIAN_DIR=#{datadir}" + else + inreplace "src/file.c", "/usr/share/opentyrian/data", datadir + end + system "make", *args + bin.install "opentyrian" + end + + def caveats + "Save games will be put in ~/.opentyrian" + end + + test do + system "#{bin}/opentyrian", "--help" + end +end From 78ccacd073c2a216062dc8eb5861a67295b234b6 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:58 +0000 Subject: [PATCH 110/175] openclonk: import from homebrew/games. --- Formula/openclonk.rb | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Formula/openclonk.rb diff --git a/Formula/openclonk.rb b/Formula/openclonk.rb new file mode 100644 index 000000000000..b19ca7a4ce7a --- /dev/null +++ b/Formula/openclonk.rb @@ -0,0 +1,40 @@ +class Openclonk < Formula + desc "Multiplayer action game" + homepage "http://www.openclonk.org" + url "http://www.openclonk.org/builds/release/7.0/openclonk-7.0-src.tar.bz2" + sha256 "bc1a231d72774a7aa8819e54e1f79be27a21b579fb057609398f2aa5700b0732" + head "https://github.com/openclonk/openclonk", :using => :git + + bottle do + cellar :any + sha256 "b3f749b8945c227bfd7de499d873ce3185e5aa6f208b5e6dea77050807344418" => :el_capitan + sha256 "875ecfd0eb6ea4fa93943b5dea6dd166e8cb3f1672b82f2346906b0c6a082fef" => :yosemite + end + + # Requires some C++14 features missing in Mavericks + depends_on :macos => :yosemite + depends_on "cmake" => :build + depends_on "jpeg" + depends_on "libpng" + depends_on "freetype" + depends_on "glew" + depends_on "libogg" + depends_on "libvorbis" + depends_on "boost" + depends_on "freealut" + + needs :cxx11 + + def install + ENV.cxx11 + system "cmake", ".", *std_cmake_args + system "make" + system "make", "install" + bin.write_exec_script "#{prefix}/openclonk.app/Contents/MacOS/openclonk" + bin.install Dir[prefix/"c4*"] + end + + test do + system bin/"c4group" + end +end From aa2dec69314ac5c9e395ac3a08514fd70e02e8f2 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:58 +0000 Subject: [PATCH 111/175] openjazz: import from homebrew/games. --- Formula/openjazz.rb | 79 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 Formula/openjazz.rb diff --git a/Formula/openjazz.rb b/Formula/openjazz.rb new file mode 100644 index 000000000000..5966a1bdf951 --- /dev/null +++ b/Formula/openjazz.rb @@ -0,0 +1,79 @@ +class Openjazz < Formula + desc "Open source Jazz Jackrabit engine" + homepage "http://www.alister.eu/jazz/oj/" + url "http://www.alister.eu/jazz/oj/OpenJazz-src-160214.zip" + sha256 "8178731e005188a8e87174af26f767b7a1815c06b3bd9b8156440ecea4d7b10a" + + head "https://github.com/AlisterT/openjazz.git" + + bottle do + cellar :any + sha256 "2af3cfc16369b10add552cb8fe84656857473e1f567087cc9b37ddbe1b82049e" => :yosemite + sha256 "faa962823262bace1d0105d5be10cbebdc5ebb244ebe170ba3b4b4b7ae56afeb" => :mavericks + sha256 "70f56d799b82522426d011face63f33665af096c0d22f18c432c6d2cae25033e" => :mountain_lion + end + + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "pkg-config" => :build + depends_on "libmodplug" + depends_on "sdl" + + # From LICENSE.DOC: + # "Epic MegaGames allows and encourages all bulletin board systems and online + # services to distribute this game by modem as long as no files are altered + # or removed." + resource "shareware" do + url "http://image.dosgamesarchive.com/games/jazz.zip" + sha256 "ed025415c0bc5ebc3a41e7a070551bdfdfb0b65b5314241152d8bd31f87c22da" + end + + # MSG_NOSIGNAL is only defined in Linux + # https://github.com/AlisterT/openjazz/pull/7 + patch :DATA + + def install + # the libmodplug include paths in the source don't include the libmodplug directory + ENV.append_to_cflags "-I#{Formula["libmodplug"].opt_include}/libmodplug" + + system "autoreconf", "-ivf" + system "./configure", "--prefix=#{prefix}", + "--bindir=#{pkgshare}", + "--disable-dependency-tracking" + system "make", "install" + + # Default game lookup path is the OpenJazz binary's location + (bin/"OpenJazz").write <<-EOS.undent + #!/bin/sh + + exec "#{pkgshare}/OpenJazz" "$@" + EOS + + resource("shareware").stage do + pkgshare.install Dir["*"] + end + end + + def caveats; <<-EOS.undent + The shareware version of Jazz Jackrabbit has been installed. + You can install the full version by copying the game files to: + #{pkgshare} + EOS + end +end + +__END__ +diff --git a/src/io/network.cpp b/src/io/network.cpp +index 8af8775..362118e 100644 +--- a/src/io/network.cpp ++++ b/src/io/network.cpp +@@ -53,6 +53,9 @@ + #include + #include + #endif ++ #ifdef __APPLE__ ++ #define MSG_NOSIGNAL SO_NOSIGPIPE ++ #endif + #elif defined USE_SDL_NET + #include + #endif From 280bd2777ffc676a8aec86392838d52d320ad7aa Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:58 +0000 Subject: [PATCH 112/175] openmsx: import from homebrew/games. --- Formula/openmsx.rb | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Formula/openmsx.rb diff --git a/Formula/openmsx.rb b/Formula/openmsx.rb new file mode 100644 index 000000000000..325cdc5d60d0 --- /dev/null +++ b/Formula/openmsx.rb @@ -0,0 +1,43 @@ +class Openmsx < Formula + desc "MSX emulator" + homepage "http://openmsx.org/" + url "https://github.com/openMSX/openMSX/releases/download/RELEASE_0_13_0/openmsx-0.13.0.tar.gz" + sha256 "41e37c938be6fc9f90659f8808418133601a85475058725d3e0dccf2902e62cb" + head "https://github.com/openMSX/openMSX.git" + + bottle do + cellar :any + sha256 "9f5349827e8715ec2c03fb12694632e7bd54790773d81454b4f121008d5bd12c" => :el_capitan + sha256 "961b45cb835fc1dedf110b0363df650815c4efc09e0e9593eba22d405084d205" => :yosemite + sha256 "bb5f38611612ca55da2e83917cc43c3b05be38b13ba7fce647106bc716fcb74d" => :mavericks + end + + option "without-opengl", "Disable OpenGL post-processing renderer" + option "with-laserdisc", "Enable Laserdisc support" + + depends_on "sdl" + depends_on "sdl_ttf" + depends_on "freetype" + 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 From a206014956d5980e8ef552da810ed1cc73df28ce Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:58 +0000 Subject: [PATCH 113/175] openrct2: import from homebrew/games. --- Formula/openrct2.rb | 50 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Formula/openrct2.rb diff --git a/Formula/openrct2.rb b/Formula/openrct2.rb new file mode 100644 index 000000000000..d1d6ff71178d --- /dev/null +++ b/Formula/openrct2.rb @@ -0,0 +1,50 @@ +class Openrct2 < Formula + desc "Open source re-implementation of RollerCoaster Tycoon 2" + homepage "https://openrct2.website" + url "https://github.com/OpenRCT2/OpenRCT2/archive/v0.0.4.tar.gz" + sha256 "ebcbbf1de3ccb76168535308ec9045271fae6c730bca4929575277f98deb40ab" + + bottle do + cellar :any + sha256 "4a8e954236100631e4dfcfef40a40a7a022f6c6844b1853650424ed99ab0a694" => :el_capitan + sha256 "d0ab4dc42e818fdd6fd40c18ffb3032d58c5b7d76741f54742a11c0ebb00776b" => :yosemite + sha256 "d9a744d07526bb96ecaf8e48e486b32127ba4a38261f4495e78b68c1d6eee643" => :mavericks + end + + head do + url "https://github.com/OpenRCT2/OpenRCT2.git", :branch => "develop" + + depends_on "openssl" => "universal" + end + + depends_on "cmake" => :build + depends_on "pkg-config" => :build + depends_on "jansson" => "universal" + depends_on "libpng" => "universal" + depends_on "sdl2" => "universal" + depends_on "sdl2_ttf" => "universal" + depends_on "speex" => "universal" + + depends_on "freetype" => "universal" # for sdl2_ttf + depends_on "libogg" => "universal" # for speex + depends_on "xz" => "universal" # for libpng + + def install + ENV.m32 + mkdir "build" do + system "cmake", "..", *std_cmake_args + system "make", "install" + end + + # By default OS X build only looks up data in app bundle Resources + libexec.install bin/"openrct2" + (bin/"openrct2").write <<-EOS.undent + #!/bin/bash + exec "#{libexec}/openrct2" "$@" "--openrct-data-path=#{pkgshare}" + EOS + end + + test do + assert_match /OpenRCT2, v#{version}/, shell_output("#{bin}/openrct2 -v") + end +end From 60962b8cea1b8134356489fea3e505740c5da056 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:58 +0000 Subject: [PATCH 114/175] opensyobon: import from homebrew/games. --- Formula/opensyobon.rb | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Formula/opensyobon.rb diff --git a/Formula/opensyobon.rb b/Formula/opensyobon.rb new file mode 100644 index 000000000000..8f941cb15e48 --- /dev/null +++ b/Formula/opensyobon.rb @@ -0,0 +1,42 @@ +class Opensyobon < Formula + desc "Parody of Super Mario Bros" + homepage "http://opensyobon.sourceforge.net/" + url "https://downloads.sourceforge.net/project/opensyobon/src/SyobonAction_rc2_src.tar.gz" + version "1.0rc2" + sha256 "a61a621de7e4603be047e8666c0376892200f2876c244fb2adc9e4afebc79728" + revision 1 + + bottle do + cellar :any + sha256 "bedb519dede9fa3faef539cddf43e73c9710a2a5a1a9db39d8ee3035a04d12e9" => :el_capitan + sha256 "95aa58fd64ca54d11fb8b271a1aaae36c28ac9e861cc70af727dbdcd9d345de2" => :yosemite + sha256 "c5711cafbb9b01051625c1c6c81091dda4ffa4143c26872d297aed4eb84d6d39" => :mavericks + end + + depends_on "sdl" + depends_on "sdl_gfx" + depends_on "sdl_image" + depends_on "sdl_mixer" + depends_on "sdl_ttf" + + resource "data" do + url "https://downloads.sourceforge.net/project/opensyobon/src/SyobonAction_rc2_data.tar.gz" + sha256 "073be7634600df28909701fa132c8e474de1ff9647bf05816f80416be3bcaa9f" + end + + def install + inreplace "Makefile", "gcc", ENV.cxx + inreplace "DxLib.cpp", /(setlocale)/, '//\1' + system "make" + pkgshare.install "SyobonAction" + pkgshare.install resource("data") + (bin/"SyobonAction").write <<-EOS.undent + #!/bin/sh + cd "#{pkgshare}" && exec ./SyobonAction "$@" + EOS + end + + test do + File.executable? "#{pkgshare}/SyobonAction" + end +end From 2f30285e261b37a9ca062599132fea9edf874154 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:58 +0000 Subject: [PATCH 115/175] openttd: import from homebrew/games. --- Formula/openttd.rb | 75 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 Formula/openttd.rb diff --git a/Formula/openttd.rb b/Formula/openttd.rb new file mode 100644 index 000000000000..ccfa54f76beb --- /dev/null +++ b/Formula/openttd.rb @@ -0,0 +1,75 @@ +class Openttd < Formula + desc "Simulation game based upon Transport Tycoon Deluxe" + homepage "https://www.openttd.org/" + url "http://binaries.openttd.org/releases/1.6.1/openttd-1.6.1-source.tar.xz" + sha256 "9b08996e31c3485ef8dedfa1ab65147091593f3f11bd51eb7662ce5ea41363aa" + + head "git://git.openttd.org/openttd/trunk.git" + + bottle do + rebuild 1 + sha256 "c08df3ae637f331657f4463219be2e187c8c751bdcc894da15d8670553ad34ed" => :sierra + sha256 "56eea8abbc99d8d75d2b2a69af702e90de8dbba55f2c66268aba8f894f7a2a8c" => :el_capitan + sha256 "f5479fe91f8395fbfa5978c85485497989c47fa9f51e7735fb539cd13c5f72cd" => :yosemite + end + + depends_on "lzo" + depends_on "xz" + depends_on "pkg-config" => :build + + resource "opengfx" do + url "https://bundles.openttdcoop.org/opengfx/releases/0.5.4/opengfx-0.5.4.zip" + sha256 "3d136d776906dbe8b5df1434cb9a68d1249511a3c4cfaca55cc24cc0028ae078" + end + + resource "opensfx" do + url "https://bundles.openttdcoop.org/opensfx/releases/0.2.3/opensfx-0.2.3.zip" + sha256 "3574745ac0c138bae53b56972591db8d778ad9faffd51deae37a48a563e71662" + end + + resource "openmsx" do + url "https://bundles.openttdcoop.org/openmsx/releases/0.3.1/openmsx-0.3.1.zip" + sha256 "92e293ae89f13ad679f43185e83fb81fb8cad47fe63f4af3d3d9f955130460f5" + end + + # Ensures a deployment target is not set on 10.9: + # https://bugs.openttd.org/task/6295 + patch :p0 do + url "https://trac.macports.org/export/117147/trunk/dports/games/openttd/files/patch-config.lib-remove-deployment-target.diff" + sha256 "95c3d54a109c93dc88a693ab3bcc031ced5d936993f3447b875baa50d4e87dac" + end + + # Fixes for 10.11 + # https://bugs.openttd.org/task/6380 + patch :p0 do + url "https://bugs.openttd.org/task/6380/getfile/10390/patch-src__video__cocoa__wnd_quartz.mm-avoid-removed-cmgetsystemprofile.diff" + sha256 "2cf010eb69df588134aceda0eba62cc21e221b6f2dfb7d836869b6edf4bdc093" + end + patch :p1 do + url "https://bugs.openttd.org/task/6380/getfile/10422/cocoa_m.patch" + sha256 "cbd559318f653a2e7aaadad2fd7eb1097b24a68ad42cf417c4ca530b34d2a776" + end + + def install + system "./configure", "--prefix-dir=#{prefix}" + system "make", "bundle" + + (buildpath/"bundle/OpenTTD.app/Contents/Resources/data/opengfx").install resource("opengfx") + (buildpath/"bundle/OpenTTD.app/Contents/Resources/data/opensfx").install resource("opensfx") + (buildpath/"bundle/OpenTTD.app/Contents/Resources/gm/openmsx").install resource("openmsx") + + prefix.install "bundle/OpenTTD.app" + bin.write_exec_script "#{prefix}/OpenTTD.app/Contents/MacOS/openttd" + end + + def caveats; <<-EOS.undent + If you have access to the sound and graphics files from the original + Transport Tycoon Deluxe, you can install them by following the + instructions in section 4.1 of #{prefix}/readme.txt + EOS + end + + test do + assert_match /OpenTTD #{version}\n/, shell_output("#{bin}/openttd -h") + end +end From 4a1d827c2d7324286da5d8633d7b6938fb55893a Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:58 +0000 Subject: [PATCH 116/175] pachi: import from homebrew/games. --- Formula/pachi.rb | 60 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Formula/pachi.rb diff --git a/Formula/pachi.rb b/Formula/pachi.rb new file mode 100644 index 000000000000..843e588a6066 --- /dev/null +++ b/Formula/pachi.rb @@ -0,0 +1,60 @@ +class Pachi < Formula + desc "pachi" + homepage "http://pachi.or.cz/" + url "http://repo.or.cz/w/pachi.git/snapshot/pachi-11.00-retsugen.tar.gz" + sha256 "2aaf9aba098d816d20950d283c8eaed522f3fa71f68390a4c384c0c1ab03cd6f" + head "https://github.com/pasky/pachi.git" + + bottle do + cellar :any_skip_relocation + sha256 "3a9dca7f4c14757f4da0b299118e9dc5d91eb3f47c117bd8ffe386c2b69c44c0" => :el_capitan + sha256 "ac6615ed1db69c5daeb24a0ccdaa0bca3abe35d6ae3b91c0d8c952b76b52ec02" => :yosemite + sha256 "65ae6afcb334806452449890d82bcf03c670c09345802ca977de6cbd7961ad99" => :mavericks + end + + fails_with :clang if MacOS.version <= :mavericks + + option "without-patterns", "Don't download pattern files for improved performance" + option "without-book", "Don't download a fuseki opening book" + + resource "patterns" do + url "http://sainet-dist.s3.amazonaws.com/pachi_patterns.zip" + sha256 "73045eed2a15c5cb54bcdb7e60b106729009fa0a809d388dfd80f26c07ca7cbc" + end + + resource "book" do + url "http://gnugo.baduk.org/books/ra6.zip" + sha256 "1e7ffc75c424e94338308c048aacc479da6ac5cbe77c0df8adc733956872485a" + end + + def install + ENV["MAC"] = "1" + ENV["DOUBLE_FLOATING"] = "1" + system "make" + bin.install "pachi" + + if build.with? "patterns" + share.install resource("patterns") + end + + if build.with? "book" + share.install resource("book") + end + end + + if (build.with? "book") || (build.with? "patterns") + def caveats; <<-EOS.undent + This formula also downloads additional data, such as opening books and + pattern files. They are stored in #{share}. + + At present, pachi cannot be pointed to external files, so make sure to + set the working directory to #{share} if you + want pachi to take advantage of these additional files. + EOS + end + end + + test do + assert_match /^= [A-T][0-9]+$/, shell_output("echo \"genmove b\" | #{bin}/pachi") + end +end From 3ca814853aa187147c1a4b8c6cc9ffa6012fcb9b Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:58 +0000 Subject: [PATCH 117/175] pacman4console: import from homebrew/games. --- Formula/pacman4console.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Formula/pacman4console.rb diff --git a/Formula/pacman4console.rb b/Formula/pacman4console.rb new file mode 100644 index 000000000000..1ac1f4d5ac7d --- /dev/null +++ b/Formula/pacman4console.rb @@ -0,0 +1,18 @@ +class Pacman4console < Formula + desc "Pacman for console" + homepage "https://sites.google.com/site/doctormike/pacman.html" + url "https://sites.google.com/site/doctormike/pacman-1.3.tar.gz" + sha256 "9a5c4a96395ce4a3b26a9896343a2cdf488182da1b96374a13bf5d811679eb90" + + bottle do + sha256 "3a36192b5ad29f1795386c3fcb9b23418340ba89f2ba556ff3ad28535804db37" => :el_capitan + sha256 "9789adc955f7a76c368e596bcf7744f14496d2529b4e63714e2c99bcbc8d5f20" => :yosemite + sha256 "fd20126b10d66684bd40b181a1d243fdf4040accd3a84cca5678ba853bea6da8" => :mavericks + end + + def install + system "make", "prefix=#{prefix}", "datarootdir=#{pkgshare}" + bin.install ["pacman", "pacmanedit"] + (pkgshare+"pacman").install "Levels" + end +end From e61d270b75ea1a3bf7ff0769a2a7ca63a33f53d7 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:58 +0000 Subject: [PATCH 118/175] pc6001vx: import from homebrew/games. --- Formula/pc6001vx.rb | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Formula/pc6001vx.rb diff --git a/Formula/pc6001vx.rb b/Formula/pc6001vx.rb new file mode 100644 index 000000000000..91da9cd9bf4b --- /dev/null +++ b/Formula/pc6001vx.rb @@ -0,0 +1,33 @@ +class Pc6001vx < Formula + desc "PC-6001 emulator" + homepage "http://eighttails.seesaa.net/" + url "http://eighttails.up.seesaa.net/bin/PC6001VX_2.30.0_src.tar.gz" + sha256 "51347ba79b05c66fe029cfc430ba2a4661b61d25ec3b03bc405b52a2fac97021" + revision 1 + head "https://github.com/eighttails/PC6001VX.git" + + bottle do + cellar :any + sha256 "42beba7cb2d6d32b89f967a9e834bd833b4ad5bddb2fed32dd00bf5447dabb66" => :sierra + sha256 "514347a708086aa5d590ebedf7ea0682195546ccf21e9d81082e46b3448c76aa" => :el_capitan + sha256 "8bdc3a0e6e8c5b32f476a87c5057269de0a179ee3eb8e07d10f3524584f4708f" => :yosemite + end + + depends_on "qt@5.7" + depends_on "sdl2" + depends_on "ffmpeg" + + def install + # Need to explicitly set up include directories + ENV.append_to_cflags "-I#{Formula["sdl2"].opt_include}" + ENV.append_to_cflags "-I#{Formula["ffmpeg"].opt_include}" + # Turn off errors on C++11 build which used for properly linking standard lib + ENV.append_to_cflags "-Wno-reserved-user-defined-literal" + # Use libc++ explicitly, otherwise build fails + ENV.append_to_cflags "-stdlib=libc++" if ENV.compiler == :clang + system "qmake", "PREFIX=#{prefix}", "QMAKE_CXXFLAGS=#{ENV.cxxflags}", "CONFIG+=c++11" + system "make" + prefix.install "PC6001VX.app" + bin.write_exec_script "#{prefix}/PC6001VX.app/Contents/MacOS/PC6001VX" + end +end From 76361d706eab62a7558694df3507b866ff7857be Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:59 +0000 Subject: [PATCH 119/175] pioneer: import from homebrew/games. --- Formula/pioneer.rb | 49 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Formula/pioneer.rb diff --git a/Formula/pioneer.rb b/Formula/pioneer.rb new file mode 100644 index 000000000000..965add5eed81 --- /dev/null +++ b/Formula/pioneer.rb @@ -0,0 +1,49 @@ +class Pioneer < Formula + desc "Game of lonely space adventure" + homepage "http://pioneerspacesim.net/" + url "https://github.com/pioneerspacesim/pioneer/archive/20161129.tar.gz" + sha256 "1c6fcc9a16da2c6d664ab88764718b94d7fdf5016bc5b4f97d7b00f8eccd9336" + head "https://github.com/pioneerspacesim/pioneer.git" + + bottle do + sha256 "8ef309b2aeddfc4c8e1ed33f288f2032b43e522777b8e5946e5ab219621295ef" => :sierra + sha256 "fd9aae49b26b9f87876c99c2e802bd63f224110934094ef2e14e5222519a0fe9" => :el_capitan + sha256 "4592cec47cf52f22f9c779b3980c93f67056f318489933381e9262fdd9d2edcf" => :yosemite + end + + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "pkg-config" => :build + depends_on "assimp" + depends_on "freetype" + depends_on "sdl2" + depends_on "sdl2_image" + depends_on "libsigc++" + depends_on "libvorbis" + depends_on "libpng" + depends_on "lua" + + needs :cxx11 + + def install + ENV.cxx11 + ENV["PIONEER_DATA_DIR"] = "#{pkgshare}/data" + + # Remove as soon as possible + # https://github.com/pioneerspacesim/pioneer/issues/3839 + ENV["ARFLAGS"] = "cru" + + system "./bootstrap" + system "./configure", "--disable-dependency-tracking", + "--disable-silent-rules", + "--prefix=#{prefix}", + "--with-version=#{version}", + "--with-external-liblua" + system "make", "install" + end + + test do + assert_equal "#{name} #{version}", shell_output("#{bin}/pioneer -v 2>&1").chomp + assert_equal "modelcompiler #{version}", shell_output("#{bin}/modelcompiler -v 2>&1").chomp + end +end From a497922bb95e88bc04b157ccc21bcfc1805c40f1 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:59 +0000 Subject: [PATCH 120/175] pioneers: import from homebrew/games. --- Formula/pioneers.rb | 48 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Formula/pioneers.rb diff --git a/Formula/pioneers.rb b/Formula/pioneers.rb new file mode 100644 index 000000000000..5077cb2d88f9 --- /dev/null +++ b/Formula/pioneers.rb @@ -0,0 +1,48 @@ +class Pioneers < Formula + desc "Settlers of Catan clone" + homepage "http://pio.sourceforge.net/" + url "https://downloads.sourceforge.net/project/pio/Source/pioneers-15.3.tar.gz" + sha256 "69afa51b71646565536b571b0f89786d3a7616965265f196fd51656b51381a89" + + bottle do + revision 1 + sha256 "0d02dc33d3ad81b3a65a757b0c648aa6600de5916bd62b2c6c1cbdff45691724" => :el_capitan + sha256 "536e2d8a7323e6a1107edc878505125b17677a8712e4d7a4dee12849fb51de18" => :yosemite + sha256 "34b67317d7daa35ce99fcbeb24a30cde358554890d31837767cb67eba0989142" => :mavericks + end + + fails_with :clang do + build 318 + cause "'#line directive requires a positive integer' argument in generated file" + end + + depends_on "pkg-config" => :build + depends_on "intltool" => :build + depends_on "gettext" + depends_on "gtk+3" + depends_on "librsvg" # svg images for gdk-pixbuf + + def install + # fix usage of echo options not supported by sh + inreplace "Makefile.in", /\becho/, "/bin/echo" + + # GNU ld-only options + inreplace Dir["configure{,.ac}"] do |s| + s.gsub!(/ -Wl\,--as-needed/, "") + s.gsub!(/ -Wl,-z,(relro|now)/, "") + end + + system "./configure", "--disable-debug", "--disable-dependency-tracking", + "--prefix=#{prefix}" + system "make", "install" + end + + test do + system "#{bin}/pioneers-editor", "--help" + server = fork do + system "#{bin}/pioneers-server-console" + end + sleep 5 + Process.kill("TERM", server) + end +end From 7463a70c5db0b43bc5e1f39b8082d0db6b3e065a Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:59 +0000 Subject: [PATCH 121/175] polyglot: import from homebrew/games. --- Formula/polyglot.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Formula/polyglot.rb diff --git a/Formula/polyglot.rb b/Formula/polyglot.rb new file mode 100644 index 000000000000..a7c28faf7d56 --- /dev/null +++ b/Formula/polyglot.rb @@ -0,0 +1,23 @@ +class Polyglot < Formula + desc "Protocol adapter to run UCI engines under XBoard" + homepage "https://chessprogramming.wikispaces.com/PolyGlot" + url "http://hgm.nubati.net/releases/polyglot-2.0.4.tar.gz" + sha256 "c11647d1e1cb4ad5aca3d80ef425b16b499aaa453458054c3aa6bec9cac65fc1" + head "http://hgm.nubati.net/git/polyglot.git", :branch => "learn" + + bottle do + cellar :any_skip_relocation + sha256 "e8fec97a8ac86a2e0a8d73ef7d2867912001cf9c838f2b2943b910f38db88845" => :sierra + sha256 "fab4e7a336016feb657852395b589bd8aa35b7f8d07147ee3147600ff57de609" => :el_capitan + sha256 "f3aca0dff8bec92b56d215dae77738863e0216227c40f1bf148eb78b807cbf6f" => :yosemite + end + + def install + system "./configure", "--prefix=#{prefix}" + system "make", "install" + end + + test do + assert_match /^PolyGlot \d\.\d\.[0-9a-z]+ by Fabien Letouzey/, shell_output("#{bin}/polyglot --help") + end +end From d5478460cefee059ccbfe32b6375b21176e01026 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:59 +0000 Subject: [PATCH 122/175] ponscripter-sekai: import from homebrew/games. --- Formula/ponscripter-sekai.rb | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Formula/ponscripter-sekai.rb diff --git a/Formula/ponscripter-sekai.rb b/Formula/ponscripter-sekai.rb new file mode 100644 index 000000000000..f3927f95f887 --- /dev/null +++ b/Formula/ponscripter-sekai.rb @@ -0,0 +1,34 @@ +class PonscripterSekai < Formula + desc "NScripter-like visual novel engine" + homepage "https://github.com/sekaiproject/ponscripter-fork" + url "https://github.com/sekaiproject/ponscripter-fork/archive/v0.0.6.tar.gz" + sha256 "888a417808fd48f8f55da42c113b04d61396a1237b2b0fed2458e804b8ddf426" + head "https://github.com/sekaiproject/ponscripter-fork.git" + + bottle do + cellar :any + sha256 "f861cfa4717bf19c8217152d5a4faebcfa36620fe5ea2d158d5cf0e60aeb1284" => :yosemite + sha256 "233d70386e36db3826f999fcda824f7853d3ec62b6fc3d1f22cad922ad3cdb1c" => :mavericks + sha256 "cfe3febe9dfc2d0e3e72a3b9457338820df18429e680c55f9a803620a878b051" => :mountain_lion + end + + depends_on "sdl2" + depends_on "sdl2_image" + depends_on "sdl2_mixer" => ["with-libvorbis", "with-smpeg2"] + depends_on "libvorbis" + depends_on "smpeg2" + depends_on "freetype" + + def install + # Disable building man pages + inreplace "configure", /.*install-man.*/, "" + + system "./configure", "--prefix=#{prefix}", + "--unsupported-compiler" + system "make", "install" + end + + test do + system "#{bin}/ponscr", "-v" + end +end From ab39b09f837aa616b4ffc4b07ca7b863bf1f0f0b Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:59 +0000 Subject: [PATCH 123/175] ppsspp: import from homebrew/games. --- Formula/ppsspp.rb | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Formula/ppsspp.rb diff --git a/Formula/ppsspp.rb b/Formula/ppsspp.rb new file mode 100644 index 000000000000..f385f8e1be87 --- /dev/null +++ b/Formula/ppsspp.rb @@ -0,0 +1,39 @@ +class Ppsspp < Formula + desc "PlayStation Portable emulator" + homepage "http://ppsspp.org/" + url "https://github.com/hrydgard/ppsspp.git", + :tag => "v1.3", + :revision => "6d0d36bf914a3f5373627a362d65facdcfbbfe5f" + head "https://github.com/hrydgard/ppsspp.git" + + bottle do + cellar :any + sha256 "c4577b4731eabf5ea07c74d810369d04370765f5fb17fd6690af27f29f4f0320" => :sierra + sha256 "f0abb71427667e2adac3bc48872602622e16470543b5ef5a37b284b38e527dec" => :el_capitan + sha256 "a9ba99b5a33144f81bbcec6d411c1186d681628cc32954405003554bd34d9c41" => :yosemite + end + + depends_on "cmake" => :build + depends_on "sdl2" + depends_on "glew" + depends_on "libzip" + depends_on "snappy" + depends_on "ffmpeg" + + def install + args = std_cmake_args + # Use brewed FFmpeg rather than precompiled binaries in the repo + args << "-DUSE_SYSTEM_FFMPEG=ON" + + # fix missing include for zipconf.h + ENV.append_to_cflags "-I#{Formula["libzip"].opt_prefix}/lib/libzip/include" + + mkdir "build" do + system "cmake", "..", *args + system "make" + prefix.install "PPSSPPSDL.app" + bin.write_exec_script "#{prefix}/PPSSPPSDL.app/Contents/MacOS/PPSSPPSDL" + mv "#{bin}/PPSSPPSDL", "#{bin}/ppsspp" + end + end +end From ea25fea0e308e73b1ad5458c8c17152b17dc9cda Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:59 +0000 Subject: [PATCH 124/175] puzzles: import from homebrew/games. --- Formula/puzzles.rb | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Formula/puzzles.rb diff --git a/Formula/puzzles.rb b/Formula/puzzles.rb new file mode 100644 index 000000000000..af60bf621974 --- /dev/null +++ b/Formula/puzzles.rb @@ -0,0 +1,29 @@ +class Puzzles < Formula + desc "Collection of one-player puzzle games" + homepage "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/" + url "https://mirrors.kernel.org/debian/pool/main/s/sgt-puzzles/sgt-puzzles_20140928.r10274.orig.tar.gz" + mirror "https://mirrors.ocf.berkeley.edu/debian/pool/main/s/sgt-puzzles/sgt-puzzles_20140928.r10274.orig.tar.gz" + version "10274" + sha256 "d8c61b29c4cb39d991e4440e411fd0d78f23fdf5fb96621b83ac34ab396823aa" + + head "git://git.tartarus.org/simon/puzzles.git" + + bottle do + cellar :any + sha256 "c81998464a7c05a2b0c8388d2719b02f22874bf14b83b61c947fbac1d9dfd23d" => :yosemite + sha256 "d0ef8a9ea7b3a395557d20c64ef0e7301c8fd62caca5f9e5084f4fb9542dd439" => :mavericks + sha256 "91aceb93ef4d2369588f7de865654e7617eb4f6e4f99fd97ee633220c932ede6" => :mountain_lion + end + + depends_on "halibut" + + def install + system "perl", "mkfiles.pl" + system "make", "-d", "-f", "Makefile.osx", "all" + prefix.install "Puzzles.app" + end + + test do + File.executable? prefix/"Puzzles.app/Contents/MacOS/puzzles" + end +end From 80618587f4f698279015708a66f8eca3718a23eb Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:59 +0000 Subject: [PATCH 125/175] pytouhou: import from homebrew/games. --- Formula/pytouhou.rb | 77 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 Formula/pytouhou.rb diff --git a/Formula/pytouhou.rb b/Formula/pytouhou.rb new file mode 100644 index 000000000000..128fe1e656e9 --- /dev/null +++ b/Formula/pytouhou.rb @@ -0,0 +1,77 @@ +class Pytouhou < Formula + desc "Libre implementation of Touhou 6 engine" + homepage "http://pytouhou.linkmauve.fr/" + url "http://hg.linkmauve.fr/touhou", :revision => "5270c34b4c00", :using => :hg + version "634" + head "http://hg.linkmauve.fr/touhou", :using => :hg + + bottle do + cellar :any + sha256 "fc1abc1c09ddeda141d9e6abdf8c47b92a940a5d4428bfd5805b2f18228dd010" => :el_capitan + sha256 "a047cc7ebd5ca9c9f5b56bdf66e17dd0fd0accd10e09ce4ffa73a652e7cecedd" => :yosemite + sha256 "583472b341316760c1dea2336d052c5d0596db493c08652e8c5f42b5a97b732a" => :mavericks + end + + option "with-demo", "Install demo version of Touhou 6" + + depends_on :python3 + depends_on "pkg-config" => :build + depends_on "libepoxy" + depends_on "sdl2" + depends_on "sdl2_image" + depends_on "sdl2_mixer" + depends_on "sdl2_ttf" + depends_on "gtk+3" => :recommended + if build.with? "gtk+3" + depends_on "py3cairo" # FIXME: didn't get picked up by pygobject3 below + depends_on "pygobject3" => "with-python3" + end + + resource "cython" do + url "https://pypi.python.org/packages/source/C/Cython/Cython-0.23.3.tar.gz" + sha256 "590274ac8dbd1e62cc79d94eb2e2f4ae60cea91a9f8d50b8697d39aba451e82e" + end + + resource "demo" do + url "http://www16.big.or.jp/~zun/data/soft/kouma_tr013.lzh" + sha256 "77ea64ade20ae7d890a4b0b1623673780c34dd2aa48bf2410603ade626440a8b" + end + + def install + pyver = Language::Python.major_minor_version "python3" + ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python#{pyver}/site-packages" + resource("cython").stage do + system "python3", *Language::Python.setup_install_args(libexec/"vendor") + end + + # hg can't determine revision number (no .hg on the stage) + inreplace "setup.py", /(version)=.+,$/, "\\1='#{version}'," + ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python#{pyver}/site-packages" + system "python3", *Language::Python.setup_install_args(libexec) + + if build.with? "demo" + resource("demo").stage do + (pkgshare/"game").install Dir["東方紅魔郷 体験版/*"] + end + end + + # Set default game path to pkgshare + inreplace "#{libexec}/bin/pytouhou", /('path'): '\.'/, "\\1: '#{pkgshare}/game'" + + bin.install Dir[libexec/"bin/*"] + bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"]) + end + + def caveats + s = <<-EOS.undent + The default path for the game data is: + #{pkgshare}/game + EOS + if build.with? "demo" + s += <<-EOS.undent + Demo version of Touhou 6 has been installed. + EOS + end + s + end +end From eea220cc04fd9e00043599fe1ac515c149c0113a Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:59 +0000 Subject: [PATCH 126/175] qdae: import from homebrew/games. --- Formula/qdae.rb | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Formula/qdae.rb diff --git a/Formula/qdae.rb b/Formula/qdae.rb new file mode 100644 index 000000000000..bac08e8243c5 --- /dev/null +++ b/Formula/qdae.rb @@ -0,0 +1,33 @@ +class Qdae < Formula + desc "Quick and Dirty Apricot Emulator" + homepage "http://www.seasip.info/Unix/QDAE/" + url "http://www.seasip.info/Unix/QDAE/qdae-0.0.10.tar.gz" + sha256 "780752c37c9ec68dd0cd08bd6fe288a1028277e10f74ef405ca200770edb5227" + + bottle do + sha256 "8f8bacc65658df8d20648da83bfb6cb73738ce2f50c4c8dd96b3d59ee2238046" => :el_capitan + sha256 "7c6215e807e24d1a22e9186329c17fb7cdcf19cba797483e6340aecfe42e3c36" => :yosemite + sha256 "a0c2bc5437cdb373ec43932e98237daa3a33b330afa0c68122c9de6afd94836d" => :mavericks + end + + depends_on "sdl" + depends_on "libxml2" + + def install + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--disable-silent-rules", + "--prefix=#{prefix}" + system "make", "install" + end + + def caveats; <<-EOS.undent + Data files are located in the following directory: + #{share}/QDAE + EOS + end + + test do + File.executable? "#{bin}/qdae" + end +end From aa81a7e036cd8b04b21dc9b2fc18c8735ea276b8 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:59 +0000 Subject: [PATCH 127/175] qtads: import from homebrew/games. --- Formula/qtads.rb | 54 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Formula/qtads.rb diff --git a/Formula/qtads.rb b/Formula/qtads.rb new file mode 100644 index 000000000000..61b65fbf4213 --- /dev/null +++ b/Formula/qtads.rb @@ -0,0 +1,54 @@ +class Qtads < Formula + desc "TADS multimedia interpreter" + homepage "http://qtads.sourceforge.net/" + head "https://github.com/realnc/qtads.git" + + stable do + url "https://downloads.sourceforge.net/project/qtads/qtads-2.x/2.1.7/qtads-2.1.7.tar.bz2" + sha256 "7477bb3cb1f74dcf7995a25579be8322c13f64fb02b7a6e3b2b95a36276ef231" + + # Remove for > 2.1.7 + # fix infinite recursion + patch do + url "https://github.com/realnc/qtads/commit/d22054b.patch" + sha256 "10157fc4c03cf33496d93d18e5ca3c044df5457c7e56c454dabfb154ffb627ca" + end + + # Remove for > 2.1.7 + # fix pointer/integer comparison + patch do + url "https://github.com/realnc/qtads/commit/46701a2.patch" + sha256 "34aa02b5ef0ec4e61c47cbd64fd256d3ebe158925c69680a91208f71b77a52d1" + end + end + + bottle do + cellar :any + sha256 "209e71a355f9da3fbd39f61ea911dfe53938e7ffdeb7733d10be05c34a7038f7" => :sierra + sha256 "656b1b8d5f729517c24ac6d7634e9763181318b4de41f9bc26262a7f14b52cef" => :el_capitan + sha256 "88bd4cf29d96a84279dbd761d774b783cd92f8113645b8fd87972d0e3a985cae" => :yosemite + end + + depends_on "pkg-config" => :build + depends_on "qt5" + depends_on "sdl2" + depends_on "sdl2_mixer" + depends_on "sdl_sound" + + def install + sdl_sound_include = Formula["sdl_sound"].opt_include + inreplace "qtads.pro", + "INCLUDEPATH += src $$T2DIR $$T3DIR $$HTDIR", + "INCLUDEPATH += src $$T2DIR $$T3DIR $$HTDIR #{sdl_sound_include}/SDL" + + system "qmake", "DEFINES+=NO_STATIC_TEXTCODEC_PLUGINS" + system "make" + prefix.install "QTads.app" + bin.write_exec_script "#{prefix}/QTads.app/Contents/MacOS/QTads" + man6.install "share/man/man6/qtads.6" + end + + test do + assert File.exist?("#{bin}/QTads"), "I'm an untestable GUI app." + end +end From 8ca8a3ab7549df8a414e67b280d36809c28897a9 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:59 +0000 Subject: [PATCH 128/175] quasi88: import from homebrew/games. --- Formula/quasi88.rb | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Formula/quasi88.rb diff --git a/Formula/quasi88.rb b/Formula/quasi88.rb new file mode 100644 index 000000000000..720d1af62d5f --- /dev/null +++ b/Formula/quasi88.rb @@ -0,0 +1,42 @@ +class Quasi88 < Formula + desc "PC-8801 emulator" + homepage "http://www.eonet.ne.jp/~showtime/quasi88/" + url "http://www.eonet.ne.jp/~showtime/quasi88/release/quasi88-0.6.4.tgz" + sha256 "2c4329f9f77e02a1e1f23c941be07fbe6e4a32353b5d012531f53b06996881ff" + + bottle do + cellar :any + sha256 "79c3574f94b42d4c9a207ae299b3f2924e2dcf17dd4c380c0fc49eab1799f8e8" => :yosemite + sha256 "c120675872615f7594e7e255e2072debbdb92c1a467700bfdb762bfc6ead0cd7" => :mavericks + sha256 "3215994fc8ac1255c988dbd496c9880108da0bda4aec5fda52132c7c5c874454" => :mountain_lion + end + + depends_on "sdl" + + def install + args = %W[ + X11_VERSION= + SDL_VERSION=1 + ARCH=macosx + SOUND_SDL=1 + LD=#{ENV.cxx} + CXX=#{ENV.cxx} + CXXLIBS= + ] + system "make", *args + bin.install "quasi88.sdl" => "quasi88" + end + + def caveats; <<-EOS.undent + You will need to place ROM and disk files. + Default arguments for the directories are: + -romdir ~/quasi88/rom/ + -diskdir ~/quasi88/disk/ + -tapedir ~/quasi88/tape/ + EOS + end + + test do + system "#{bin}/quasi88", "-help" + end +end From db72c260679b4c035b7b01d7c3f852b7fb313673 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:59 +0000 Subject: [PATCH 129/175] raine: import from homebrew/games. --- Formula/raine.rb | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Formula/raine.rb diff --git a/Formula/raine.rb b/Formula/raine.rb new file mode 100644 index 000000000000..4b664ca1e14c --- /dev/null +++ b/Formula/raine.rb @@ -0,0 +1,45 @@ +class Raine < Formula + desc "680x0 arcade emulator" + homepage "http://raine.1emulation.com/" + url "https://github.com/zelurker/raine/archive/0.64.13.tar.gz" + sha256 "0af13e67744ac81f987687a3f83703bc844897a6a1b828a19d82f96dfe8ab719" + head "https://github.com/zelurker/raine.git" + + bottle do + cellar :any + sha256 "88abdfb9d5b01586a863bf0e76cdde4d8f5e3ad16d3998dfc7aec59914ed61fa" => :el_capitan + sha256 "43a1362c8d535963105b8cc6072907d0bf5fa914a29b820549291871c48c9661" => :yosemite + sha256 "761b92f036d8c08f1f71effe374def595af2363296f67ab258b7f3394f76ed44" => :mavericks + end + + depends_on "gettext" => "universal" + depends_on "libpng" => "universal" + depends_on "sdl" => "universal" + depends_on "sdl_image" => "universal" + depends_on "sdl_sound" => ["universal", "with-flac", "with-libogg", "with-libvorbis"] + depends_on "sdl_ttf" => "universal" + depends_on "muparser" => "universal" + depends_on "nasm" => :build + + depends_on "flac" => "universal" # for sdl_sound + depends_on "freetype" => "universal" # for sdl_ttf + depends_on "xz" => "universal" # for sdl_sound, etc. + + def install + ENV.m32 + inreplace "makefile" do |s| + s.gsub! /-framework (SDL|SDL_image|SDL_ttf)/, "-l\\1" + s.gsub! %r{/usr/local/lib/libSDL_sound\.a}, "-lSDL_sound" + s.gsub! %r{/usr/local/lib/libintl\.a}, "-lintl" + s.gsub! %r{/usr/local/lib/libmuparser\.a}, "-lmuparser" + end + system "make" + system "make", "install" + prefix.install "Raine.app" + bin.write_exec_script "#{prefix}/Raine.app/Contents/MacOS/raine" + end + + test do + assert_match /RAINE \(680x0 Arcade Emulation\) #{version} /, shell_output("#{bin}/raine -n") + end +end From a5df3f96f0eb817cb225491fe8b4bc4b0b1559d8 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:59 +0000 Subject: [PATCH 130/175] rawgl: import from homebrew/games. --- Formula/rawgl.rb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Formula/rawgl.rb diff --git a/Formula/rawgl.rb b/Formula/rawgl.rb new file mode 100644 index 000000000000..40d30eb5ac81 --- /dev/null +++ b/Formula/rawgl.rb @@ -0,0 +1,25 @@ +class Rawgl < Formula + desc "Rewritten engine for Another World" + homepage "http://cyxdown.free.fr/rawgl/" + url "https://github.com/cyxx/rawgl/archive/rawgl-0.2.1.tar.gz" + sha256 "da00d4abbc266e94c3755c2fd214953c48698826011b1d4afbebb99396240073" + head "https://github.com/cyxx/rawgl.git" + + bottle do + cellar :any + sha256 "f3b4affdbc9313bdb206923ee1d12e509a9acf539d25818832270cbc1c4c16a8" => :sierra + sha256 "ed075b6796ac69e2912ee05404672f70e611276a9d884f878e8285d7a14b6214" => :yosemite + end + + depends_on "sdl2" + depends_on "sdl2_mixer" + + def install + system "make" + bin.install "rawgl" + end + + test do + system bin/"rawgl", "--help" + end +end From cd3a44de38c1aa93ebfae92297992280acb65b59 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:00 +0000 Subject: [PATCH 131/175] reminiscence: import from homebrew/games. --- Formula/reminiscence.rb | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Formula/reminiscence.rb diff --git a/Formula/reminiscence.rb b/Formula/reminiscence.rb new file mode 100644 index 000000000000..5e83e496b040 --- /dev/null +++ b/Formula/reminiscence.rb @@ -0,0 +1,28 @@ +class Reminiscence < Formula + desc "Flashback engine reimplementation" + homepage "http://cyxdown.free.fr/reminiscence/" + url "http://cyxdown.free.fr/reminiscence/REminiscence-0.3.2.tar.bz2" + sha256 "063a1d9bb61a91ffe7de69516e48164a1d4d5d240747968bed4fd292d5df546f" + + bottle do + cellar :any + sha256 "a11a7b62cbbcd30e24742dc4d1ef881f2f5cedc5a6f61bb18fe6d5092e7c7986" => :sierra + sha256 "de842e520b31200e696e0139ccb213e1a5704b65529e53af8ea52a8b0c1fdcd2" => :el_capitan + sha256 "6f664f7cdcf1d5b90f2c82c30f13cdf6960ebd2e83882d4d05cdac0bac1966b0" => :yosemite + end + + depends_on "libmodplug" + depends_on "sdl2" + + def install + # REminiscence supports both SDL1 and 2 + # Use SDL2 to have better input support + inreplace "Makefile", "sdl-config", "sdl2-config" + system "make" + bin.install "rs" => "reminiscence" + end + + test do + system bin/"reminiscence", "--help" + end +end From 78d12a7e3aa0e7b434b68a4d8ea83ea35e1b4d83 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:00 +0000 Subject: [PATCH 132/175] residualvm: import from homebrew/games. --- Formula/residualvm.rb | 47 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Formula/residualvm.rb diff --git a/Formula/residualvm.rb b/Formula/residualvm.rb new file mode 100644 index 000000000000..9506221c262b --- /dev/null +++ b/Formula/residualvm.rb @@ -0,0 +1,47 @@ +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 + revision 1 + sha256 "ae156d7f7507a6469fa6538d5e0adc056baaf97341ed3a913c4bd0c8d518ba25" => :yosemite + sha256 "f42ea636d726f4c74066634d4b198296861beb62a8476f14e459168d25ea8b24" => :mavericks + sha256 "88e0730c81f130ed196de58ab791610f7219837797a343b1ed736ace0235f25b" => :mountain_lion + 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 From d17adc2f3afbda7ca281b68d54b29751293c46ba Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:00 +0000 Subject: [PATCH 133/175] rlvm: import from homebrew/games. --- Formula/rlvm.rb | 54 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Formula/rlvm.rb diff --git a/Formula/rlvm.rb b/Formula/rlvm.rb new file mode 100644 index 000000000000..05774be7f2b2 --- /dev/null +++ b/Formula/rlvm.rb @@ -0,0 +1,54 @@ +class Rlvm < Formula + desc "RealLive interpreter for VisualArts games" + homepage "http://www.rlvm.net/" + url "https://github.com/eglaysher/rlvm/archive/release-0.14.tar.gz" + sha256 "6d1717540b8db8aca1480ebafae3354b24e3122a77dd2ee81f4b964c7b10dcc0" + revision 1 + head "https://github.com/eglaysher/rlvm.git" + + bottle do + cellar :any + sha256 "42c29a5cf55b9198679dd4a0c61240615f16ef1c6ddd56bd0d338caa5a84fd53" => :el_capitan + sha256 "cc4ce80b629c71ab86ad3b5a277984ed28df256f2d8f56f2f74a47fa3645c9da" => :yosemite + sha256 "3c8051c72de57b00a29f8f0050160e95b20d1a73e817d1c8ca975157c21df62e" => :mavericks + end + + depends_on "pkg-config" => :build + depends_on "scons" => :build + depends_on "boost" + depends_on "freetype" + depends_on "gettext" + depends_on "glew" + depends_on "jpeg" + depends_on "libogg" + depends_on "libpng" + depends_on "libvorbis" + depends_on "mad" + depends_on "sdl" + depends_on "sdl_image" + depends_on "sdl_mixer" + depends_on "sdl_ttf" + + # Fix missing system header after boost update + # https://github.com/eglaysher/rlvm/issues/76 + patch do + url "https://github.com/eglaysher/rlvm/commit/668863d2222b962ee8e7d9829e972ef05c990302.diff" + sha256 "048bb7a3794a7b3eccb3976e6f61e6f250e14fa37c8ac79a52b4d231612730a4" + end + + def install + inreplace "SConstruct" do |s| + s.gsub! /("z")/, '\1, "bz2"' + s.gsub! /(CheckForSystemLibrary\(config, library_dict), subcomponents/, '\1, []' + s.gsub! "jpeglib.h", "jconfig.h" + s.gsub! /(msgfmt)/, "#{Formula["gettext"].bin}/\\1" + end + inreplace "SConscript.cocoa" do |s| + s.gsub! /(static_env\.ParseConfig)\("sdl-config --static-libs", MergeEverythingButSDLMain\)/, '\1("pkg-config --libs sdl SDL_image SDL_mixer SDL_ttf freetype2").Append(FRAMEWORKS=["OpenGL"])' + s.gsub! /(full_static_build) = True/, '\1 = False' + end + scons "--release" + prefix.install "build/rlvm.app" + bin.write_exec_script "#{prefix}/rlvm.app/Contents/MacOS/rlvm" + end +end From 18035cbd1643fbf88940a1c325036d1666e2443c Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:00 +0000 Subject: [PATCH 134/175] robotfindskitten: import from homebrew/games. --- Formula/robotfindskitten.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Formula/robotfindskitten.rb diff --git a/Formula/robotfindskitten.rb b/Formula/robotfindskitten.rb new file mode 100644 index 000000000000..4c8806607fd6 --- /dev/null +++ b/Formula/robotfindskitten.rb @@ -0,0 +1,23 @@ +class Robotfindskitten < Formula + desc "Zen Simulation of robot finding kitten" + homepage "http://robotfindskitten.org/" + url "https://downloads.sourceforge.net/project/rfk/robotfindskitten-POSIX/mayan_apocalypse_edition/robotfindskitten-2.7182818.701.tar.gz" + sha256 "7749a370796fd23e3b306b00de5f7fb7997a35fef30e3910ff159448c932d719" + + bottle do + sha256 "5eba0572a63480f072944448df0f8c309abd05e8b7c5d9cdb954c3758b165f48" => :el_capitan + sha256 "bd32a237e6402d69f88da12ac0e4ccde9a3663c73f8b078649752cbcade0b479" => :yosemite + sha256 "fc55bd723a4f3ea7a105ba2d8d74234adc077129e218f4295cae1d40ae42d125" => :mavericks + end + + def install + system "./configure", "--disable-dependency-tracking", + "--prefix=#{prefix}" + system "make", "install", "execgamesdir=#{bin}" + end + + test do + assert_equal "robotfindskitten: #{version}", + shell_output("#{bin}/robotfindskitten -V").chomp + end +end From 4cdc2bd11db8d4b3acc861a6584b0c7d2b89f3a0 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:00 +0000 Subject: [PATCH 135/175] rogue: import from homebrew/games. --- Formula/rogue.rb | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Formula/rogue.rb diff --git a/Formula/rogue.rb b/Formula/rogue.rb new file mode 100644 index 000000000000..147ce1361d54 --- /dev/null +++ b/Formula/rogue.rb @@ -0,0 +1,31 @@ +class Rogue < Formula + desc "Dungeon crawling video game" + homepage "http://web.archive.org/web/20160604020207/http://rogue.rogueforge.net/" + url "http://pkgs.fedoraproject.org/repo/pkgs/rogue/rogue5.4.4-src.tar.gz/033288f46444b06814c81ea69d96e075/rogue5.4.4-src.tar.gz" + version "5.4.4" + sha256 "7d37a61fc098bda0e6fac30799da347294067e8e079e4b40d6c781468e08e8a1" + + def install + ENV.ncurses_define if MacOS.version >= :snow_leopard + + system "./configure", "--disable-debug", "--disable-dependency-tracking", + "--prefix=#{prefix}" + + inreplace "config.h", "rogue.scr", "#{var}/rogue/rogue.scr" + + inreplace "Makefile" do |s| + # Take out weird man install script and DIY below + s.gsub! "-if test -d $(man6dir) ; then $(INSTALL) -m 0644 rogue.6 $(DESTDIR)$(man6dir)/$(PROGRAM).6 ; fi", "" + s.gsub! "-if test ! -d $(man6dir) ; then $(INSTALL) -m 0644 rogue.6 $(DESTDIR)$(mandir)/$(PROGRAM).6 ; fi", "" + end + + system "make", "install" + man6.install gzip("rogue.6") + libexec.mkpath + (var/"rogue").mkpath + end + + test do + system "#{bin}/rogue", "-s" + end +end From 62b63250ccbfd6608ac5a49fb0ce05a345604e32 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:00 +0000 Subject: [PATCH 136/175] roll: import from homebrew/games. --- Formula/roll.rb | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Formula/roll.rb diff --git a/Formula/roll.rb b/Formula/roll.rb new file mode 100644 index 000000000000..7ce3ee93757d --- /dev/null +++ b/Formula/roll.rb @@ -0,0 +1,30 @@ +class Roll < Formula + desc "CLI program for rolling a dice sequence" + homepage "https://matteocorti.github.io/roll/" + url "https://github.com/matteocorti/roll/releases/download/v2.1.1/roll-2.1.1.tar.gz" + sha256 "5d499c690d30cbe93dc571eb8e3f11d1505ce4595c8151646777548ef89a7997" + + bottle do + cellar :any_skip_relocation + sha256 "82bff3de41d1b0934deb3b56ef3f626307ddc11d29b335941636c6d37ace7cf5" => :sierra + sha256 "aa97a33ccbe0b5bb53f6eb2aac100b99b3f8b79232cd058a8f0a98b78df5928d" => :el_capitan + sha256 "96688f438082dd8e0da6f1bb4d3cdd2dab0c27ecee0b4490ccc096e958c2543b" => :yosemite + end + + head do + url "https://github.com/matteocorti/roll.git" + depends_on "autoconf" => :build + depends_on "automake" => :build + end + + def install + system "./regen.sh" if build.head? + system "./configure", "--disable-debug", "--disable-dependency-tracking", + "--prefix=#{prefix}" + system "make", "install" + end + + test do + system "#{bin}/roll", "1d6" + end +end From 95eb34dafd5e049c8bae5eadd5c68b8285fa3d1f Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:00 +0000 Subject: [PATCH 137/175] rom-tools: import from homebrew/games. --- Formula/rom-tools.rb | 60 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Formula/rom-tools.rb diff --git a/Formula/rom-tools.rb b/Formula/rom-tools.rb new file mode 100644 index 000000000000..d5ef69e6337f --- /dev/null +++ b/Formula/rom-tools.rb @@ -0,0 +1,60 @@ +class RomTools < Formula + desc "Tools for Multiple Arcade Machine Emulator" + homepage "http://mamedev.org/" + url "https://github.com/mamedev/mame/archive/mame0179.tar.gz" + version "0.179" + sha256 "d1616ef32b884c3e7913378ebf5282b6f846f895f419eb92a9068770581e081b" + head "https://github.com/mamedev/mame.git" + + bottle do + cellar :any + sha256 "e6bcfa3edcdd5a5c97a0693f06ef34c820f01724e18789c3165aa3946a547031" => :sierra + sha256 "cedcb3868e4046b7f41029c4026098c5866fb1c88e29ee368f401bd9e824c532" => :el_capitan + sha256 "191302c77eca06682ee31588ef0afa463a980eae65b77a6382ae4d9c0a69b611" => :yosemite + end + + depends_on :python => :build if MacOS.version <= :snow_leopard + depends_on "pkg-config" => :build + depends_on "sdl2" + depends_on "flac" + depends_on "portmidi" + + def install + inreplace "scripts/src/main.lua", /(targetsuffix) "\w+"/, '\1 ""' + inreplace "scripts/src/osd/sdl.lua", "--static", "" + system "make", "TARGET=ldplayer", "TOOLS=1", + "PTR64=#{MacOS.prefer_64_bit? ? 1 : 0}", # for old Macs + "USE_LIBSDL=1", + "USE_SYSTEM_LIB_ZLIB=1", + "USE_SYSTEM_LIB_FLAC=1", + "USE_SYSTEM_LIB_PORTMIDI=1" + bin.install %w[ + aueffectutil castool chdman floptool imgtool jedutil ldplayer ldresample + ldverify nltool nlwav pngcmp regrep romcmp src2html srcclean unidasm + ] + bin.install "split" => "rom-split" + man1.install Dir["docs/man/*.1"] + end + + # Needs more comprehensive tests + test do + # system "#{bin}/aueffectutil" # segmentation fault + system "#{bin}/castool" + assert_match "chdman info", shell_output("#{bin}/chdman help info", 1) + system "#{bin}/floptool" + system "#{bin}/imgtool", "listformats" + system "#{bin}/jedutil", "-viewlist" + system "#{bin}/ldplayer", "-help" + assert_match "linear equation", shell_output("#{bin}/ldresample 2>&1", 1) + assert_match "avifile.avi", shell_output("#{bin}/ldverify 2>&1", 1) + system "#{bin}/nltool", "--help" + system "#{bin}/nlwav", "--help" + assert_match "image1", shell_output("#{bin}/pngcmp 2>&1", 10) + assert_match "summary", shell_output("#{bin}/regrep 2>&1", 1) + system "#{bin}/romcmp" + system "#{bin}/rom-split" + assert_match "template", shell_output("#{bin}/src2html 2>&1", 1) + system "#{bin}/srcclean" + assert_match "architecture", shell_output("#{bin}/unidasm", 1) + end +end From e7621af622a73efa74722977265aa95e3cf28a57 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:00 +0000 Subject: [PATCH 138/175] scummvm-tools: import from homebrew/games. --- Formula/scummvm-tools.rb | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Formula/scummvm-tools.rb diff --git a/Formula/scummvm-tools.rb b/Formula/scummvm-tools.rb new file mode 100644 index 000000000000..0e59847ae6ef --- /dev/null +++ b/Formula/scummvm-tools.rb @@ -0,0 +1,30 @@ +class ScummvmTools < Formula + desc "Collection of tools for ScummVM" + homepage "http://www.scummvm.org/" + url "http://www.scummvm.org/frs/scummvm-tools/1.9.0/scummvm-tools-1.9.0.tar.xz" + sha256 "b7ab2e03c5a0efb71bb0c84434aa481331739b2b8759361d467e076b8410f938" + head "https://github.com/scummvm/scummvm-tools.git" + + bottle do + sha256 "9457b10e98204d853a80391ce28103d5385c18928f6fa3b67581f40605c61d80" => :sierra + sha256 "9cbf78a1c306ef399126c399bca23c75570f8edfba2cb7c8da4dcda4c46c2627" => :el_capitan + sha256 "799cf02d89a726ff7d42bcf9777ad11eaf98e12ba13bc6581e69b5bb99da9f33" => :yosemite + end + + depends_on "boost" + depends_on "flac" + depends_on "freetype" + depends_on "libpng" + depends_on "libvorbis" + depends_on "mad" + depends_on "wxmac" => :recommended + + def install + system "./configure", "--prefix=#{prefix}" + system "make", "install" + end + + test do + system "#{bin}/scummvm-tools-cli", "--list" + end +end From 7f4ace80d47275cd1490fc835e778d515eec16e7 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:00 +0000 Subject: [PATCH 139/175] scummvm: import from homebrew/games. --- Formula/scummvm.rb | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Formula/scummvm.rb diff --git a/Formula/scummvm.rb b/Formula/scummvm.rb new file mode 100644 index 000000000000..a754aa4c2583 --- /dev/null +++ b/Formula/scummvm.rb @@ -0,0 +1,44 @@ +class Scummvm < Formula + desc "Graphic adventure game interpreter" + homepage "https://www.scummvm.org/" + url "https://www.scummvm.org/frs/scummvm/1.9.0/scummvm-1.9.0.tar.xz" + sha256 "2417edcb1ad51ca05a817c58aeee610bc6db5442984e8cf28e8a5fd914e8ae05" + head "https://github.com/scummvm/scummvm.git" + + bottle do + sha256 "e0886c043e7823f4123605721b72faf0fab35003183000fec6aa14ec86e3b6f7" => :sierra + sha256 "1ccd12dee162c5be09ee8d0328bdd239897c746036e2bf98564ce349f70ebe59" => :el_capitan + sha256 "c116f470d6ed19dacd261f27c7f00ab9e34b2398eb3aa48355cc7e1e000214a8" => :yosemite + end + + option "with-all-engines", "Enable all engines (including broken or unsupported)" + + depends_on "sdl2" + 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" + system "./configure", *args + system "make" + system "make", "install" + (share+"pixmaps").rmtree + (share+"icons").rmtree + end + + test do + system "#{bin}/scummvm", "-v" + end +end From b5ef8a884d7d0baae85e3988b622e5fb621c7dfb Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:00 +0000 Subject: [PATCH 140/175] sdlpop: import from homebrew/games. --- Formula/sdlpop.rb | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Formula/sdlpop.rb diff --git a/Formula/sdlpop.rb b/Formula/sdlpop.rb new file mode 100644 index 000000000000..94ea43c3f545 --- /dev/null +++ b/Formula/sdlpop.rb @@ -0,0 +1,44 @@ +class Sdlpop < Formula + desc "Open-source port of Prince of Persia" + homepage "https://github.com/NagyD/SDLPoP" + url "https://github.com/NagyD/SDLPoP/archive/v1.16.tar.gz" + sha256 "4198eecdb2c4fed8f609af810962c943572df83da99c571146cee1596e7ee55b" + + bottle do + cellar :any + sha256 "b713faadd8a78caa632fe8a6c123ffac2e90a39911dd0dab32ceeca497e12496" => :sierra + sha256 "a16ea419116ba30407c9129db7bc9260dfa20e1e812c0b860665737b1f9c59be" => :el_capitan + sha256 "08a0057a866f3cdaff9dcc1c2591d340eaad77a5d8f49002be3bd18d096b7da6" => :yosemite + end + + depends_on "pkg-config" => :build + depends_on "sdl2" + depends_on "sdl2_image" + depends_on "sdl2_mixer" + + def install + system "make" + doc.install Dir["doc/*"] + + # Use var directory to keep save and replay files + pkgshare.install Dir["*.DAT"] + pkgshare.install "data" + pkgvar = var/"sdlpop" + pkgvar.install_symlink Dir["#{pkgshare}/*.DAT"] + pkgvar.install_symlink pkgshare/"data" + pkgvar.install "SDLPoP.ini" unless (pkgvar/"SDLPoP.ini").exist? + + # Data files should be in the working directory + libexec.install "prince" + (bin/"prince").write <<-EOS.undent + #!/bin/bash + cd "#{pkgvar}" && exec "#{libexec}/prince" $@ + EOS + end + + def caveats; <<-EOS.undent + Data including save and replay files are stored in the following directory: + #{var}/sdlpop + EOS + end +end From ebfbc6e3d6dbd2ec8a70d3423fe52ef4097044a0 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:00 +0000 Subject: [PATCH 141/175] simutrans: import from homebrew/games. --- Formula/simutrans.rb | 54 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Formula/simutrans.rb diff --git a/Formula/simutrans.rb b/Formula/simutrans.rb new file mode 100644 index 000000000000..012c3d5cef2e --- /dev/null +++ b/Formula/simutrans.rb @@ -0,0 +1,54 @@ +class Simutrans < Formula + desc "Transport simulator" + homepage "http://www.simutrans.com/" + url "https://downloads.sourceforge.net/project/simutrans/simutrans/120-1-3/simutrans-src-120-1-3.zip" + version "120.1.3" + sha256 "202816f67750cfb9decdfca3bacfebbc5bfc3474c8703239418edc093ce3774d" + head "https://github.com/aburch/simutrans.git" + + bottle do + cellar :any + sha256 "3ec72849c7370772e47897a09fe0dd704ab2c0cc2800b1599c18cac9c0a8a073" => :el_capitan + sha256 "00e6e8a41c72ae7c9e0cec181238936e56aac1dfd4d3fa232a39604eb59ec79d" => :yosemite + sha256 "db0ed05ffea3b6d5abdf73d2576cdea74827cd8af7e0f4de128afff30c1a8c27" => :mavericks + end + + option "with-makeobj", "Build makeobj tool" + + depends_on "libpng" if build.with? "makeobj" + depends_on "sdl2" + + resource "pak64" do + url "https://downloads.sourceforge.net/project/simutrans/pak64/120-1/simupak64-120-1-2.zip" + sha256 "125fa5c13a51bb0630ca651fddb8af06a823e8c4d4638bfa1bb2d89e92cc1d54" + end + + resource "text" do + url "http://simutrans-germany.com/translator/data/tab/language_pack-Base+texts.zip" + sha256 "4c711c343db25e4055bf62b54c3bd8d96da5d43148db1c7767a72e586336790b" + end + + def install + args = %w[ + BACKEND=sdl2 + COLOUR_DEPTH=16 + OSTYPE=mac + ] + system "make", *args + libexec.install "build/default/sim" => "simutrans" + libexec.install Dir["simutrans/*"] + bin.write_exec_script libexec/"simutrans" + + libexec.install resource("pak64") + (libexec/"text").install resource("text") + + if build.with? "makeobj" + system "make", "makeobj", *args + bin.install "build/default/makeobj/makeobj" + end + end + + test do + system "#{bin}/simutrans", "--help" + end +end From 8c5455ddfbd80ca3dc89dc3ba4dadbce7b02adcb Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:01 +0000 Subject: [PATCH 142/175] ski: import from homebrew/games. --- Formula/ski.rb | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Formula/ski.rb diff --git a/Formula/ski.rb b/Formula/ski.rb new file mode 100644 index 000000000000..65aaf64d2099 --- /dev/null +++ b/Formula/ski.rb @@ -0,0 +1,31 @@ +class Ski < Formula + desc "Evade the deadly Yeti on your jet-powered skis" + homepage "http://catb.org/~esr/ski/" + url "http://www.catb.org/~esr/ski/ski-6.12.tar.gz" + sha256 "2f34f64868deb0cc773528c68d9829119fac359c44a704695214d87773df5a33" + + bottle do + cellar :any_skip_relocation + sha256 "67711654d0b4888ee6bd623ff75f9311d41c1e0be3a52382ff55b62dd6605f60" => :sierra + sha256 "67711654d0b4888ee6bd623ff75f9311d41c1e0be3a52382ff55b62dd6605f60" => :el_capitan + sha256 "67711654d0b4888ee6bd623ff75f9311d41c1e0be3a52382ff55b62dd6605f60" => :yosemite + end + + head do + url "git://thyrsus.com/repositories/ski.git" + depends_on "xmlto" => :build + end + + def install + if build.head? + ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog" + system "make" + end + bin.install "ski" + man6.install "ski.6" + end + + test do + assert_match "Bye!", pipe_output("#{bin}/ski", "") + end +end From 5dbbe72130926a0a18b77635402ad49cd530047c Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:01 +0000 Subject: [PATCH 143/175] slashem: import from homebrew/games. --- Formula/slashem.rb | 52 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Formula/slashem.rb diff --git a/Formula/slashem.rb b/Formula/slashem.rb new file mode 100644 index 000000000000..b1cdc70e6c53 --- /dev/null +++ b/Formula/slashem.rb @@ -0,0 +1,52 @@ +require "etc" + +class Slashem < Formula + desc "Fork/variant of Nethack" + homepage "http://slashem.sourceforge.net" + url "https://downloads.sourceforge.net/project/slashem/slashem-source/0.0.8E0F1/se008e0f1.tar.gz" + version "0.0.8E0F1" + sha256 "e9bd3672c866acc5a0d75e245c190c689956319f192cb5d23ea924dd77e426c3" + + skip_clean "slashemdir/save" + + depends_on "pkg-config" => :build + + # Fixes compilation error in OS X: + # http://sourceforge.net/tracker/index.php?func=detail&aid=1644971&group_id=9746&atid=109746 + patch :DATA + + # Fixes user check on older versions of OS X: http://sourceforge.net/p/slashem/bugs/895/ + # Fixed upstream: http://slashem.cvs.sourceforge.net/viewvc/slashem/slashem/configure?r1=1.13&r2=1.14&view=patch + patch :p0 do + url "https://gist.githubusercontent.com/mistydemeo/76dd291c77a509216418/raw/65a41804b7d7e1ae6ab6030bde88f7d969c955c3/slashem-configure.patch" + sha256 "c91ac045f942d2ee1ac6af381f91327e03ee0650a547bbe913a3bf35fbd18665" + end + + def install + ENV.j1 + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--prefix=#{prefix}", + "--with-mandir=#{man}", + "--with-group=admin", + "--with-owner=#{Etc.getpwuid.name}", + "--enable-wizmode=#{Etc.getpwuid.name}" + system "make", "install" + + man6.install "doc/slashem.6", "doc/recover.6" + end +end + +__END__ +diff --git a/win/tty/termcap.c b/win/tty/termcap.c +index c3bdf26..8d00b11 100644 +--- a/win/tty/termcap.c ++++ b/win/tty/termcap.c +@@ -960,7 +960,7 @@ cl_eos() /* free after Robert Viduya */ + + #include + +-#if !defined(LINUX) && !defined(__FreeBSD__) ++#if !defined(LINUX) && !defined(__FreeBSD__) && !defined(__APPLE__) + extern char *tparm(); + #endif From ec4be6bf80fadec74c5794b460417a147f1662f2 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:01 +0000 Subject: [PATCH 144/175] snescom: import from homebrew/games. --- Formula/snescom.rb | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Formula/snescom.rb diff --git a/Formula/snescom.rb b/Formula/snescom.rb new file mode 100644 index 000000000000..b3a3064d4736 --- /dev/null +++ b/Formula/snescom.rb @@ -0,0 +1,39 @@ +class Snescom < Formula + desc "Compile 65816/65c816 machine code" + homepage "http://bisqwit.iki.fi/source/snescom.html" + url "http://bisqwit.iki.fi/src/arch/snescom-1.7.4.1.tar.bz2" + sha256 "e80187d969fd448fe4d3c636bdbe9c24fe452e1436566b29fbf3410bde739504" + + bottle do + cellar :any + sha256 "102cfb6d03ac2dede67119f47329a1db8436f001946ef36c285b7bb3463dafa3" => :yosemite + sha256 "2ef1408312be3110c88e5be2f9e7b736a8d498ade8335b5076da09585ebff971" => :mavericks + sha256 "23af80922e45a7937086900f06e213fb017b6afdde06b3ab96db2ce7b7f784ce" => :mountain_lion + end + + patch :p1 do + # Includes cstdlib for Clang. + # Reported upstream, should be fixed in the next release. + url "https://gist.githubusercontent.com/protomouse/31335db2fe5c11978faf/raw/f0671999314e87c0487035e4f80f92a67a0c4d06/snescom-disasm-missing-cstdlib.diff" + sha256 "3e214ae0a5751dfe72f81c0723b792601ddb4bca335dd2d5fd345572f051e29c" + end + + depends_on "boost" => :build + + def install + system "make" + + bin.install "disasm", "snescom", "sneslink" + doc.install "README.html" + end + + test do + (testpath/"test.a65").write <<-EOS.undent + GAME_MAIN: + rts + EOS + system "#{bin}/snescom", "-Wall", "-fips", "-o", "test.ips", "test.a65" + asm = `#{bin}/disasm test.ips` + assert_match(/.extern GAME_MAIN/, asm) + end +end From 24ec42f4f63df2da70d858c3a4fed8347f9917fd Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:01 +0000 Subject: [PATCH 145/175] solarus: import from homebrew/games. --- Formula/solarus.rb | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Formula/solarus.rb diff --git a/Formula/solarus.rb b/Formula/solarus.rb new file mode 100644 index 000000000000..5f71da665d1f --- /dev/null +++ b/Formula/solarus.rb @@ -0,0 +1,35 @@ +class Solarus < Formula + desc "Action-RPG game engine" + homepage "http://www.solarus-games.org/" + url "http://www.solarus-games.org/downloads/solarus/solarus-1.5.1-src.tar.gz" + sha256 "6cd3928a024f7c18a163a1679a92dfff3c37139c5c49fa5348704df5357e8da3" + head "https://github.com/christopho/solarus.git" + + bottle do + cellar :any + sha256 "21588d712ee8bfa0047baecac8fb80157fe207f204e1900be3e0d94c28886032" => :sierra + sha256 "93dec2fb97684a7df689af1a526ab40134d0d42cc58cb1ca0ce5a92ecfa411e6" => :el_capitan + sha256 "66a5b11989a4ca95b66b8f504179df20995e0f822225cc7a58adada6fb5f4385" => :yosemite + end + + depends_on "cmake" => :build + depends_on "sdl2" + depends_on "sdl2_image" + depends_on "sdl2_ttf" + depends_on "libvorbis" + depends_on "libogg" + depends_on "libmodplug" + depends_on "physfs" + depends_on "luajit" + + def install + mkdir "build" do + system "cmake", "..", "-DSOLARUS_GUI=OFF", *std_cmake_args + system "make", "install" + end + end + + test do + system "#{bin}/solarus-run", "-help" + end +end From eabe818a1c71b1f5af68bb3efe48893c4e4414f8 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:01 +0000 Subject: [PATCH 146/175] spaceinvaders-go: import from homebrew/games. --- Formula/spaceinvaders-go.rb | 52 +++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Formula/spaceinvaders-go.rb diff --git a/Formula/spaceinvaders-go.rb b/Formula/spaceinvaders-go.rb new file mode 100644 index 000000000000..cfff9ed469a6 --- /dev/null +++ b/Formula/spaceinvaders-go.rb @@ -0,0 +1,52 @@ +require "language/go" + +class SpaceinvadersGo < Formula + desc "Space Invaders in your terminal written in Go." + homepage "https://github.com/asib/spaceinvaders" + url "https://github.com/asib/spaceinvaders/archive/v1.2.tar.gz" + sha256 "e5298c4c13ff42f5cb3bf3913818c5155cf6918fd757124920045485d7ab5b9e" + + bottle do + cellar :any + sha256 "d87c8842da8a374186432fe48113900a1c8d2d0293972d67d8bdb727802d82ba" => :yosemite + sha256 "081fa658e03709c18853713bf81d21159c5a1648ae555a3dac65cab2e3df332f" => :mavericks + sha256 "ff2cbca94485e91ec6202ab637c6b7035f6b24c6112bef51d9b004e5627e61c4" => :mountain_lion + end + + depends_on "go" => :build + + go_resource "github.com/mattn/go-runewidth" do + url "https://github.com/mattn/go-runewidth.git", + :revision => "12e0ff74603c9a3209d8bf84f8ab349fe1ad9477" + end + + go_resource "github.com/nsf/termbox-go" do + url "https://github.com/nsf/termbox-go.git", + :revision => "347ab0bc907040257edaf8b580f729e12c93ab6b" + end + + go_resource "github.com/simulatedsimian/joystick" do + url "https://github.com/simulatedsimian/joystick.git", + :revision => "6aa8abe045a796cf36b720d0484809e3f70dc5bd" + end + + def install + # This builds with Go. + ENV["GOPATH"] = buildpath + sipath = buildpath/"src/github.com/asib/spaceinvaders" + sipath.install Dir["{*,.git}"] + Language::Go.stage_deps resources, buildpath/"src" + cd "src/github.com/asib/spaceinvaders/" do + system "go", "build" + bin.install "spaceinvaders" + end + end + + test do + IO.popen("#{bin}/spaceinvaders", "r+") do |pipe| + pipe.puts "q" + pipe.close_write + pipe.close + end + end +end From d828bfeeecc9dcd0bfcfb0fb13e79cc95a3c427d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:01 +0000 Subject: [PATCH 147/175] stella: import from homebrew/games. --- Formula/stella.rb | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Formula/stella.rb diff --git a/Formula/stella.rb b/Formula/stella.rb new file mode 100644 index 000000000000..9825c22aab5f --- /dev/null +++ b/Formula/stella.rb @@ -0,0 +1,37 @@ +class Stella < Formula + desc "Atari 2600 VCS emulator" + homepage "http://stella.sourceforge.net/" + url "https://github.com/stella-emu/stella/releases/download/release-4.7.3/stella-4.7.3-src.tar.xz" + sha256 "93a75d1b343b1e66b6dc526c0f9d8a0c3678d346033f7cdfe76dc93f14d956ad" + head "http://svn.code.sf.net/p/stella/code/trunk" + + bottle do + cellar :any + sha256 "6fa4ea3d8025cde32168a81d3a6ec454180ffe23094492dd14e91a2b621075ca" => :sierra + sha256 "39ced6c477334d1f584ebfadbc6a53d89b44e0608f4bbb6a82d4f4828833fb32" => :el_capitan + sha256 "90c90e59652e47e450311d74c37c57ba4ab79491a1de09786c06be5376ea7bf5" => :yosemite + end + + depends_on :xcode => :build + depends_on "sdl2" + depends_on "libpng" + + def install + cd "src/macosx" do + inreplace "stella.xcodeproj/project.pbxproj" do |s| + s.gsub! %r{(\w{24} \/\* SDL2\.framework)}, '//\1' + s.gsub! %r{(\w{24} \/\* png)}, '//\1' + s.gsub! /(HEADER_SEARCH_PATHS) = \(/, "\\1 = (#{Formula["sdl2"].include}/SDL2, #{Formula["libpng"].include}," + s.gsub! /(LIBRARY_SEARCH_PATHS) = \.;/, "\\1 = (#{Formula["sdl2"].lib}, #{Formula["libpng"].lib}, .);" + s.gsub! /(OTHER_LDFLAGS) = "((-\w+)*)"/, '\1 = "-lSDL2 -lpng \2"' + end + xcodebuild "SYMROOT=build" + prefix.install "build/Default/Stella.app" + bin.write_exec_script "#{prefix}/Stella.app/Contents/MacOS/Stella" + end + end + + test do + assert_match /Stella version #{version}/, shell_output("#{bin}/Stella -help").strip + end +end From b8f2e7cf56ab81d2147708093ce8eaab50760d22 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:01 +0000 Subject: [PATCH 148/175] stockfish: import from homebrew/games. --- Formula/stockfish.rb | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Formula/stockfish.rb diff --git a/Formula/stockfish.rb b/Formula/stockfish.rb new file mode 100644 index 000000000000..b879fd854314 --- /dev/null +++ b/Formula/stockfish.rb @@ -0,0 +1,30 @@ +class Stockfish < Formula + desc "Strong open-source chess engine" + homepage "http://stockfishchess.org/" + url "https://stockfish.s3.amazonaws.com/stockfish-8-src.zip" + sha256 "7bad36f21f649ab24f6d7786bbb1b74b3e4037f165f32e3d42d1ae19c8874ce9" + head "https://github.com/official-stockfish/Stockfish.git" + + bottle do + cellar :any_skip_relocation + sha256 "6191999c37070259207340cafcee3876f8e66dc44b903f484d930072ddc7f5bc" => :sierra + sha256 "6191999c37070259207340cafcee3876f8e66dc44b903f484d930072ddc7f5bc" => :el_capitan + sha256 "5061823dfe7f06672ed5a0b5608e20ea141a8c6f1bf79f5ac5bedcc71ca56ba8" => :yosemite + end + + def install + if Hardware::CPU.features.include? :popcnt + arch = "x86-64-modern" + else + arch = Hardware::CPU.ppc? ? "ppc" : "x86" + arch += "-" + (MacOS.prefer_64_bit? ? "64" : "32") + end + + system "make", "-C", "src", "build", "ARCH=#{arch}" + bin.install "src/stockfish" + end + + test do + system "#{bin}/stockfish", "go", "depth", "20" + end +end From 12ac62e60afcf1af8e0175926a59dfe2b8a290b2 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:01 +0000 Subject: [PATCH 149/175] stone-soup: import from homebrew/games. --- Formula/stone-soup.rb | 78 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Formula/stone-soup.rb diff --git a/Formula/stone-soup.rb b/Formula/stone-soup.rb new file mode 100644 index 000000000000..0f2b1de4f68c --- /dev/null +++ b/Formula/stone-soup.rb @@ -0,0 +1,78 @@ +class StoneSoup < Formula + desc "Dungeon Crawl Stone Soup: a roguelike game" + homepage "https://crawl.develz.org/" + url "https://crawl.develz.org/release/stone_soup-0.19.1.tar.xz" + sha256 "89374dc3e4282c7c2bae911ef780043845cc08cf529f4d54b7d81c0ce8355aa0" + + bottle do + sha256 "cb56020ea9672a6d2aead43c16ade6372f72e23fe6cdeb3b4d2a60b7268f73a2" => :sierra + sha256 "07b6c62ae5b06c80aa2bb3fb7fdad161d84a498c0b0bfcf2fd81f1e7fab9565e" => :el_capitan + sha256 "b0908fc5925eac31cbc296b680cf62172ae2bb40b86d811b78880e2c9de91e37" => :yosemite + end + + option "with-tiles", "Enable graphic tiles and sound" + + depends_on "pkg-config" => :build + depends_on "lua@5.1" + depends_on "pcre" + + if build.with? "tiles" + depends_on "sdl2" + depends_on "sdl2_mixer" + depends_on "sdl2_image" + depends_on "libpng" + depends_on "freetype" + end + + needs :cxx11 + + def install + ENV.cxx11 + + cd "source" do + args = %W[ + prefix=#{prefix} + DATADIR=data + NO_PKGCONFIG= + BUILD_ZLIB= + BUILD_LUA= + BUILD_SQLITE=yes + BUILD_FREETYPE= + BUILD_LIBPNG= + BUILD_SDL2= + BUILD_SDL2MIXER= + BUILD_SDL2IMAGE= + BUILD_PCRE= + USE_PCRE=y + ] + if build.with? "tiles" + inreplace "Makefile", "contrib/install/$(ARCH)/lib/libSDL2main.a", "" + args << "TILES=y" + args << "SOUND=y" + end + + # FSF GCC doesn't support the -rdynamic flag + args << "NO_RDYNAMIC=y" unless ENV.compiler == :clang + + # The makefile has trouble locating the developer tools for + # CLT-only systems, so we set these manually. Reported upstream: + # https://crawl.develz.org/mantis/view.php?id=7625 + # + # On 10.9, stone-soup will try to use xcrun and fail due to an empty + # DEVELOPER_DIR + devdir = MacOS::Xcode.prefix.to_s + devdir += "/" if MacOS.version >= :mavericks && !MacOS::Xcode.installed? + + system "make", "install", + "DEVELOPER_DIR=#{devdir}", "SDKROOT=#{MacOS.sdk_path}", + # stone-soup tries to use `uname -m` to determine build -arch, + # which is frequently wrong on OS X + "SDK_VER=#{MacOS.version}", "MARCH=#{MacOS.preferred_arch}", + *args + end + end + + test do + assert shell_output("#{bin}/crawl --version").start_with? "Crawl version #{version}" + end +end From b8238fa8f20efd8e38ce3df055aa4e912009c48e Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:01 +0000 Subject: [PATCH 150/175] stormlib: import from homebrew/games. --- Formula/stormlib.rb | 54 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Formula/stormlib.rb diff --git a/Formula/stormlib.rb b/Formula/stormlib.rb new file mode 100644 index 000000000000..3090e00c5dc0 --- /dev/null +++ b/Formula/stormlib.rb @@ -0,0 +1,54 @@ +class Stormlib < Formula + desc "Library for handling Blizzard MPQ archives" + homepage "http://www.zezula.net/en/mpq/stormlib.html" + url "https://github.com/ladislav-zezula/StormLib/archive/v9.21.tar.gz" + sha256 "e23e9f106c6367f161fc63e015e7da6156b261b14c7e4a5aa542df02009294f9" + head "https://github.com/ladislav-zezula/StormLib.git" + + bottle do + cellar :any + sha256 "415a6b7424409864d906cf7e2694bff9f3aa6cf03e91e93b75a330df37d602c9" => :sierra + sha256 "9463671aa577c6054a9598d157eeeff15d1f3c4ef01cf74779ab8e74a0c0a4b8" => :el_capitan + sha256 "3f35322bf7290615a04f616d274f1228cdcb3d0d825ff0e454ccd78e01870735" => :yosemite + end + + depends_on "cmake" => :build + + # prevents cmake from trying to write to /Library/Frameworks/ + patch :DATA + + def install + system "cmake", ".", *std_cmake_args + system "make", "install" + system "cmake", ".", "-DBUILD_SHARED_LIBS=ON", *std_cmake_args + system "make", "install" + end + + test do + (testpath/"test.c").write <<-EOS.undent + #include + #include + + int main(int argc, char *argv[]) { + printf("%s", STORMLIB_VERSION_STRING); + return 0; + } + EOS + system ENV.cc, "-o", "test", "test.c" + assert_equal version.to_s, shell_output("./test") + end +end + +__END__ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 76c6aa9..4fd0a46 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -297,7 +297,6 @@ target_include_directories(${LIBRARY_NAME} PUBLIC src/) + set_target_properties(${LIBRARY_NAME} PROPERTIES PUBLIC_HEADER "src/StormLib.h;src/StormPort.h") + if(BUILD_SHARED_LIBS) + if(APPLE) +- set_target_properties(${LIBRARY_NAME} PROPERTIES FRAMEWORK true) + set_target_properties(${LIBRARY_NAME} PROPERTIES LINK_FLAGS "-framework Carbon") + endif() + if(UNIX) From 0e6cd2d56ca2fde2d69263dad432d5d9179ba02c Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:01 +0000 Subject: [PATCH 151/175] supermodel: import from homebrew/games. --- Formula/supermodel.rb | 49 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Formula/supermodel.rb diff --git a/Formula/supermodel.rb b/Formula/supermodel.rb new file mode 100644 index 000000000000..58023920dbe2 --- /dev/null +++ b/Formula/supermodel.rb @@ -0,0 +1,49 @@ +class Supermodel < Formula + desc "Sega Model 3 arcade emulator" + homepage "http://www.supermodel3.com/" + url "http://www.supermodel3.com/Files/Supermodel_0.2a_Src.zip" + sha256 "ecaf3e7fc466593e02cbf824b722587d295a7189654acb8206ce433dcff5497b" + head "https://svn.code.sf.net/p/model3emu/code/trunk" + + bottle do + cellar :any + sha256 "22b954de0fec618766e906c66ea6ec1db6c0e7d85a169f0aae7c7992f4d30c45" => :yosemite + sha256 "f045680f22f303cb961766043167f14eb18d35c0e457bafa3fef0c7955676567" => :mavericks + sha256 "ead509808d61964e21798b91c88b106035c816d59ff9b8e03685d0acaab5f52b" => :mountain_lion + end + + depends_on "sdl" + + def install + inreplace "Makefiles/Makefile.SDL.OSX.GCC" do |s| + # Set up SDL library correctly + s.gsub! "-framework SDL", "`sdl-config --libs`" + s.gsub! /(\$\(COMPILER_FLAGS\))/, "\\1 -I#{Formula["sdl"].opt_prefix}/include" + # Fix missing label issue for auto-generated code + s.gsub! %r{(\$\(OBJ_DIR\)/m68k\w+)\.o: \1.c (.*)\n(\s*\$\(CC\)) \$<}, "\\1.o: \\2\n\\3 \\1.c" + end + + # Use /usr/local/var/supermodel for saving runtime files + inreplace "Src/OSD/SDL/Main.cpp" do |s| + s.gsub! %r{(Config|Saves|NVRAM)/}, "#{var}/supermodel/\\1/" + s.gsub! /(\w+\.log)/, "#{var}/supermodel/Logs/\\1" + end + + system "make", "-f", "Makefiles/Makefile.SDL.OSX.GCC" + bin.install "bin/Supermodel" => "supermodel" + (var/"supermodel/Config").install "Config/Supermodel.ini" + (var/"supermodel/Saves").mkpath + (var/"supermodel/NVRAM").mkpath + (var/"supermodel/Logs").mkpath + end + + def caveats; <<-EOS.undent + Config, Saves, and NVRAM are located in the following directory: + #{var}/supermodel/ + EOS + end + + test do + system "#{bin}/supermodel", "-print-games" + end +end From 9fe125c3f0185b86585e448825112d648cb9e395 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:01 +0000 Subject: [PATCH 152/175] supertux: import from homebrew/games. --- Formula/supertux.rb | 57 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Formula/supertux.rb diff --git a/Formula/supertux.rb b/Formula/supertux.rb new file mode 100644 index 000000000000..e33a67907d89 --- /dev/null +++ b/Formula/supertux.rb @@ -0,0 +1,57 @@ +class Supertux < Formula + desc "Classic 2D jump'n run sidescroller game" + homepage "https://supertuxproject.org/" + url "https://github.com/SuperTux/supertux/releases/download/v0.5.1/SuperTux-v0.5.1-Source.tar.gz" + sha256 "c9dc3b42991ce5c5d0d0cb94e44c4ec2373ad09029940f0e92331e7e9ada0ac5" + revision 1 + + head "https://github.com/SuperTux/supertux.git" + + bottle do + cellar :any + sha256 "2428b9c6abbd55085a38e832cec4bb3e83e2f171c75a8c8d68a8a249772f3f6d" => :sierra + sha256 "a13338b55b4e56f0baf5f8ce576dd913037f8a91b4b08f36ef80e5eda7e1175b" => :el_capitan + sha256 "89bccee9096c2521c15f944ca635dc82f340221953d035bee9412cdf6486a3ae" => :yosemite + end + + depends_on "cmake" => :build + depends_on "pkg-config" => :build + depends_on "boost" => :build + depends_on "sdl2" + depends_on "sdl2_image" + depends_on "sdl2_mixer" => "with-libvorbis" + depends_on "libogg" + depends_on "libvorbis" + depends_on "glew" + + # Fix symlink passing to physfs + # https://github.com/SuperTux/supertux/issues/614 + patch do + url "https://github.com/SuperTux/supertux/commit/47a353e2981161e2da12492822fe88d797af2fec.diff" + sha256 "bb88211eacf76698521b5b85972e2facd93bceab92fa37529ec3ff5482d82956" + end + + needs :cxx11 + + def install + ENV.cxx11 + + args = std_cmake_args + args << "-DINSTALL_SUBDIR_BIN=bin" + args << "-DINSTALL_SUBDIR_SHARE=share/supertux" + # Without the following option, Cmake intend to use the library of MONO framework. + args << "-DPNG_PNG_INCLUDE_DIR=#{Formula["libpng"].opt_include}" + system "cmake", ".", *args + system "make", "install" + + # Remove unnecessary files + (share/"appdata").rmtree + (share/"applications").rmtree + (share/"pixmaps").rmtree + (prefix/"MacOS").rmtree + end + + test do + assert_equal "supertux2 v#{version}", shell_output("#{bin}/supertux2 --version").chomp + end +end From 59e4272103ba748c04ecce386f7d1ce26b1a4bcf Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:01 +0000 Subject: [PATCH 153/175] sz81: import from homebrew/games. --- Formula/sz81.rb | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Formula/sz81.rb diff --git a/Formula/sz81.rb b/Formula/sz81.rb new file mode 100644 index 000000000000..72e267830d51 --- /dev/null +++ b/Formula/sz81.rb @@ -0,0 +1,28 @@ +class Sz81 < Formula + desc "ZX80/81 emulator" + homepage "http://sz81.sourceforge.net/" + url "https://downloads.sourceforge.net/project/sz81/sz81/2.1.7/sz81-2.1.7-source.tar.gz" + sha256 "4ad530435e37c2cf7261155ec43f1fc9922e00d481cc901b4273f970754144e1" + head "svn://svn.code.sf.net/p/sz81/code/sz81" + + bottle do + sha256 "3953792f4c21d30885cd05560737d387df832072a4ae478f7f6eac1f5f1bb4e0" => :el_capitan + sha256 "0c3feb15a6e52e5f6c54cadcb2775c6235b9b222d4415b276a003913b2e9e0c2" => :yosemite + sha256 "2167f29e1aa3c866662790b359b89515506a45bf7514d5df77e490cf68d4d58b" => :mavericks + end + + depends_on "sdl" + + def install + args = %W[ + PREFIX=#{prefix} + BINDIR=#{bin} + ] + system "make", *args + system "make", "install", *args + end + + test do + assert_match /sz81 #{version} -/, shell_output("#{bin}/sz81 -h", 1) + end +end From 20e33d3b582a835082388c0d44fc7163c7092ff5 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:02 +0000 Subject: [PATCH 154/175] taisei: import from homebrew/games. --- Formula/taisei.rb | 52 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Formula/taisei.rb diff --git a/Formula/taisei.rb b/Formula/taisei.rb new file mode 100644 index 000000000000..73429da78120 --- /dev/null +++ b/Formula/taisei.rb @@ -0,0 +1,52 @@ +class Taisei < Formula + desc "Clone of Touhou Project shoot-em-up games" + homepage "http://taisei-project.org/" + url "https://github.com/laochailan/taisei/archive/v1.0a.tar.gz" + version "1.0a" + sha256 "1561c84c9fd8b9c7a91b864bdfc07fb811bb6da5c54cf32a2b6bd63de5f8f3ff" + + bottle do + sha256 "65645d9889942f99b5bbc3f13f5786a1d97b4ff4b0439702c576016a8516768e" => :el_capitan + sha256 "bc5d235333d79b94471a6a9983bfb44513f50ee460bceb3d0d3a202bbfaa39f3" => :yosemite + sha256 "d8214d4d25532caa5c69f09f754a9faccbe55f7408fa1e9e9c3cd8c75f23b48b" => :mavericks + end + + depends_on "cmake" => :build + depends_on "freealut" + depends_on "freetype" + depends_on "libpng" + depends_on "openal-soft" # OpenAL.framework gave ALUT state error + depends_on "sdl" + depends_on "sdl_ttf" + + # Fix newline at end of file to match master + patch do + url "https://github.com/laochailan/taisei/commit/779ff58684b1f229aedfcc03bfc6ac7aac17bf6a.diff" + sha256 "eec218752bb025024112442ed9a254e352f71be966de98c3d9d4f1ed482059a0" + end + + # Fix missing inline symbols + patch do + url "https://github.com/laochailan/taisei/commit/0f78b1a7eb05aa741541ca56559d7a3f381b57e2.diff" + sha256 "a68859106a5426a4675b2072eb659fd4fb30c46a7c94f3af20a1a2e434685e1b" + end + + # Support macOS build + patch do + url "https://github.com/laochailan/taisei/pull/38.patch" + sha256 "f40a7d4a917d6843803d2ca7e9fc7f42c7fcb53fc8683b60ec0223fe8110843e" + end + + def install + mkdir "build" do + system "cmake", "..", *std_cmake_args + system "make", "install" + end + (share/"applications").rmtree + (share/"icons").rmtree + end + + def caveats + "Sound may not work." + end +end From 1a60d85d108e306fdbfde4b34c402ff4232c5cc4 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:02 +0000 Subject: [PATCH 155/175] tty-solitaire: import from homebrew/games. --- Formula/tty-solitaire.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Formula/tty-solitaire.rb diff --git a/Formula/tty-solitaire.rb b/Formula/tty-solitaire.rb new file mode 100644 index 000000000000..b05c33ce8041 --- /dev/null +++ b/Formula/tty-solitaire.rb @@ -0,0 +1,22 @@ +class TtySolitaire < Formula + desc "Ncurses-based klondike solitaire game" + homepage "https://github.com/mpereira/tty-solitaire" + url "https://github.com/mpereira/tty-solitaire/archive/v1.0.0.tar.gz" + sha256 "d3512beb8844ffb295cbea03bb3515fec12851bce38692e05cd55494beb2cc1f" + + bottle do + cellar :any_skip_relocation + sha256 "2e5603d7db19e7888d296b9324080d89855b6e96f5d47a6d2378861d43c7db25" => :sierra + sha256 "3778efc923649dbfaab098cbc01c5b0c87477f01506e59cac77b684e60da05cd" => :el_capitan + sha256 "2570d62a429bcb4e987c91f1c320a2b138964d24ac37ee50c0602d77158f23bf" => :yosemite + end + + def install + system "make" + system "make", "install", "PREFIX=#{prefix}" + end + + test do + system "#{bin}/ttysolitaire", "-h" + end +end From 66400706e5da118a5e3b17fbafc2533080de3a1b Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:02 +0000 Subject: [PATCH 156/175] ucon64: import from homebrew/games. --- Formula/ucon64.rb | 52 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Formula/ucon64.rb diff --git a/Formula/ucon64.rb b/Formula/ucon64.rb new file mode 100644 index 000000000000..daa4f113d7ef --- /dev/null +++ b/Formula/ucon64.rb @@ -0,0 +1,52 @@ +class Ucon64 < Formula + desc "ROM backup tool and emulator's Swiss Army knife program" + homepage "http://ucon64.sourceforge.net/" + url "https://downloads.sourceforge.net/ucon64/ucon64-2.0.2-src.tar.gz" + sha256 "2df3972a68d1d7237dfedb99803048a370b466a015a5e4c1343f7e108601d4c9" + head ":pserver:anonymous:@ucon64.cvs.sourceforge.net:/cvsroot/ucon64", :using => :cvs + + bottle do + sha256 "e53964f03c96339c55777287baefc70a7983fbcbc0df632b9271b6195759ac00" => :el_capitan + sha256 "2e3374d6985209c430b81b0f50b16b97cb91696df041fa4a7700793de5959faa" => :yosemite + sha256 "cd3f63bdce54eeca0723c9150d8916d980dd5ca98d6ba2e956bc7553922ca864" => :mavericks + end + + resource "super_bat_puncher_demo" do + url "http://morphcat.de/superbatpuncher/Super%20Bat%20Puncher%20Demo.zip" + sha256 "d74cb3ba11a4ef5d0f8d224325958ca1203b0d8bb4a7a79867e412d987f0b846" + end + + def install + # ucon64's normal install process installs the discmage library in + # the user's home folder. We want to store it inside the prefix, so + # we have to change the default value of ~/.ucon64rc to point to it. + # .ucon64rc is generated by the binary, so we adjust the default that + # is set when no .ucon64rc exists. + inreplace "src/ucon64_misc.c", 'PROPERTY_MODE_DIR ("ucon64") "discmage.dylib"', + "\"#{opt_prefix}/libexec/libdiscmage.dylib\"" + + cd "src" do + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--disable-silent-rules", + "--prefix=#{prefix}" + system "make" + bin.install "ucon64" + libexec.install "libdiscmage/discmage.so" => "libdiscmage.dylib" + end + end + + def caveats; <<-EOS.undent + You can copy/move your DAT file collection to $HOME/.ucon64/dat + Be sure to check $HOME/.ucon64rc for configuration after running uCON64 + for the first time. + EOS + end + + test do + resource("super_bat_puncher_demo").stage testpath + + assert_match "00000000 4e 45 53 1a 08 00 11 00 00 00 00 00 00 00 00 00", + shell_output("#{bin}/ucon64 \"#{testpath}/Super Bat Puncher Demo.nes\"") + end +end From ec8bb3974a6de6ccde288f7d957a74618bb673ec Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:02 +0000 Subject: [PATCH 157/175] ufoai: import from homebrew/games. --- Formula/ufoai.rb | 63 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Formula/ufoai.rb diff --git a/Formula/ufoai.rb b/Formula/ufoai.rb new file mode 100644 index 000000000000..1032c37a077a --- /dev/null +++ b/Formula/ufoai.rb @@ -0,0 +1,63 @@ +class Ufoai < Formula + desc "UFO: Alien Invasion" + homepage "http://ufoai.org/" + url "git://git.code.sf.net/p/ufoai/code", :branch => "ufoai_2.5", :revision => "3e28f7cbf9f5e1cfd0fa7fdc852f833e498757c1" + version "2.5.0+20150216" + + bottle do + sha256 "b136b3592e549f5d8580667fda0619004141abae21efca53871d2da78f34103e" => :yosemite + sha256 "47c913420a0f29c6766a4a8049c2ac721e510fdbdc0c7e04f47b098c315f9236" => :mavericks + sha256 "ab723bb0f061635c079f82633b2c2dc707287bb993b200bf89312224eadb68a3" => :mountain_lion + end + + depends_on "pkg-config" => :build + depends_on "sdl2" + depends_on "sdl2_ttf" + depends_on "sdl2_mixer" => "with-libvorbis" + depends_on "jpeg" + depends_on "libpng" + depends_on "xvid" + depends_on "theora" + depends_on "gettext" + + resource "data" do + url "https://downloads.sourceforge.net/project/ufoai/UFO_AI%202.x/2.5/ufoai-2.5-data.tar" + sha256 "5e706a424aff6a2ea30a4c798129d6304e897387eadf808528129b512b7dcdb0" + end + + def install + ENV.deparallelize + ENV["TARGET_ARCH"] = MacOS.preferred_arch.to_s + + (buildpath/"base").install resource("data") + + inreplace "build/install_mac.mk" do |s| + s.gsub! /.*\$\(BINARIES_BASE\).*/, "" + s.gsub! /\s+copylibs-ufoai/, "" + s.gsub! /.*hdiutil.*/, "" + end + inreplace "build/modes/release.mk", /-falign-(loops|jumps)=\d+/, "" unless ENV.compiler == :gcc + + args = %W[ + --disable-dependency-tracking + --prefix=#{prefix} + --enable-hardlinkedgame + --enable-release + ] + system "./configure", *args + system "make" + system "make", "lang" + system "make", "create-dmg-ufoai" + prefix.install Dir["contrib/installer/mac/ufoai-**/UFOAI.app"] + bin.write_exec_script "#{prefix}/UFOAI.app/Contents/MacOS/ufo" + end + + def caveats; <<-EOS.undent + Turn off GLSL shaders from video settings if you have graphics problem. + EOS + end + + test do + system "#{bin}/ufo", "+set", "vid_fullscreen", "0", "+quit" + end +end From 4a51c15b3faf9d0263d6b5443ccad9d9f11e8fa2 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:02 +0000 Subject: [PATCH 158/175] uggconv: import from homebrew/games. --- Formula/uggconv.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Formula/uggconv.rb diff --git a/Formula/uggconv.rb b/Formula/uggconv.rb new file mode 100644 index 000000000000..4c59d3615add --- /dev/null +++ b/Formula/uggconv.rb @@ -0,0 +1,17 @@ +class Uggconv < Formula + desc "Universal Game Genie code convertor" + homepage "http://wyrmcorp.com/software/uggconv/index.shtml" + url "http://wyrmcorp.com/software/uggconv/uggconv-1.0.tar.gz" + sha256 "9a215429bc692b38d88d11f38ec40f43713576193558cd8ca6c239541b1dd7b8" + + def install + system "make" + bin.install "uggconv" + man1.install "uggconv.1" + end + + test do + assert_equal "7E00CE:03 = D7DA-FE86\n", + shell_output("#{bin}/uggconv -s 7E00CE:03") + end +end From d5328c4f91498385a7a22ff4eb3020ba7d48741e Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:02 +0000 Subject: [PATCH 159/175] unnethack: import from homebrew/games. --- Formula/unnethack.rb | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Formula/unnethack.rb diff --git a/Formula/unnethack.rb b/Formula/unnethack.rb new file mode 100644 index 000000000000..187dff96cd3b --- /dev/null +++ b/Formula/unnethack.rb @@ -0,0 +1,44 @@ +class Unnethack < Formula + desc "Fork of Nethack" + homepage "http://sourceforge.net/apps/trac/unnethack/" + url "https://downloads.sourceforge.net/project/unnethack/unnethack/5.1.0/unnethack-5.1.0-20131208.tar.gz" + sha256 "d92886a02fd8f5a427d1acf628e12ee03852fdebd3af0e7d0d1279dc41c75762" + + head "https://github.com/UnNetHack/UnNetHack.git" + + # directory for temporary level data of running games + skip_clean "var/unnethack/level" + + option "with-lisp-graphics", "Enable lisp graphics (play in Emacs)" + option "with-curses-graphics", "Enable curses graphics (play with fanciness)" + + def install + # crashes when using clang and gsl with optimizations + # https://github.com/mxcl/homebrew/pull/8035#issuecomment-3923558 + ENV.no_optimization + + # directory for version specific files that shouldn't be deleted when + # upgrading/uninstalling + version_specific_directory = "#{var}/unnethack/#{version}" + + args = [ + "--prefix=#{prefix}", + "--with-owner=#{`id -un`}", + "--with-group=admin", + # common xlogfile for all versions + "--enable-xlogfile=#{var}/unnethack/xlogfile", + "--with-bonesdir=#{version_specific_directory}/bones", + "--with-savesdir=#{version_specific_directory}/saves", + "--enable-wizmode=#{`id -un`}", + ] + + args << "--enable-lisp-graphics" if build.with? "lisp-graphics" + args << "--enable-curses-graphics" if build.with? "curses-graphics" + + system "./configure", *args + ENV.j1 # Race condition in make + + # disable the `chgrp` calls + system "make", "install", "CHGRP=#" + end +end From 50aec77652e63ecbc2a3876240c8f0f4c7bc55b8 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:02 +0000 Subject: [PATCH 160/175] vecx: import from homebrew/games. --- Formula/vecx.rb | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Formula/vecx.rb diff --git a/Formula/vecx.rb b/Formula/vecx.rb new file mode 100644 index 000000000000..f3b1faf2d579 --- /dev/null +++ b/Formula/vecx.rb @@ -0,0 +1,31 @@ +class Vecx < Formula + desc "Vectrex emulator" + homepage "https://github.com/jhawthorn/vecx" + url "https://github.com/jhawthorn/vecx/archive/v1.1.tar.gz" + sha256 "206ab30db547b9c711438455917b5f1ee96ff87bd025ed8a4bd660f109c8b3fb" + head "https://github.com/jhawthorn/vecx.git" + + bottle do + cellar :any + sha256 "fc2bccdd37c22fa9966690e5c61b967077de0d26fcc54ae965cc73119d2344e2" => :sierra + sha256 "ea08d6c2a84382366688673dee326dee353a5e5e506d2f34ca673ce6964d3762" => :el_capitan + sha256 "1d8d7c78396869a949aec225adbab7612812d4690cf3c96264609ba2a086a774" => :yosemite + end + + depends_on "sdl" + depends_on "sdl_gfx" + depends_on "sdl_image" + + def install + # Fix missing symobls for inline functions + # https://github.com/jhawthorn/vecx/pull/3 + inreplace ["e6809.c", "vecx.c"], /__inline/, 'static \1' + + system "make" + bin.install "vecx" + end + + test do + assert_match "rom.dat: No such file or directory", shell_output("#{bin}/vecx 2>&1", 1) + end +end From 680f603d36a4c2fab7c35947af284b13ce089689 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:02 +0000 Subject: [PATCH 161/175] vitetris: import from homebrew/games. --- Formula/vitetris.rb | 47 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Formula/vitetris.rb diff --git a/Formula/vitetris.rb b/Formula/vitetris.rb new file mode 100644 index 000000000000..01e9a8abc99a --- /dev/null +++ b/Formula/vitetris.rb @@ -0,0 +1,47 @@ +class Vitetris < Formula + desc "Terminal-based Tetris clone" + homepage "http://www.victornils.net/tetris/" + url "http://www.victornils.net/tetris/vitetris-0.57.tar.gz" + sha256 "0c9fa6c8b16e2f8968f65e16a87f1bcd39b827d510c6efb0771f0400ab91cdc2" + + bottle do + cellar :any_skip_relocation + sha256 "4d894a98104d29fc3bfcfb59e2796aff6edce184440f8211e3db00d7fe6a70fc" => :el_capitan + sha256 "5a924675df65dfa62e04be4ab2d9ab4edc44b2095583a87b26a354a83ea62838" => :yosemite + sha256 "8a15d0e55e5fe09cf569c977882bb33c725de38cb5019b70c0a8dcd66c1fda21" => :mavericks + end + + # remove a 'strip' option not supported on OS X and root options for + # 'install' + patch :DATA + + def install + system "./configure", "--prefix=#{prefix}", "--without-xlib" + system "make", "install" + end + + test do + system "#{bin}/tetris", "-hiscore" + end +end +__END__ +--- a/Makefile 2013-10-07 11:57:18.000000000 +0200 ++++ b/Makefile 2013-10-07 11:57:29.000000000 +0200 +@@ -5,7 +5,7 @@ + # Uncomment to change the default. (Only used in Unix-like systems.) + #HISCORE_FILENAME = /var/games/vitetris-hiscores + +-INSTALL = install -oroot -groot ++INSTALL = install + + default: build + @echo Done. +@@ -18,7 +18,7 @@ + cd src; $(MAKE) tetris + mv -f src/tetris$(EXE) $(PROGNAME) + @echo stripping symbols to reduce program size: +- -strip --strip-all $(PROGNAME) ++ -strip $(PROGNAME) + + gameserver: src/netw/gameserver.c + cd src/netw; $(MAKE) gameserver From 9130313cfcf943b5faa7158a76f1e1e89326717e Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:02 +0000 Subject: [PATCH 162/175] wesnoth: import from homebrew/games. --- Formula/wesnoth.rb | 55 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Formula/wesnoth.rb diff --git a/Formula/wesnoth.rb b/Formula/wesnoth.rb new file mode 100644 index 000000000000..cfdd0c4022d8 --- /dev/null +++ b/Formula/wesnoth.rb @@ -0,0 +1,55 @@ +class Wesnoth < Formula + desc "Single- and multi-player turn-based strategy game" + homepage "http://www.wesnoth.org/" + url "https://downloads.sourceforge.net/project/wesnoth/wesnoth-1.12/wesnoth-1.12.4/wesnoth-1.12.4.tar.bz2" + sha256 "bf525060da4201f1e62f861ed021f13175766e074a8a490b995052453df51ea7" + + head "https://github.com/wesnoth/wesnoth.git" + + bottle do + sha256 "63250b3eefb3ff93eba14addee9acfb6980ba138b9033b824a14f5e2a3a5a4b0" => :yosemite + sha256 "93e971f838ba9c2bf97974dc3ef7d6823138bdda560671d67cf74794d65c4f30" => :mavericks + sha256 "dcbc0e81cd0a5c92392b51b1e68f933045277bf75eeddebaa3b99797c45ce6be" => :mountain_lion + end + + devel do + url "https://downloads.sourceforge.net/project/wesnoth/wesnoth/wesnoth-1.13.1/wesnoth-1.13.1.tar.bz2" + sha256 "4423645f58eae3a22cdb94736a20181fbb3c2de3de36e20a70084b15b20337f2" + end + + option "with-ccache", "Speeds recompilation, convenient for beta testers" + option "with-debug", "Build with debugging symbols" + + depends_on "scons" => :build + depends_on "gettext" => :build + depends_on "ccache" => :optional + depends_on "fribidi" + depends_on "boost" + depends_on "libpng" + depends_on "fontconfig" + depends_on "cairo" + depends_on "pango" + + depends_on "sdl" + depends_on "sdl_image" # Must have png support + depends_on "sdl_mixer" => "with-libvorbis" # The music is in .ogg format + depends_on "sdl_net" + depends_on "sdl_ttf" + + def install + args = %W[prefix=#{prefix} docdir=#{doc} mandir=#{man} fifodir=#{var}/run/wesnothd gettextdir=#{Formula["gettext"].opt_prefix}] + args << "OS_ENV=true" + args << "install" + args << "wesnoth" + args << "wesnothd" + args << "-j#{ENV.make_jobs}" + args << "ccache=true" if build.with? "ccache" + args << "build=debug" if build.with? "debug" + + scons *args + end + + test do + system bin/"wesnoth", "-p", share/"wesnoth/data/campaigns/tutorial/", testpath + end +end From 965fb61e41152706a33492753b09e1aab4585add Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:02 +0000 Subject: [PATCH 163/175] widelands: import from homebrew/games. --- Formula/widelands.rb | 49 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Formula/widelands.rb diff --git a/Formula/widelands.rb b/Formula/widelands.rb new file mode 100644 index 000000000000..b88dfceb541a --- /dev/null +++ b/Formula/widelands.rb @@ -0,0 +1,49 @@ +class Widelands < Formula + desc "Free real-time strategy game like Settlers II." + homepage "https://wl.widelands.org/" + url "https://launchpad.net/widelands/build19/build19/+download/widelands-build19-src.tar.bz2" + sha256 "e511f9d26828a2b71b64cdfc6674e6e847543b2da73961ab882acca36c7c01a6" + + bottle do + sha256 "95963abfc0247618837dc467a638ccfd69b2b47785a0608f2ae60fc2662ec258" => :sierra + sha256 "cb42054b619f17310fdcc20f8b8d23dd449771b813223e7e998c7973edea39b4" => :el_capitan + sha256 "2f7fc6715fbc40b5acd6fb55630f44f76d4838487e6a5f2ceaa230de05aece26" => :yosemite + end + + depends_on "cmake" => :build + depends_on "boost" + depends_on "libpng" + depends_on "minizip" + depends_on "gettext" + depends_on "sdl2_image" + depends_on "sdl2_mixer" + depends_on "sdl2_net" + depends_on "sdl2_ttf" + depends_on "doxygen" + depends_on "glew" + depends_on "lua" + depends_on "icu4c" + + needs :cxx11 + + def install + ENV.cxx11 + mkdir "build" do + system "cmake", "..", + # Without the following option, Cmake intend to use the library of MONO framework. + "-DPNG_PNG_INCLUDE_DIR:PATH=#{Formula["libpng"].opt_include}", + "-DWL_INSTALL_DATADIR=#{pkgshare}/data", + *std_cmake_args + system "make", "install" + + (bin/"widelands").write <<-EOS.undent + #!/bin/sh + exec #{prefix}/widelands "$@" + EOS + end + end + + test do + system bin/"widelands", "--version" + end +end From 2de9a5cd35c3cbd3b19a6384998c877f15712856 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:02 +0000 Subject: [PATCH 164/175] wumpus: import from homebrew/games. --- Formula/wumpus.rb | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Formula/wumpus.rb diff --git a/Formula/wumpus.rb b/Formula/wumpus.rb new file mode 100644 index 000000000000..c30cadcc246b --- /dev/null +++ b/Formula/wumpus.rb @@ -0,0 +1,34 @@ +class Wumpus < Formula + desc "Exact clone of the ancient BASIC Hunt the Wumpus game" + homepage "http://www.catb.org/~esr/wumpus/" + url "http://www.catb.org/~esr/wumpus/wumpus-1.6.tar.gz" + sha256 "965e49b3e53f44023994b42b3aa568ad79d3a2287bb0a07460b601500c9ae16d" + + bottle do + cellar :any + sha256 "d3b2684fa7a1a7a9c676bc0f7d635ed3913f6734c7810f0c6fa234044ca9a147" => :yosemite + sha256 "cb277b7dab8ca78ea627f80a9596807b7cd5e8bbba389d0117b4a743bdfdaacf" => :mavericks + sha256 "c92ce6674f45ee484435cfd5746b4c6ae80d8ced9a5901e254b7e5bacadc8726" => :mountain_lion + end + + # Patches to allow `make install` to specify a prefix; both patches + # can be removed in the next release + patch do + url "https://gitlab.com/esr/wumpus/commit/ea272d4786a55dbaa493d016324b7a05b4f165b9.diff" + sha256 "9a6d625e10425674329f14c625dba43b78b66c8137d356453d021e6c39ec339b" + end + patch do + url "https://gitlab.com/esr/wumpus/commit/99022db86e54c3338d6a670f219a0845fd531530.diff" + sha256 "72e40a834eb87e8deef51e8f064c50d93880e85ff9904a50be6b7c85052cc157" + end + + def install + system "make" + system "make", "prefix=#{prefix}", "install" + end + + test do + assert_match("HUNT THE WUMPUS", + pipe_output(bin/"wumpus", "^C")) + end +end From a65ea7ade87540ce5fc1383f1c737e706c584449 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:03 +0000 Subject: [PATCH 165/175] xboard: import from homebrew/games. --- Formula/xboard.rb | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Formula/xboard.rb diff --git a/Formula/xboard.rb b/Formula/xboard.rb new file mode 100644 index 000000000000..1444386e5ddd --- /dev/null +++ b/Formula/xboard.rb @@ -0,0 +1,45 @@ +class Xboard < Formula + desc "Graphical user interface for chess" + homepage "https://www.gnu.org/software/xboard/" + url "https://ftpmirror.gnu.org/xboard/xboard-4.9.1.tar.gz" + mirror "https://ftp.gnu.org/gnu/xboard/xboard-4.9.1.tar.gz" + sha256 "2b2e53e8428ad9b6e8dc8a55b3a5183381911a4dae2c0072fa96296bbb1970d6" + revision 1 + + bottle do + rebuild 1 + sha256 "7004805cccc01a3e0d627c6781975e79a8659078059a11f12bd748bd0e281498" => :sierra + sha256 "6a41c3769384e668db117dd681ea1b40f5b3167ca39bca1b1df71fc655a60db4" => :el_capitan + sha256 "700ba70a1ba19ce440c9daf3132f43a655d20fa1e9c7da80066145024469f7f0" => :yosemite + end + + head do + url "git://git.sv.gnu.org/xboard.git" + depends_on "autoconf" => :build + depends_on "automake" => :build + end + + depends_on "pkg-config" => :build + depends_on "fairymax" => :recommended + depends_on "polyglot" => :recommended + depends_on "gettext" + depends_on "cairo" + depends_on "librsvg" + depends_on "gtk+" + + def install + system "./autogen.sh" if build.head? + args = ["--prefix=#{prefix}", + "--with-gtk", + "--without-Xaw", + "--disable-zippy"] + + system "./configure", *args + system "make" + system "make", "install" + end + + test do + system bin/"xboard", "--help" + end +end From 213e96bcfb3154c621752f7d2064a98e41bf05df Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:03 +0000 Subject: [PATCH 166/175] xmoto: import from homebrew/games. --- Formula/xmoto.rb | 64 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Formula/xmoto.rb diff --git a/Formula/xmoto.rb b/Formula/xmoto.rb new file mode 100644 index 000000000000..bba5e4ee3548 --- /dev/null +++ b/Formula/xmoto.rb @@ -0,0 +1,64 @@ +class Xmoto < Formula + desc "2D motocross platform game" + homepage "http://xmoto.tuxfamily.org/" + url "http://download.tuxfamily.org/xmoto/xmoto/0.5.11/xmoto-0.5.11-src.tar.gz" + sha256 "a584a6f9292b184686b72c78f16de4b82d5c5b72ad89e41912ff50d03eca26b2" + + bottle do + sha256 "f751fa27d90c7102d8eec837b168100c0d9e9d5679d098ed73bc3f881d688c51" => :yosemite + sha256 "a6fc076cd3a531df53d98b22363d1baf919913ccf0c1453dc0afe1d501b8e44f" => :mavericks + sha256 "6accb5053b91e580203699b5227717d00cf73658600ae087f0388603568ba2bb" => :mountain_lion + end + + head do + url "svn://svn.tuxfamily.org/svnroot/xmoto/xmoto/trunk" + depends_on "automake" => :build + depends_on "autoconf" => :build + end + + depends_on "sdl" + depends_on "sdl_mixer" + depends_on "sdl_net" + depends_on "sdl_ttf" + depends_on "ode" + depends_on "libpng" + depends_on "jpeg" + depends_on "libxml2" + depends_on "gettext" => :recommended + depends_on "libxdg-basedir" + depends_on "lua" => :recommended + + def install + # Fix issues reported upstream + # http://todo.xmoto.tuxfamily.org/index.php?do=details&task_id=812 + + # Set up single precision ODE + ENV.append_to_cflags "-DdSINGLE" + + # Use same type as Apple OpenGL.framework + inreplace "src/glext.h", "unsigned int GLhandleARB", "void *GLhandleARB" + + # Handle quirks of C++ hash_map + inreplace "src/include/xm_hashmap.h" do |s| + if build.head? + s.gsub! "tr1/", "" + s.gsub! "::tr1", "" + else + s.gsub! "s2) {", "s2) const {" + end + end + + system "./bootstrap" if build.head? + system "./configure", "--prefix=#{prefix}", + "--disable-dependency-tracking", + "--disable-xmltest", + "--disable-sdltest", + "--with-apple-opengl-framework", + "--with-asian-ttf-file=" + system "make", "install" + end + + test do + system "#{bin}/xmoto", "-h" + end +end From e7e6ace71ed101a99ce50ad47a06a6426b4f73ae Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:03 +0000 Subject: [PATCH 167/175] xrick: import from homebrew/games. --- Formula/xrick.rb | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Formula/xrick.rb diff --git a/Formula/xrick.rb b/Formula/xrick.rb new file mode 100644 index 000000000000..e176f709bf9a --- /dev/null +++ b/Formula/xrick.rb @@ -0,0 +1,26 @@ +class Xrick < Formula + desc "Clone of Rick Dangerous" + homepage "http://www.bigorno.net/xrick/" + url "http://www.bigorno.net/xrick/xrick-021212.tgz" + sha256 "aa8542120bec97a730258027a294bd16196eb8b3d66134483d085f698588fc2b" + + bottle do + sha256 "a7f818904878107dd9133834b044415684906e5e2ac37b5b015ca9f0b0868836" => :el_capitan + sha256 "913496241e1fdf0df5895a1bae3701ca64dc912a174a1f5efe80d5ad56e9e73f" => :yosemite + sha256 "dbe2a1f793f6f7421885241c2caae5af92fde79fc7317a9b447c03b0bbac9da9" => :mavericks + end + + depends_on "sdl" + + def install + inreplace "src/xrick.c", "data.zip", "#{pkgshare}/data.zip" + system "make" + bin.install "xrick" + man6.install "xrick.6.gz" + pkgshare.install "data.zip" + end + + test do + assert_match "xrick [version ##{version}]", shell_output("#{bin}/xrick --help", 1) + end +end From 4ecf4320ce26303f269c9c70e7d51404cfc60962 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:03 +0000 Subject: [PATCH 168/175] xshogi: import from homebrew/games. --- Formula/xshogi.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Formula/xshogi.rb diff --git a/Formula/xshogi.rb b/Formula/xshogi.rb new file mode 100644 index 000000000000..a209d9ca4de4 --- /dev/null +++ b/Formula/xshogi.rb @@ -0,0 +1,22 @@ +class Xshogi < Formula + desc "X11 interface for GNU Shogi" + homepage "https://www.gnu.org/software/gnushogi/" + url "https://ftpmirror.gnu.org/gnushogi/xshogi-1.4.2.tar.gz" + mirror "https://ftp.gnu.org/gnu/gnushogi/xshogi-1.4.2.tar.gz" + + bottle do + cellar :any + sha256 "896d7fd6f2ee9171fdc61017b6ca32ae28b8e0b43d5242dad5a9e7a01de0f5c9" => :yosemite + sha256 "ef3e719f3c7677d3017fdf771e580316d87db7bee8d260509e49a32666768e4b" => :mavericks + sha256 "d05d49dc5001f6b2f51070c33e2ebbb30aadc07c461fcff817973d99f1b1fde0" => :mountain_lion + end + + depends_on :x11 + depends_on "gnu-shogi" + + def install + system "./configure", "--prefix=#{prefix}", + "--disable-dependency-tracking" + system "make", "install" + end +end From 4be8948c1ac9f6e47f1a24f4be29b3007b4047cb Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:03 +0000 Subject: [PATCH 169/175] xu4: import from homebrew/games. --- Formula/xu4.rb | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Formula/xu4.rb diff --git a/Formula/xu4.rb b/Formula/xu4.rb new file mode 100644 index 000000000000..9d23a591dde9 --- /dev/null +++ b/Formula/xu4.rb @@ -0,0 +1,54 @@ +class Xu4 < Formula + desc "Remake of Ultima IV" + homepage "http://xu4.sourceforge.net/" + url "http://xu4.svn.sourceforge.net/svnroot/xu4/trunk/u4", :revision => "3088" + version "1.0beta4+r3088" + head "http://xu4.svn.sourceforge.net/svnroot/xu4/trunk/u4" + + bottle do + cellar :any + sha256 "f16e6b85d800aeb69636b5c63144505572e20bd21205defb8d3d5a7288904e52" => :yosemite + sha256 "e82e64b77ba616ba3d50367fd12d154aee709710682523039032257979384272" => :mavericks + sha256 "e686a6ed031cd79462ced50885703b0872ce8a96bb02549598d7a1354fa5d491" => :mountain_lion + end + + depends_on "sdl" + depends_on "sdl_mixer" + depends_on "libpng" + + resource "ultima4" do + url "http://www.thatfleminggent.com/ultima/ultima4.zip", :using => :nounzip + sha256 "94aa748cfa1d0e7aa2e518abebb994f3c18acf7edb78c3bd37cd0a4404e6ba74" + end + + resource "u4upgrad" do + url "https://downloads.sourceforge.net/project/xu4/Ultima%204%20VGA%20Upgrade/1.3/u4upgrad.zip", :using => :nounzip + sha256 "400ac37311f3be74c1b2d7836561b2ead2b146f5162586865b0f4881225cca58" + end + + def install + (buildpath/"src").install resource("ultima4") + (buildpath/"src").install resource("u4upgrad") + + cd "src" do + # Include ultima4.zip in the bundle + inreplace "Makefile.macosx", /# (cp \$\(ULTIMA4\))/, '\1' + + # Copy over SDL's ObjC main files + cp_r Dir[Formula["sdl"].libexec/"*"], "macosx" + + system "make", "bundle", "-f", "Makefile.macosx", + "CC=#{ENV.cc}", + "CXX=#{ENV.cxx}", + "PREFIX=#{HOMEBREW_PREFIX}", + "UILIBS=-framework Cocoa -L#{Formula["sdl"].lib} -lSDL -L#{Formula["sdl_mixer"].lib} -lSDL_mixer -L#{Formula["libpng"].lib} -lpng", + "UIFLAGS=-I#{Formula["sdl"].include}/SDL -I#{Formula["sdl_mixer"].include}/SDL -I#{Formula["libpng"].include}" + prefix.install "XU4.app" + bin.write_exec_script "#{prefix}/XU4.app/Contents/MacOS/u4" + end + end + + test do + system "#{bin}/u4", "-help" + end +end From f5432ee2d7cd635c194b334cbccd22d1c8000251 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:03 +0000 Subject: [PATCH 170/175] yetris: import from homebrew/games. --- Formula/yetris.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Formula/yetris.rb diff --git a/Formula/yetris.rb b/Formula/yetris.rb new file mode 100644 index 000000000000..a4fd28b8db2e --- /dev/null +++ b/Formula/yetris.rb @@ -0,0 +1,21 @@ +class Yetris < Formula + desc "Customizable Tetris for the terminal." + homepage "https://github.com/alexdantas/yetris" + url "https://github.com/alexdantas/yetris/archive/v2.3.0.tar.gz" + sha256 "720c222325361e855e2dcfec34f8f0ae61dd418867a87f7af03c9a59d723b919" + + bottle do + cellar :any_skip_relocation + sha256 "6b6a16e41ac6321347a7609cda1fbc56bd10dab8ae84182e606e09c44cf59ed9" => :el_capitan + sha256 "07f963700d2445ff2a2b66c4aaafa236604050f515b46ac2661ffda0ce2913ec" => :yosemite + sha256 "c77601064ff9c03eda3ca9ef8a97043b2abc130f5dbef707f7ab1001ed6c0768" => :mavericks + end + + def install + system "make", "install", "PREFIX=#{prefix}" + end + + test do + assert_match "v#{version}", shell_output("#{bin}/yetris --version") + end +end From 2286a276f65aab3b3591c3bce3c7811d2e692ed9 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:03 +0000 Subject: [PATCH 171/175] zboy: import from homebrew/games. --- Formula/zboy.rb | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Formula/zboy.rb diff --git a/Formula/zboy.rb b/Formula/zboy.rb new file mode 100644 index 000000000000..a3feb5ec8e80 --- /dev/null +++ b/Formula/zboy.rb @@ -0,0 +1,27 @@ +class Zboy < Formula + desc "GameBoy emulator" + homepage "http://zboy.sourceforge.net/" + url "https://downloads.sourceforge.net/project/zboy/zBoy%20v0.60/zboy-0.60.tar.gz" + sha256 "f81e61433a5b74c61ab84cac33da598deb03e49699f3d65dcb983151a6f1c749" + head "http://svn.code.sf.net/p/zboy/code/trunk" + + bottle do + cellar :any + sha256 "61d8ae1da9d92971799ba73c44bb6e35c4b96a0eb1aa9772938659fcffd23f87" => :yosemite + sha256 "82a1ea7e02de1a27897198d39fc72731c89ecdc42a9f42f974a035a58eee9a5f" => :mavericks + sha256 "782dc15709dc6de67f8b301108485d9ac34d4da41fce8e74b2fc0a2856db8103" => :mountain_lion + end + + depends_on "sdl2" + + def install + sdl2 = Formula["sdl2"] + ENV.append_to_cflags "-std=gnu89 -D__zboy4linux__ -DNETPLAY -DLFNAVAIL -I#{sdl2.include} -L#{sdl2.lib}" + system "make", "-f", "Makefile.linux", "CFLAGS=#{ENV.cflags}" + bin.install "zboy" + end + + test do + system "#{bin}/zboy", "--help" + end +end From 2c08ffe66f4ce665cb5d14bf345c72dc6fc7bc9b Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:03 +0000 Subject: [PATCH 172/175] zelda-roth-se: import from homebrew/games. --- Formula/zelda-roth-se.rb | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Formula/zelda-roth-se.rb diff --git a/Formula/zelda-roth-se.rb b/Formula/zelda-roth-se.rb new file mode 100644 index 000000000000..f3a2ffdba572 --- /dev/null +++ b/Formula/zelda-roth-se.rb @@ -0,0 +1,36 @@ +class ZeldaRothSe < Formula + desc "Zelda Return of the Hylian SE" + homepage "http://www.solarus-games.org/games/zelda-return-of-the-hylian-se/" + head "https://github.com/christopho/zelda_roth_se.git" + + stable do + url "https://github.com/christopho/zelda_roth_se/archive/v1.1.0.tar.gz" + sha256 "95baf3ce96372b1ce78d9af8ee9723840474ac8fc51e87eb54cc35777d68f5a8" + + # Support SOLARUS_INSTALL_DATADIR variable for CMake + patch do + url "https://github.com/christopho/zelda_roth_se/commit/e9b5bd907f5b50b17d65ebe2fa50760d322c537c.diff" + sha256 "e8713c2b83e86821d4ca683c2653c36d0756d97a0fd8c3529a503d44c10e9306" + end + end + + bottle do + cellar :any_skip_relocation + sha256 "f8f772c82c7739b4f0d17b14c0307e3ef71260f16c8b63cbc2ac1e563c97ac5e" => :sierra + sha256 "2fa070bf6a0c9596a0606a5fc22e050a60d212924815e1ccaf38eab95b23fbad" => :el_capitan + sha256 "5064335d6471ccbafcef75fc18fe5d2c360e3920ccab61bc1420cdf8f040e2fd" => :yosemite + end + + depends_on "cmake" => :build + depends_on "solarus" + + def install + system "cmake", ".", *std_cmake_args, "-DSOLARUS_INSTALL_DATADIR=#{share}" + system "make", "install" + end + + test do + system Formula["solarus"].bin/"solarus-run", "-help" + system "/usr/bin/unzip", share/"zelda_roth_se/data.solarus" + end +end From 57d1a12fb481ed970092c609bcfa5704978745d5 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:03 +0000 Subject: [PATCH 173/175] zsdx: import from homebrew/games. --- Formula/zsdx.rb | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Formula/zsdx.rb diff --git a/Formula/zsdx.rb b/Formula/zsdx.rb new file mode 100644 index 000000000000..367b0f548ded --- /dev/null +++ b/Formula/zsdx.rb @@ -0,0 +1,27 @@ +class Zsdx < Formula + desc "Zelda Mystery of Solarus DX" + homepage "http://www.solarus-games.org/games/zelda-mystery-of-solarus-dx/" + url "https://github.com/christopho/zsdx/archive/zsdx-1.11.0.tar.gz" + sha256 "05a5d220bbf2439c9da2e71cd9d104240878123fff5bc702e2405d6d0712f0dc" + head "https://github.com/christopho/zsdx.git" + + bottle do + cellar :any_skip_relocation + sha256 "336c19e1191e48fa0695fd6aad02642987bca12a20eed22c9ed058fff6e4a041" => :sierra + sha256 "3d610c489f735a19990902b6a9d2552a839f206a7a41bf5ef23416680ba09351" => :el_capitan + sha256 "db6c49e89d2e1e100673394b1c44d0d88ef454c7a82a0cac5809fb23e66d2bc6" => :yosemite + end + + depends_on "cmake" => :build + depends_on "solarus" + + def install + system "cmake", ".", *std_cmake_args, "-DSOLARUS_INSTALL_DATADIR=#{share}" + system "make", "install" + end + + test do + system Formula["solarus"].bin/"solarus-run", "-help" + system "/usr/bin/unzip", pkgshare/"data.solarus" + end +end From bee11cb7f19eaeba056f3f75d94459229eae0867 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:27:03 +0000 Subject: [PATCH 174/175] zsxd: import from homebrew/games. --- Formula/zsxd.rb | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Formula/zsxd.rb diff --git a/Formula/zsxd.rb b/Formula/zsxd.rb new file mode 100644 index 000000000000..e80e69b26219 --- /dev/null +++ b/Formula/zsxd.rb @@ -0,0 +1,27 @@ +class Zsxd < Formula + desc "Zelda Mystery of Solarus XD" + homepage "http://www.solarus-games.org/games/zelda-mystery-of-solarus-xd/" + url "https://github.com/christopho/zsxd/archive/zsxd-1.11.0.tar.gz" + sha256 "4c6e744ecc5b7e123f5e085ed993e8234cbef8046d2717d16121a2b711e0ccde" + head "https://github.com/christopho/zsxd.git" + + bottle do + cellar :any_skip_relocation + sha256 "b014fef5a406ff688e2a3255b04a6dc4296f18b844f17a4b730dd4f8a332aace" => :sierra + sha256 "4cb8677d7ce37a1cea3f3a5e5df51284d580d6190a1c168d00929c8329e582d0" => :el_capitan + sha256 "795fa732d77f79ce4a305cd2ae0dc8ed939f8328f1f01661379892c36a481274" => :yosemite + end + + depends_on "cmake" => :build + depends_on "solarus" + + def install + system "cmake", ".", *std_cmake_args, "-DSOLARUS_INSTALL_DATADIR=#{share}" + system "make", "install" + end + + test do + system Formula["solarus"].bin/"solarus-run", "-help" + system "/usr/bin/unzip", pkgshare/"data.solarus" + end +end From a7292a8dd66277edf2da0cb691c16465c9c5fd9e Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 7 Feb 2017 17:24:41 +0000 Subject: [PATCH 175/175] tap_migrations: remove homebrew/games items. --- tap_migrations.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/tap_migrations.json b/tap_migrations.json index f82d5ed05be1..7fffa0a0606f 100644 --- a/tap_migrations.json +++ b/tap_migrations.json @@ -72,7 +72,6 @@ "ext2fuse": "homebrew/fuse", "ext4fuse": "homebrew/fuse", "ezlupdate": "homebrew/boneyard", - "fceux": "homebrew/games", "ffts": "homebrew/boneyard", "fleet-db": "homebrew/boneyard", "frescobaldi": "homebrew/boneyard", @@ -154,7 +153,6 @@ "magit": "homebrew/emacs", "meld": "caskroom/cask", "memo": "homebrew/boneyard", - "mess": "homebrew/games", "metalua": "homebrew/boneyard", "miredo": "homebrew/boneyard", "mp3fs": "homebrew/fuse", @@ -276,7 +274,6 @@ "tup": "homebrew/fuse", "txt2man": "homebrew/boneyard", "ucspi-tools": "homebrew/boneyard", - "ume": "homebrew/games", "unfs3": "homebrew/boneyard", "ushare": "homebrew/boneyard", "validns": "homebrew/boneyard",