mirror of https://github.com/mosra/magnum.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.7 KiB
51 lines
1.7 KiB
class Magnum < Formula |
|
desc "C++11/C++14 graphics middleware for games and data visualization" |
|
homepage "https://magnum.graphics" |
|
url "https://github.com/mosra/magnum/archive/v2020.06.tar.gz" |
|
# wget https://github.com/mosra/magnum/archive/v2020.06.tar.gz -O - | sha256sum |
|
sha256 "98dfe802e56614e4e6bf750d9b693de46a5ed0c6eb479b0268f1a20bf34268bf" |
|
head "git://github.com/mosra/magnum.git" |
|
|
|
depends_on "cmake" |
|
depends_on "corrade" |
|
depends_on "sdl2" |
|
depends_on "glfw" |
|
|
|
def install |
|
system "mkdir build" |
|
cd "build" do |
|
system "cmake", |
|
"-DCMAKE_BUILD_TYPE=Release", |
|
"-DCMAKE_INSTALL_PREFIX=#{prefix}", |
|
"-DMAGNUM_PLUGINS_DIR=#{HOMEBREW_PREFIX}/lib/magnum", |
|
"-DWITH_AUDIO=ON", |
|
"-DWITH_GLFWAPPLICATION=ON", |
|
"-DWITH_SDL2APPLICATION=ON", |
|
"-DWITH_WINDOWLESSCGLAPPLICATION=ON", |
|
"-DWITH_CGLCONTEXT=ON", |
|
"-DWITH_OPENGLTESTER=ON", |
|
"-DWITH_ANYAUDIOIMPORTER=ON", |
|
"-DWITH_ANYIMAGECONVERTER=ON", |
|
"-DWITH_ANYIMAGEIMPORTER=ON", |
|
"-DWITH_ANYSCENECONVERTER=ON", |
|
"-DWITH_ANYSCENEIMPORTER=ON", |
|
"-DWITH_ANYSHADERCONVERTER=ON", |
|
"-DWITH_MAGNUMFONT=ON", |
|
"-DWITH_MAGNUMFONTCONVERTER=ON", |
|
"-DWITH_OBJIMPORTER=ON", |
|
"-DWITH_TGAIMAGECONVERTER=ON", |
|
"-DWITH_TGAIMPORTER=ON", |
|
"-DWITH_WAVAUDIOIMPORTER=ON", |
|
"-DWITH_DISTANCEFIELDCONVERTER=ON", |
|
"-DWITH_FONTCONVERTER=ON", |
|
"-DWITH_IMAGECONVERTER=ON", |
|
"-DWITH_SCENECONVERTER=ON", |
|
"-DWITH_SHADERCONVERTER=ON", |
|
"-DWITH_GL_INFO=ON", |
|
"-DWITH_AL_INFO=ON", |
|
".." |
|
system "cmake", "--build", "." |
|
system "cmake", "--build", ".", "--target", "install" |
|
end |
|
end |
|
end
|
|
|