homebrew-core/Formula/glew.rb
Jack Nagel 6b31b399c8 glew: remove glu requirement from pc file
glew adds "Requires: glu" to glew.pc, even though on fresh OS X installs
there will not be a glu.pc anywhere on the system (but the library
itself is in the system's OpenGL framework).

The requirement will actually be satisfied if XQuartz is installed, but
it's only a coincidence. So I'm removing this, which should allow gource
to build on systems without XQuartz. *shrug*

Fixes Homebrew/homebrew#22025.
2013-09-04 11:09:13 -05:00

13 lines
391 B
Ruby

require 'formula'
class Glew < Formula
homepage 'http://glew.sourceforge.net/'
url 'http://downloads.sourceforge.net/project/glew/glew/1.10.0/glew-1.10.0.tgz'
sha1 'f41b45ca4a630ad1d00b8b87c5f493781a380300'
def install
inreplace "glew.pc.in", "Requires: glu", ""
system "make", "GLEW_DEST=#{prefix}", "all"
system "make", "GLEW_DEST=#{prefix}", "install.all"
end
end