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
|
|
|
|
2014-11-26 10:09:12 +00:00
|
|
|
# may be removed when https://sourceforge.net/p/irrlicht/patches/297/ applied
|
|
|
|
head do
|
|
|
|
patch do
|
|
|
|
url 'https://gist.githubusercontent.com/neoascetic/7487c936a3c5858ad762/raw/4f572fdca4cd7a3ae4bb3893d50821cee48e3236/trunk.diff'
|
|
|
|
sha1 '8c891aabaec1c462ae06415002a2eb92d66bbc2f'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
stable do
|
|
|
|
patch do
|
|
|
|
url 'https://gist.githubusercontent.com/neoascetic/7487c936a3c5858ad762/raw/2e3ab944c43357d705e270a99a5cd7d1b7e033c1/1.8.1.diff'
|
|
|
|
sha1 '338a7e931d06ed2e25427d05273b80334f8c215a'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2014-05-30 23:03:52 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "ebd8a06138f243086d8006b8557bd75136905795" => :mavericks
|
|
|
|
sha1 "a8303b5a78b03fe4458b813a197bf82287048905" => :mountain_lion
|
|
|
|
sha1 "74bc9b4dbf82d815543b90e7e302a3d51dc78c4f" => :lion
|
|
|
|
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
|