homebrew-core/Formula/box2d.rb
Nibbles 2bits d96c5fdc50 box2d 2.2.1
Upgrade box2d to version 2.2.1.
Use new CMake arguments listed in the docs for compiling.
Build out of source.
No errors on Snow Leopard compiling with XCode-4.0.2 using
clang-2.0.139 and llvm-2335.9.

Closes Homebrew/homebrew#8483.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-07 14:14:32 -06:00

17 lines
419 B
Ruby

require 'formula'
class Box2d < Formula
url 'http://box2d.googlecode.com/files/Box2D_v2.2.1.zip'
homepage 'http://www.box2d.org/'
sha1 'f97e75227a19b01858b1431e5f3eb6b8827bed12'
depends_on 'cmake' => :build
def install
# docs say build oos
Dir.chdir 'Build' do
system "cmake -DBOX2D_INSTALL=ON -DBOX2D_BUILD_SHARED=ON #{std_cmake_parameters} .."
system "make install"
end
end
end