2012-11-11 20:00:24 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Irrlicht < Formula
|
|
|
|
homepage 'http://irrlicht.sourceforge.net/'
|
|
|
|
head 'https://irrlicht.svn.sourceforge.net/svnroot/irrlicht/trunk'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/irrlicht/irrlicht-1.8.1.zip'
|
2014-01-30 04:12:50 +00:00
|
|
|
sha1 '231cd2cf2eefe43bde7c40537ece055a3d6e09cb'
|
2012-11-11 20:00:24 +00:00
|
|
|
|
|
|
|
depends_on :xcode
|
|
|
|
|
|
|
|
def install
|
2014-02-21 06:52:14 +00:00
|
|
|
args = %W(-project source/Irrlicht/MacOSX/MacOSX.xcodeproj -configuration Release -target libIrrlicht.a)
|
|
|
|
args << 'SYMROOT=build'
|
|
|
|
args << '-sdk' << "macosx#{MacOS.version}"
|
2014-02-28 03:47:38 +00:00
|
|
|
xcodebuild *args
|
2012-11-11 20:00:24 +00:00
|
|
|
lib.install "source/Irrlicht/MacOSX/build/Release/libIrrlicht.a"
|
|
|
|
include.install "include" => "irrlicht"
|
|
|
|
end
|
|
|
|
end
|