aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/box2d.rb19
1 files changed, 10 insertions, 9 deletions
diff --git a/Library/Formula/box2d.rb b/Library/Formula/box2d.rb
index a730495f1..200505aef 100644
--- a/Library/Formula/box2d.rb
+++ b/Library/Formula/box2d.rb
@@ -2,19 +2,20 @@ require 'formula'
class Box2d < Formula
homepage 'http://www.box2d.org/'
- url 'http://box2d.googlecode.com/files/Box2D_v2.2.1.zip'
- sha1 'f97e75227a19b01858b1431e5f3eb6b8827bed12'
+ url 'https://box2d.googlecode.com/files/Box2D_v2.3.0.7z'
+ sha1 '1d3ea1f872b3cab3ef5130a2404d74f9ff66f265'
depends_on 'cmake' => :build
def install
- cd 'Build' do
- system "cmake", "..",
- "-DBOX2D_INSTALL=ON",
- "-DBOX2D_BUILD_SHARED=ON",
- "-DBOX2D_BUILD_EXAMPLES=OFF",
- *std_cmake_args
- system "make install"
+ cd 'Box2D_v2.3.0' do
+ cd 'Box2D' do
+ system "cmake", "-DBOX2D_INSTALL=ON",
+ "-DBOX2D_BUILD_SHARED=ON",
+ "-DBOX2D_BUILD_EXAMPLES=OFF",
+ *std_cmake_args
+ system "make install"
+ end
end
end
end