aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/box2d.rb14
1 files changed, 6 insertions, 8 deletions
diff --git a/Library/Formula/box2d.rb b/Library/Formula/box2d.rb
index 200505aef..55afc54e6 100644
--- a/Library/Formula/box2d.rb
+++ b/Library/Formula/box2d.rb
@@ -8,14 +8,12 @@ class Box2d < Formula
depends_on 'cmake' => :build
def 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
+ cd "Box2D_v#{version}/Box2D" do
+ system "cmake", "-DBOX2D_INSTALL=ON",
+ "-DBOX2D_BUILD_SHARED=ON",
+ "-DBOX2D_BUILD_EXAMPLES=OFF",
+ *std_cmake_args
+ system "make install"
end
end
end