Browse Source

package: added Homebrew formula.

pull/134/merge
Vladimír Vondruš 10 years ago
parent
commit
493ba80839
  1. 7
      doc/building.dox
  2. 20
      package/homebrew/magnum.rb

7
doc/building.dox

@ -330,6 +330,13 @@ This will compile binary and development packages, which will then appear in
parent directory. If you need to modify CMake flags (enabling/disabling some parent directory. If you need to modify CMake flags (enabling/disabling some
features, for example), modify the last entry in `debian/rules`. features, for example), modify the last entry in `debian/rules`.
@subsection building-packages-brew Homebrew formulas
OS X Homebrew formulas are in `package/homebrew` directory. Download the `*.rb`
file and install it using the following command:
brew install --HEAD magnum.rb
@section building-windows-angle Building for ANGLE on Windows @section building-windows-angle Building for ANGLE on Windows
Magnum is able to run on ANGLE OpenGL-to-D3D translator. Download the code from Magnum is able to run on ANGLE OpenGL-to-D3D translator. Download the code from

20
package/homebrew/magnum.rb

@ -0,0 +1,20 @@
# kate: indent-width 2;
class Magnum < Formula
desc "C++11/C++14 and OpenGL 2D/3D graphics engine"
homepage "https://github.com/mosra/magnum"
head "git://github.com/mosra/magnum.git"
depends_on "cmake"
depends_on "corrade"
depends_on "sdl2"
def install
system "mkdir build"
cd "build" do
system "cmake", "-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_INSTALL_PREFIX=#{prefix}", "-DWITH_AUDIO=ON", "-DWITH_SDL2APPLICATION=ON", "-DWITH_WINDOWLESSCGLAPPLICATION=ON", "-DWITH_CGLCONTEXT=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_MAGNUMINFO=ON", ".."
system "cmake", "--build", "."
system "cmake", "--build", ".", "--target", "install"
end
end
end
Loading…
Cancel
Save