From 21126e398f8c5b6dd077b5656f570e9928b6d763 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Sun, 27 Nov 2016 10:16:27 -0800 Subject: [PATCH] gabedit: assume Quartz GTK, not XQuartz GTK --- Formula/gabedit.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Formula/gabedit.rb b/Formula/gabedit.rb index f065010b7f..feda9b31c6 100644 --- a/Formula/gabedit.rb +++ b/Formula/gabedit.rb @@ -4,7 +4,7 @@ class Gabedit < Formula url "https://downloads.sourceforge.net/project/gabedit/gabedit/Gabedit248/GabeditSrc248.tar.gz" version "2.4.8" sha256 "38d6437a18280387b46fd136f2201a73b33e45abde13fa802c64806b6b64e4d3" - revision 1 + revision 2 bottle do cellar :any @@ -19,6 +19,15 @@ class Gabedit < Formula depends_on "gtkglext" def install + opengl_headers = MacOS.sdk_path/"System/Library/Frameworks/OpenGL.framework/Headers" + (buildpath/"brew_include").install_symlink opengl_headers => "GL" + + inreplace "CONFIG" do |s| + s.gsub! "-lX11", "" + s.gsub! "-lpangox-1.0", "" + s.gsub! "GTKCFLAGS =", "GTKCFLAGS = -I#{buildpath}/brew_include" + end + args = [] args << "OMPLIB=" << "OMPCFLAGS=" if ENV.compiler == :clang system "make", *args