2010-03-16 21:52:24 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Chipmunk < Formula
|
2011-12-20 05:07:20 +00:00
|
|
|
homepage 'http://chipmunk-physics.net/'
|
2013-03-29 01:03:20 +00:00
|
|
|
url 'https://github.com/slembcke/Chipmunk-Physics/archive/Chipmunk-6.1.2.tar.gz'
|
|
|
|
sha1 'a432411e3d464a2a260a4eb8cd28313c66f7505c'
|
2011-12-20 05:07:20 +00:00
|
|
|
|
|
|
|
head 'https://github.com/slembcke/Chipmunk-Physics.git'
|
2010-03-16 21:52:24 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'cmake' => :build
|
2010-03-16 21:52:24 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "cmake", "-DCMAKE_INSTALL_PREFIX=#{prefix}",
|
|
|
|
"-DCMAKE_PREFIX_PATH=#{prefix}",
|
2012-02-26 04:55:49 +00:00
|
|
|
"-DPREFIX=#{prefix}",
|
2012-02-22 05:12:27 +00:00
|
|
|
"."
|
2010-03-16 21:52:24 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|