From ea4bff83235b93d71476fd62762bf9dc0c4addea Mon Sep 17 00:00:00 2001 From: Nibbles 2bits Date: Sun, 6 Nov 2011 23:20:34 -0800 Subject: 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 #8483. Signed-off-by: Jack Nagel --- Library/Formula/box2d.rb | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3