43 lines
1.3 KiB
Ruby
43 lines
1.3 KiB
Ruby
class Solarus < Formula
|
|
desc "Action-RPG game engine"
|
|
homepage "https://www.solarus-games.org/"
|
|
url "https://gitlab.com/solarus-games/solarus.git",
|
|
tag: "v1.6.5",
|
|
revision: "3aec70b0556a8d7aed7903d1a3e4d9a18c5d1649"
|
|
license "GPL-3.0-or-later"
|
|
|
|
bottle do
|
|
sha256 cellar: :any, big_sur: "8432227fe84cb749c77d45a9349c6d65793f0bff13fd77640266bcd51d564b95"
|
|
sha256 cellar: :any, catalina: "f50e6c02f9ca2a9a01314605b017e90cf6102b9b3d97e48f4fbd104a86cf37b6"
|
|
sha256 cellar: :any, mojave: "df3043713901b3a842e612c3da8204e3fc830d2cbaa42f1f7f04b6a26b479c6b"
|
|
end
|
|
|
|
depends_on "cmake" => :build
|
|
depends_on "glm"
|
|
depends_on "libmodplug"
|
|
depends_on "libogg"
|
|
depends_on "libvorbis"
|
|
depends_on "luajit"
|
|
depends_on "physfs"
|
|
depends_on "sdl2"
|
|
depends_on "sdl2_image"
|
|
depends_on "sdl2_ttf"
|
|
|
|
def install
|
|
mkdir "build" do
|
|
ENV.append_to_cflags "-I#{Formula["glm"].opt_include}"
|
|
ENV.append_to_cflags "-I#{Formula["physfs"].opt_include}"
|
|
system "cmake", "..",
|
|
"-DSOLARUS_GUI=OFF",
|
|
"-DVORBISFILE_INCLUDE_DIR=#{Formula["libvorbis"].opt_include}",
|
|
"-DOGG_INCLUDE_DIR=#{Formula["libogg"].opt_include}",
|
|
*std_cmake_args
|
|
system "make", "install"
|
|
end
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/solarus-run", "-help"
|
|
end
|
|
end
|