From 6192d11c26ca93335b9cf5670cbe10c752931d96 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Sun, 27 Nov 2016 10:11:57 -0800 Subject: [PATCH] pygtkglext: use OpenGL.framework's gl.h --- Formula/pygtkglext.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Formula/pygtkglext.rb b/Formula/pygtkglext.rb index 75711e699d..ce8af7e521 100644 --- a/Formula/pygtkglext.rb +++ b/Formula/pygtkglext.rb @@ -3,7 +3,7 @@ class Pygtkglext < Formula homepage "https://projects.gnome.org/gtkglext/download.html#pygtkglext" url "https://download.gnome.org/sources/pygtkglext/1.1/pygtkglext-1.1.0.tar.gz" sha256 "9712c04c60bf6ee7d05e0c6a6672040095c2ea803a1546af6dfde562dc0178a3" - revision 1 + revision 2 bottle do cellar :any @@ -19,6 +19,8 @@ class Pygtkglext < Formula depends_on "pygobject" def install + inreplace "gtk/gdkgl/gdkglext.override", "#include ", "#include " + ENV["PYGTK_CODEGEN"] = "#{Formula["pygobject"].opt_bin}/pygobject-codegen-2.0" system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"