glui 2.36.
Closes Homebrew/homebrew#12597. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
ecf48e2134
commit
ea7ca98555
1 changed files with 35 additions and 0 deletions
35
Formula/glui.rb
Normal file
35
Formula/glui.rb
Normal file
|
@ -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;
|
Loading…
Reference in a new issue