homebrew-core/Formula/glew.rb

34 lines
962 B
Ruby
Raw Normal View History

2014-08-17 03:26:35 +00:00
require "formula"
2011-03-10 05:11:03 +00:00
class Glew < Formula
2014-08-17 03:26:35 +00:00
homepage "http://glew.sourceforge.net/"
url "https://downloads.sourceforge.net/project/glew/glew/1.11.0/glew-1.11.0.tgz"
sha1 "9bb5c87c055acd122a4956112bbb18ee72c38e5c"
2014-06-09 16:05:56 +00:00
bottle do
cellar :any
2014-10-22 01:39:09 +00:00
revision 2
sha1 "0f140259d5cb5525153b32102220432fefba1bee" => :yosemite
sha1 "ab31a942adaf43f20cea1fd39d1a04949615c2de" => :mavericks
sha1 "0ea8a4b4ec385c39eb52732ce8527f68410e35da" => :mountain_lion
2014-06-09 16:05:56 +00:00
end
option :universal
def install
2014-08-17 03:26:35 +00:00
# Makefile directory race condition on lion
ENV.deparallelize
if build.universal?
ENV.universal_binary
# Do not strip resulting binaries; https://sourceforge.net/p/glew/bugs/259/
ENV["STRIP"] = ""
end
2014-08-17 03:26:35 +00:00
inreplace "glew.pc.in", "Requires: @requireslib@", ""
system "make", "GLEW_PREFIX=#{prefix}", "GLEW_DEST=#{prefix}", "all"
system "make", "GLEW_PREFIX=#{prefix}", "GLEW_DEST=#{prefix}", "install.all"
end
end