aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/box2d.rb
blob: 31075560da39a25933b5686e50b1788149b561c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'formula'

class Box2d < Formula
  homepage 'http://www.box2d.org/'
  url 'http://box2d.googlecode.com/files/Box2D_v2.2.1.zip'
  sha1 'f97e75227a19b01858b1431e5f3eb6b8827bed12'

  depends_on 'cmake' => :build

  def install
    cd 'Build' do
      system "cmake", "..",
                      "-DBOX2D_INSTALL=ON",
                      "-DBOX2D_BUILD_SHARED=ON",
                      *std_cmake_args
      system "make install"
    end
  end
end