forked from Homebrew/legacy-homebrew
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The Irrlicht Engine is a high performance open source and cross platform 3D engine for creating realtime 3D applications.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
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', :using => :svn | ||
|
||
depends_on :xcode | ||
|
||
fails_with :clang do | ||
build 421 | ||
cause <<-EOS.undent | ||
/tmp/irrlicht-3FKY/irrlicht-1.8/source/Irrlicht/MacOSX/../COpenGLExtensionHandler.h:2390:31: error: expected ')' | ||
glProgramParameteriEXT((long GLuint)program, pname, value); | ||
^ | ||
/tmp/irrlicht-3FKY/irrlicht-1.8/source/Irrlicht/MacOSX/../COpenGLExtensionHandler.h:2390:25: note: to match this '(' | ||
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 |