2012-11-11 20:00:24 +00:00
|
|
|
class Irrlicht < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Realtime 3D engine"
|
2015-08-03 12:55:31 +00:00
|
|
|
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"
|
|
|
|
sha256 "814bb90116d5429449ba1d169e2cbff881c473b7eada4c2447132bc4f4a6e97b"
|
2012-11-11 20:00:24 +00:00
|
|
|
|
2014-11-26 10:09:12 +00:00
|
|
|
# may be removed when https://sourceforge.net/p/irrlicht/patches/297/ applied
|
|
|
|
head do
|
|
|
|
patch do
|
2015-08-03 12:55:31 +00:00
|
|
|
url "https://gist.githubusercontent.com/neoascetic/7487c936a3c5858ad762/raw/4f572fdca4cd7a3ae4bb3893d50821cee48e3236/trunk.diff"
|
2015-11-02 00:23:24 +00:00
|
|
|
sha256 "df3ea90cfaec1fc2887a2335706bb58b0ccca6258ddb2878f1e159086a3e1abf"
|
2014-11-26 10:09:12 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
stable do
|
|
|
|
patch do
|
2015-08-03 12:55:31 +00:00
|
|
|
url "https://gist.githubusercontent.com/neoascetic/7487c936a3c5858ad762/raw/2e3ab944c43357d705e270a99a5cd7d1b7e033c1/1.8.1.diff"
|
|
|
|
sha256 "78f06879c48ad8d87a2790e75f76df4027ae9ab4f89e5d52bedf3778a1d35d77"
|
2014-11-26 10:09:12 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2014-05-30 23:03:52 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-11-26 10:28:46 +00:00
|
|
|
revision 1
|
2015-11-19 15:45:31 +00:00
|
|
|
sha256 "f3e6427bc2499611b12b5babb907153fdd63c478d9745e59821958644e02f915" => :yosemite
|
|
|
|
sha256 "4ef8e3d8f22ed7114223f89b6bc286c3fa9cadb9135d274265f2dce396522d27" => :mavericks
|
|
|
|
sha256 "5a68f99034d50ce45afe554a36486be55f435bd6b2ff32c8c0f647a0697b0fbb" => :mountain_lion
|
2014-05-30 23:03:52 +00:00
|
|
|
end
|
|
|
|
|
2014-05-30 20:41:18 +00:00
|
|
|
depends_on :xcode => :build
|
2012-11-11 20:00:24 +00:00
|
|
|
|
|
|
|
def install
|
2014-05-20 16:51:16 +00:00
|
|
|
xcodebuild "-project", "source/Irrlicht/MacOSX/MacOSX.xcodeproj",
|
|
|
|
"-configuration", "Release",
|
|
|
|
"-target", "libIrrlicht.a",
|
|
|
|
"SYMROOT=build",
|
|
|
|
"-sdk", "macosx#{MacOS.version}"
|
2012-11-11 20:00:24 +00:00
|
|
|
lib.install "source/Irrlicht/MacOSX/build/Release/libIrrlicht.a"
|
|
|
|
include.install "include" => "irrlicht"
|
|
|
|
end
|
|
|
|
end
|