From ea7ca985556bb9f68d00651869b198eadb071144 Mon Sep 17 00:00:00 2001 From: Jamie Snape Date: Mon, 4 Jun 2012 23:39:40 -0400 Subject: [PATCH] glui 2.36. Closes Homebrew/homebrew#12597. Signed-off-by: Adam Vandenberg --- Formula/glui.rb | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Formula/glui.rb diff --git a/Formula/glui.rb b/Formula/glui.rb new file mode 100644 index 0000000000..f4166f305e --- /dev/null +++ b/Formula/glui.rb @@ -0,0 +1,35 @@ +require 'formula' + +class Glui < Formula + homepage 'http://glui.sourceforge.net/' + url 'http://downloads.sourceforge.net/project/glui/Source/2.36/glui-2.36.tgz' + sha256 'c1ef5e83cf338e225ce849f948170cd681c99661a5c2158b4074515926702787' + + # Fix compiler warnings in glui.h. Reported upstream: + # http://sourceforge.net/p/glui/patches/12/ + def patches; DATA; end + + def install + cd 'src' do + system 'make setup' + system 'make lib/libglui.a' + lib.install 'lib/libglui.a' + include.install 'include/GL' + end + end +end + +__END__ +diff --git a/src/include/GL/glui.h b/src/include/GL/glui.h +index 01a5c75..5784e29 100644 +--- a/src/include/GL/glui.h ++++ b/src/include/GL/glui.h +@@ -941,7 +941,7 @@ public: + spacebar_mouse_click = true; /* Does spacebar simulate a mouse click? */ + live_type = GLUI_LIVE_NONE; + text = ""; +- last_live_text == ""; ++ last_live_text = ""; + live_inited = false; + collapsible = false; + is_open = true;