homebrew-core/Formula/rawgl.rb
2019-11-02 17:42:04 +09:00

33 lines
991 B
Ruby

class Rawgl < Formula
desc "Rewritten engine for Another World"
homepage "https://github.com/cyxx/rawgl"
url "https://github.com/cyxx/rawgl/archive/rawgl-0.2.1.tar.gz"
sha256 "da00d4abbc266e94c3755c2fd214953c48698826011b1d4afbebb99396240073"
head "https://github.com/cyxx/rawgl.git"
bottle do
cellar :any
rebuild 1
sha256 "96bd31a9298e14d5b4db183c8833d6e1e6bb10344193f49e1681a13cecc0c276" => :catalina
sha256 "59d92a845f19239386ea16af01ae174ab61bedeade38b55e492895b55656f576" => :mojave
sha256 "fb7f71cbce3b517ba8946cea53611c7577a2f1b1618a5f27dd0b67f23e278a25" => :high_sierra
end
depends_on "sdl2"
depends_on "sdl2_mixer"
# Upstream fix for SDL2_mixer >= 2.0.2
patch do
url "https://github.com/cyxx/rawgl/commit/483492fb.diff?full_index=1"
sha256 "7af13dfa6cd1e042b6bbaf789da88471e326a411ccac3dac4c6c4c1124e8a153"
end
def install
system "make"
bin.install "rawgl"
end
test do
system bin/"rawgl", "--help"
end
end