aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/physfs.rb
blob: d810394688df2c21563f5a96389b1b2a11812af1 (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.3.tar.bz2'
  sha1 '327308c777009a41bbabb9159b18c4c0ac069537'

  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