homebrew-core/Formula/box2d.rb
Jack Nagel 7bf51092df box2d: disable examples
The examples require extra libraries, and aren't even part of the final
installation.

Fixes Homebrew/homebrew#14756.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-13 14:11:45 -05:00

20 lines
507 B
Ruby

require 'formula'
class Box2d < Formula
homepage 'http://www.box2d.org/'
url 'http://box2d.googlecode.com/files/Box2D_v2.2.1.zip'
sha1 'f97e75227a19b01858b1431e5f3eb6b8827bed12'
depends_on 'cmake' => :build
def install
cd 'Build' do
system "cmake", "..",
"-DBOX2D_INSTALL=ON",
"-DBOX2D_BUILD_SHARED=ON",
"-DBOX2D_BUILD_EXAMPLES=OFF",
*std_cmake_args
system "make install"
end
end
end