blob: fb3039d8e17b16a9edb685d988da6da243714ae7 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 | require 'formula'
class Physfs < Formula
  homepage 'http://icculus.org/physfs/'
  url 'http://icculus.org/physfs/downloads/physfs-2.0.2.tar.gz'
  md5 '4e8927c3d30279b03e2592106eb9184a'
  depends_on 'cmake' => :build
  def install
    mkdir 'macbuild' do
      system "cmake", "..",
                      "-DPHYSFS_BUILD_WX_TEST=FALSE",
                      "-DPHYSFS_BUILD_TEST=TRUE",
                      *std_cmake_args
      system "make"
      system "make install"
    end
  end
end
 |