aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/box2d.rb13
1 files changed, 8 insertions, 5 deletions
diff --git a/Library/Formula/box2d.rb b/Library/Formula/box2d.rb
index 58740d5a3..aabe11c58 100644
--- a/Library/Formula/box2d.rb
+++ b/Library/Formula/box2d.rb
@@ -1,14 +1,17 @@
require 'formula'
class Box2d < Formula
- url 'http://box2d.googlecode.com/files/Box2D_v2.1.2.zip'
+ url 'http://box2d.googlecode.com/files/Box2D_v2.2.1.zip'
homepage 'http://www.box2d.org/'
- md5 '59d142cd8d4d73e8832c7b67591f590c'
+ sha1 'f97e75227a19b01858b1431e5f3eb6b8827bed12'
- depends_on 'cmake'
+ depends_on 'cmake' => :build
def install
- system "cmake Box2D/ -DBOX2D_BUILD_SHARED=ON -DBOX2D_INSTALL_DOC=ON -DBOX2D_BUILD_EXAMPLES=OFF #{std_cmake_parameters}"
- system "make -C Box2D/ 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