blob: 330465725f52b8e78a52986924d5aa3508d2c487 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  | 
require 'formula'
class Irrlicht < Formula
  homepage 'http://irrlicht.sourceforge.net/'
  head 'https://irrlicht.svn.sourceforge.net/svnroot/irrlicht/trunk'
  url 'https://downloads.sourceforge.net/irrlicht/irrlicht-1.8.1.zip'
  sha1 '231cd2cf2eefe43bde7c40537ece055a3d6e09cb'
  bottle do
    cellar :any
    sha1 "ebd8a06138f243086d8006b8557bd75136905795" => :mavericks
    sha1 "a8303b5a78b03fe4458b813a197bf82287048905" => :mountain_lion
    sha1 "74bc9b4dbf82d815543b90e7e302a3d51dc78c4f" => :lion
  end
  depends_on :xcode => :build
  def install
    xcodebuild "-project", "source/Irrlicht/MacOSX/MacOSX.xcodeproj",
               "-configuration", "Release",
               "-target", "libIrrlicht.a",
               "SYMROOT=build",
               "-sdk", "macosx#{MacOS.version}"
    lib.install "source/Irrlicht/MacOSX/build/Release/libIrrlicht.a"
    include.install "include" => "irrlicht"
  end
end
  |