2010-11-08 02:10:48 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Physfs < Formula
|
2011-03-28 07:07:43 +00:00
|
|
|
url 'http://icculus.org/physfs/downloads/physfs-2.0.2.tar.gz'
|
2010-11-08 02:10:48 +00:00
|
|
|
homepage 'http://icculus.org/physfs/'
|
2011-03-28 07:07:43 +00:00
|
|
|
md5 '4e8927c3d30279b03e2592106eb9184a'
|
2010-11-08 02:10:48 +00:00
|
|
|
|
|
|
|
depends_on 'cmake' => :build
|
|
|
|
|
|
|
|
def install
|
2011-10-24 20:16:52 +00:00
|
|
|
mkdir 'macbuild'
|
|
|
|
Dir.chdir 'macbuild' do
|
|
|
|
system "cmake #{std_cmake_parameters} -DPHYSFS_BUILD_WX_TEST=FALSE -DPHYSFS_BUILD_TEST=TRUE .."
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
2010-11-08 02:10:48 +00:00
|
|
|
end
|
|
|
|
end
|