Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

taisei: import from homebrew/games #9762

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions Formula/taisei.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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"

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 Mac OS X build
patch do
url "https://github.com/laochailan/taisei/commit/be8be15.patch"
sha256 "29225ba39ce1aa093897ad4276da35a972b320e3ad01ffa14ab7b32e3acb4626"
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