require 'formula' class Glew < Formula homepage 'http://glew.sourceforge.net/' url 'https://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