44 lines
1.3 KiB
Ruby
44 lines
1.3 KiB
Ruby
class Openrct2 < Formula
|
|
desc "Open source re-implementation of RollerCoaster Tycoon 2"
|
|
homepage "https://openrct2.io/"
|
|
url "https://github.com/OpenRCT2/OpenRCT2/archive/v0.2.0.tar.gz"
|
|
sha256 "bff3fcc728765b51d2498e685e2a7f28e2c1a830691fd2c3ea5dd82354962bfb"
|
|
revision 1
|
|
head "https://github.com/OpenRCT2/OpenRCT2.git", :branch => "develop"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "f5b6701b30559683fa7681ad6675bd594007995a0f7aa708d6aac919df07f25b" => :high_sierra
|
|
end
|
|
|
|
depends_on "cmake" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "icu4c"
|
|
depends_on "jansson"
|
|
depends_on "libpng"
|
|
depends_on "libzip"
|
|
depends_on :macos => :high_sierra # "missing: Threads_FOUND" on Sierra
|
|
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
|
|
#!/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
|