blob: f4db9e8946c17d083e31a275c834d190ce5c025c (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 | require "formula"
class Glew < Formula
  homepage "http://glew.sourceforge.net/"
  url "https://downloads.sourceforge.net/project/glew/glew/1.11.0/glew-1.11.0.tgz"
  sha1 "9bb5c87c055acd122a4956112bbb18ee72c38e5c"
  bottle do
    cellar :any
    revision 2
    sha1 "0f140259d5cb5525153b32102220432fefba1bee" => :yosemite
    sha1 "ab31a942adaf43f20cea1fd39d1a04949615c2de" => :mavericks
    sha1 "0ea8a4b4ec385c39eb52732ce8527f68410e35da" => :mountain_lion
  end
  option :universal
  def install
    # 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
    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
 |