Skip to content

Commit

Permalink
corsixth: import from homebrew/games.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Feb 8, 2017
1 parent ef903d3 commit 0318ef3
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Formula/corsixth.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0318ef3

Please sign in to comment.