2010-11-08 02:10:48 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Physfs < Formula
|
2010-11-08 02:10:48 +00:00
|
|
|
homepage 'http://icculus.org/physfs/'
|
2012-11-01 05:55:57 +00:00
|
|
|
url 'http://icculus.org/physfs/downloads/physfs-2.0.3.tar.bz2'
|
|
|
|
sha1 '327308c777009a41bbabb9159b18c4c0ac069537'
|
2010-11-08 02:10:48 +00:00
|
|
|
|
|
|
|
depends_on 'cmake' => :build
|
|
|
|
|
|
|
|
def install
|
2012-02-22 04:48:36 +00:00
|
|
|
mkdir 'macbuild' do
|
2012-05-22 21:37:04 +00:00
|
|
|
system "cmake", "..",
|
|
|
|
"-DPHYSFS_BUILD_WX_TEST=FALSE",
|
|
|
|
"-DPHYSFS_BUILD_TEST=TRUE",
|
|
|
|
*std_cmake_args
|
2011-10-24 20:16:52 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
2010-11-08 02:10:48 +00:00
|
|
|
end
|
|
|
|
end
|