homebrew-core/Formula/rawgl.rb

39 lines
1.5 KiB
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", branch: "master"
bottle do
rebuild 1
sha256 cellar: :any, arm64_monterey: "3a960ec1b41c2a4c4a8bb8791319a8df1b307ccaa3578b6ef68d5ede66eb4d43"
sha256 cellar: :any, arm64_big_sur: "a54f081334f411e85e8a6eb1c2e6869175d0dd6e5a75df00208e52e6cdbe7151"
sha256 cellar: :any, monterey: "125c46b52706c782fd893cca14bb25b61f305a62856b71ba8c4deac0523dd0dc"
sha256 cellar: :any, big_sur: "28776c3c1a68e88c5c1418514b745ee71a21d1cb891d26d2c94e2690992e68df"
sha256 cellar: :any, catalina: "96bd31a9298e14d5b4db183c8833d6e1e6bb10344193f49e1681a13cecc0c276"
sha256 cellar: :any, mojave: "59d92a845f19239386ea16af01ae174ab61bedeade38b55e492895b55656f576"
sha256 cellar: :any, high_sierra: "fb7f71cbce3b517ba8946cea53611c7577a2f1b1618a5f27dd0b67f23e278a25"
end
deprecate! date: "2022-03-09", because: :repo_archived
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.patch?full_index=1"
sha256 "b1f6fb1e4f6ee52a79d128dccd63a7d5a20ced25bb435e934235b679d1299862"
end
def install
system "make"
bin.install "rawgl"
end
test do
system bin/"rawgl", "--help"
end
end