homebrew-core/Formula/irrlicht.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

42 lines
1.5 KiB
Ruby

class Irrlicht < Formula
desc "Realtime 3D engine"
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"
# 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"
sha256 "78f06879c48ad8d87a2790e75f76df4027ae9ab4f89e5d52bedf3778a1d35d77"
end
end
bottle do
cellar :any
revision 1
sha1 "10609d1af910d5c1efb9de13b52b25fdabd077b8" => :yosemite
sha1 "631246df8cf27ce69f951710737fd0b10b56ca0b" => :mavericks
sha1 "0684b7c6e105988e15609ed52331608e5d1d40b8" => :mountain_lion
end
depends_on :xcode => :build
def install
xcodebuild "-project", "source/Irrlicht/MacOSX/MacOSX.xcodeproj",
"-configuration", "Release",
"-target", "libIrrlicht.a",
"SYMROOT=build",
"-sdk", "macosx#{MacOS.version}"
lib.install "source/Irrlicht/MacOSX/build/Release/libIrrlicht.a"
include.install "include" => "irrlicht"
end
end