2011-03-10 05:11:03 +00:00
|
|
|
class Glew < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "OpenGL Extension Wrangler Library"
|
2014-08-17 03:26:35 +00:00
|
|
|
homepage "http://glew.sourceforge.net/"
|
2015-05-09 21:18:02 +00:00
|
|
|
url "https://downloads.sourceforge.net/project/glew/glew/1.12.0/glew-1.12.0.tgz"
|
|
|
|
sha256 "af58103f4824b443e7fa4ed3af593b8edac6f3a7be3b30911edbc7344f48e4bf"
|
2014-06-09 16:05:56 +00:00
|
|
|
|
2015-05-12 09:11:39 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "4c8befbf2493fa5491e64cf6e6e0db3d8ca876ab31f742af6ad0f7a5548d8e7c" => :yosemite
|
|
|
|
sha256 "b5b97f390fd241729c5023941e34378bb3e3c2d64825370fcd5845e3d226ae0d" => :mavericks
|
|
|
|
sha256 "ad52c4946186b87fd290833e3b7c68287316f5dc8a2c96f662478a403697bb4f" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2014-10-30 02:11:59 +00:00
|
|
|
option :universal
|
|
|
|
|
2010-03-27 19:51:13 +00:00
|
|
|
def install
|
2014-08-17 03:26:35 +00:00
|
|
|
# Makefile directory race condition on lion
|
|
|
|
ENV.deparallelize
|
|
|
|
|
2014-10-30 18:29:11 +00:00
|
|
|
if build.universal?
|
|
|
|
ENV.universal_binary
|
|
|
|
|
|
|
|
# Do not strip resulting binaries; https://sourceforge.net/p/glew/bugs/259/
|
|
|
|
ENV["STRIP"] = ""
|
|
|
|
end
|
2014-10-30 02:11:59 +00:00
|
|
|
|
2014-08-17 03:26:35 +00:00
|
|
|
inreplace "glew.pc.in", "Requires: @requireslib@", ""
|
2014-09-02 14:26:06 +00:00
|
|
|
system "make", "GLEW_PREFIX=#{prefix}", "GLEW_DEST=#{prefix}", "all"
|
|
|
|
system "make", "GLEW_PREFIX=#{prefix}", "GLEW_DEST=#{prefix}", "install.all"
|
2010-03-27 19:51:13 +00:00
|
|
|
end
|
2015-05-09 21:18:02 +00:00
|
|
|
|
|
|
|
test do
|
2015-05-09 21:29:18 +00:00
|
|
|
assert_match /#{version}/, shell_output("#{bin}/glewinfo")
|
2015-05-09 21:18:02 +00:00
|
|
|
end
|
2010-03-27 19:51:13 +00:00
|
|
|
end
|