homebrew-core/Formula/box2d.rb
Adam Vandenberg da3fdbd0cf Use "cd" instead of "Dir.chdir"
* And "mkdir" isntead of "Dir.mkdir"
* And "Dir[]" instead of "Dir.glob"
* Also style fixes and nitpicks
2012-02-24 21:35:50 -08:00

17 lines
412 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
# docs say build oos
cd 'Build' do
system "cmake -DBOX2D_INSTALL=ON -DBOX2D_BUILD_SHARED=ON #{std_cmake_parameters} .."
system "make install"
end
end
end