irrlicht 1.8

Closes Homebrew/homebrew#15977.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Denis Sukhonin 2012-11-12 00:00:24 +04:00 committed by Adam Vandenberg
parent 03ad855dbe
commit c239033478

26
Formula/irrlicht.rb Normal file
View file

@ -0,0 +1,26 @@
require 'formula'
class Irrlicht < Formula
homepage 'http://irrlicht.sourceforge.net/'
url 'http://downloads.sourceforge.net/irrlicht/irrlicht-1.8.zip'
sha1 'a24c2183e3c7dd909f92699c373a68382958b09d'
head 'https://irrlicht.svn.sourceforge.net/svnroot/irrlicht/trunk'
depends_on :xcode
fails_with :clang do
build 425
cause <<-EOS.undent
COpenGLExtensionHandler.h:2390:31: error: expected ')'
glProgramParameteriEXT((long GLuint)program, pname, value);
EOS
end
def install
system *%W(xcodebuild -project source/Irrlicht/MacOSX/MacOSX.xcodeproj -configuration Release -target libIrrlicht.a GCC_VERSION=com.apple.compilers.llvmgcc42 -sdk macosx#{MacOS.version})
lib.install "source/Irrlicht/MacOSX/build/Release/libIrrlicht.a"
include.install "include" => "irrlicht"
end
end