2010-12-02 02:57:44 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Box2d < Formula
|
2010-12-02 02:57:44 +00:00
|
|
|
homepage 'http://www.box2d.org/'
|
2012-02-21 06:04:21 +00:00
|
|
|
url 'http://box2d.googlecode.com/files/Box2D_v2.2.1.zip'
|
2011-11-07 07:20:34 +00:00
|
|
|
sha1 'f97e75227a19b01858b1431e5f3eb6b8827bed12'
|
2010-12-02 02:57:44 +00:00
|
|
|
|
2011-11-07 07:20:34 +00:00
|
|
|
depends_on 'cmake' => :build
|
2010-12-02 02:57:44 +00:00
|
|
|
|
|
|
|
def install
|
2011-11-07 07:20:34 +00:00
|
|
|
# docs say build oos
|
2012-02-21 06:04:21 +00:00
|
|
|
cd 'Build' do
|
2011-11-07 07:20:34 +00:00
|
|
|
system "cmake -DBOX2D_INSTALL=ON -DBOX2D_BUILD_SHARED=ON #{std_cmake_parameters} .."
|
|
|
|
system "make install"
|
|
|
|
end
|
2010-12-02 02:57:44 +00:00
|
|
|
end
|
|
|
|
end
|