44 lines
1.4 KiB
Ruby
44 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.0.6.tar.gz"
|
|
sha256 "c4e04359ef91bedf58fbd9da57c39ba59066840a467aa0346c4a6353b0ae33f5"
|
|
head "https://github.com/OpenRCT2/OpenRCT2.git", :branch => "develop"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "032c1b75b68b5651e6aea5a49ae18c37a1d63ffda4a850333a551acd1fd69587" => :sierra
|
|
sha256 "b06b28693bfca1419517e0ba08ff33823dd07fbbc5578c07b359328793120882" => :el_capitan
|
|
sha256 "bc4e64492d425929e3062d88a69392138d9717423f75aae29f17c0252a8dbb0f" => :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
|