43 lines
1.4 KiB
Ruby
43 lines
1.4 KiB
Ruby
class Openrct2 < Formula
|
|
desc "Open source re-implementation of RollerCoaster Tycoon 2"
|
|
homepage "https://openrct2.website"
|
|
url "https://github.com/OpenRCT2/OpenRCT2/archive/v0.1.0.tar.gz"
|
|
sha256 "0347a47d380fc18ea543928c92a13d1bdb4431573154afeb80fa33f1149e6992"
|
|
head "https://github.com/OpenRCT2/OpenRCT2.git", :branch => "develop"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "e3f74d8b2d8f07642b5a410f7069e828e672eb029943f5bac3f2f8b1cb754c18" => :sierra
|
|
sha256 "c72a5121588a24757bac3891c01f3853fa3a88b86c24f3f44697e5decc155380" => :el_capitan
|
|
sha256 "7dbf00f40d77196615728af9f00c0a5109c2ac513e5e03fe35b9b82d7a8ab792" => :yosemite
|
|
end
|
|
|
|
depends_on "cmake" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "jansson"
|
|
depends_on "libpng"
|
|
depends_on "libzip"
|
|
depends_on "openssl"
|
|
depends_on "sdl2"
|
|
depends_on "sdl2_ttf"
|
|
depends_on "speexdsp"
|
|
depends_on "freetype" # for sdl2_ttf
|
|
|
|
def install
|
|
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
|