ruby-opengl2 0.60.4 → 0.60.5

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -60,7 +60,7 @@ task :test_all => [:test]
60
60
  # common specification for source and binary gems
61
61
  spec = Gem::Specification.new do |s|
62
62
  s.name = "ruby-opengl2"
63
- s.version = "0.60.4"
63
+ s.version = "0.60.5"
64
64
  s.authors = [ "Alain Hoang", "Jan Dvorak", "Minh Thu Vo", "James Adam", "Paolo Bosetti" ]
65
65
  s.homepage = "http://github.com/pbosetti/ruby-opengl"
66
66
  s.email = "p4010@me.com"
@@ -70,7 +70,9 @@ spec = Gem::Specification.new do |s|
70
70
  s.description = "This is a modernization of the glorious but unmaintained ruby-opengl version, aimed at making it compatible with ruby 1.9.x series. At the moment, it successfully compiles on OS X Lion and Debian 6.0.3"
71
71
  s.require_path = "lib"
72
72
  s.has_rdoc = false
73
- s.files = FileList["{lib,ext,examples,test}/**/*"]
73
+ s.files = FileList.new("{lib,ext,examples,test}/**/*") do |fl|
74
+ fl.exclude(/Rakefile/)
75
+ end
74
76
  s.extensions = ['Rakefile']
75
77
 
76
78
  if s.respond_to? :specification_version then
@@ -361,7 +361,9 @@ VALUE obj,arg1,arg2; \
361
361
 
362
362
  GETVERTEXATTRIB_FUNC(GetVertexAttribdv,GLdouble)
363
363
  GETVERTEXATTRIB_FUNC(GetVertexAttribfv,GLfloat)
364
- //GETVERTEXATTRIB_FUNC(GetVertexAttribiv,GLint,cond_GLBOOL2RUBY)
364
+ #if 0
365
+ GETVERTEXATTRIB_FUNC(GetVertexAttribiv,GLint,cond_GLBOOL2RUBY)
366
+ #endif
365
367
  #undef GETVERTEXATTRIB_FUNC
366
368
 
367
369
  static void (APIENTRY * fptr_glGetVertexAttribiv)(GLuint,GLenum,GLint *);
Binary file
@@ -326,7 +326,9 @@ VALUE obj,arg1,arg2; \
326
326
 
327
327
  GETVERTEXATTRIB_FUNC(GetVertexAttribdvARB,GLdouble,"GL_ARB_vertex_program")
328
328
  GETVERTEXATTRIB_FUNC(GetVertexAttribfvARB,GLfloat,"GL_ARB_vertex_program")
329
- //GETVERTEXATTRIB_FUNC(GetVertexAttribivARB,GLint,INT2NUM,"GL_ARB_vertex_program")
329
+ #if 0
330
+ GETVERTEXATTRIB_FUNC(GetVertexAttribivARB,GLint,INT2NUM,"GL_ARB_vertex_program")
331
+ #endif
330
332
  #undef GETVERTEXATTRIB_FUNC
331
333
 
332
334
  static void (APIENTRY * fptr_glGetVertexAttribivARB)(GLuint,GLenum,GLint *);
Binary file
Binary file
@@ -1,2 +1,3 @@
1
1
  # Logfile created on 2012-08-03 16:02:49 +0200 by logger.rb/31641
2
2
  I, [2012-08-03T16:02:49.356924 #22495] INFO -- : Rakefile written
3
+ I, [2012-08-21T11:15:29.294819 #19765] INFO -- : Rakefile written
@@ -22,7 +22,7 @@ RUBYVER = " -DRUBY_VERSION=" + RUBY_VERSION.split(".").join
22
22
  Mkrf::Generator.new( 'gl' ) do |g|
23
23
  puts "*" * 10
24
24
  #Config::CONFIG["CC"] = `which gcc`.chomp
25
- p Config::CONFIG
25
+ p RbConfig::CONFIG
26
26
  puts "*" * 10
27
27
  case RUBY_PLATFORM
28
28
  when /darwin/
Binary file
@@ -409,8 +409,10 @@ VALUE obj,arg1;
409
409
  int menu;
410
410
  menu = (int)NUM2INT(arg1);
411
411
  glutDestroyMenu(menu);
412
- //rb_hash_aset(g_menucallback, menu, Qnil);
413
- //rb_hash_aset(g_menuargs, menu, Qnil);
412
+ #if 0
413
+ rb_hash_aset(g_menucallback, menu, Qnil);
414
+ rb_hash_aset(g_menuargs, menu, Qnil);
415
+ #endif
414
416
  return Qnil;
415
417
  }
416
418
 
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-opengl2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.60.4
4
+ version: 0.60.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2012-08-06 00:00:00.000000000 Z
16
+ date: 2012-08-21 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: mkrf
@@ -86,7 +86,6 @@ files:
86
86
  - ext/gl/gl.o
87
87
  - ext/gl/mkrf.log
88
88
  - ext/gl/mkrf_conf.rb
89
- - ext/gl/Rakefile
90
89
  - ext/glu/glu-enums.c
91
90
  - ext/glu/glu-enums.o
92
91
  - ext/glu/glu.bundle
@@ -94,13 +93,11 @@ files:
94
93
  - ext/glu/glu.o
95
94
  - ext/glu/mkrf.log
96
95
  - ext/glu/mkrf_conf.rb
97
- - ext/glu/Rakefile
98
96
  - ext/glut/glut.bundle
99
97
  - ext/glut/glut.c
100
98
  - ext/glut/glut.o
101
99
  - ext/glut/mkrf.log
102
100
  - ext/glut/mkrf_conf.rb
103
- - ext/glut/Rakefile
104
101
  - examples/misc/anisotropic.rb
105
102
  - examples/misc/fbo_test.rb
106
103
  - examples/misc/font-glut.rb
@@ -1,43 +0,0 @@
1
- # Generated by mkrf
2
- require 'rake/clean'
3
-
4
- CLEAN.include('*.o')
5
- CLOBBER.include('gl.bundle', 'mkrf.log')
6
-
7
- SRC = FileList['*.c']
8
- OBJ = SRC.ext('o')
9
- CC = 'clang'
10
-
11
- ADDITIONAL_OBJECTS = ''
12
-
13
- LDSHARED = "clang -dynamic -bundle -framework OpenGL"
14
-
15
- LIBPATH = "-L/Users/p4010/.rvm/rubies/ruby-1.9.3-p194/lib "
16
-
17
- INCLUDES = "-I/Users/p4010/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1 -I/Users/p4010/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1/x86_64-darwin12.0.0 -I/Users/p4010/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin12.0.0 -I/Users/p4010/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1 -I."
18
-
19
- LIBS = "-lpthread -ldl -lobjc"
20
-
21
- CFLAGS = "-fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -fno-common -pipe -DRUBY_VERSION=193 "
22
-
23
- RUBYARCHDIR = "#{ENV["RUBYARCHDIR"]}"
24
- LIBRUBYARG_SHARED = "-lruby.1.9.1"
25
-
26
- task :default => ['gl.bundle']
27
-
28
- rule '.o' => '.c' do |t|
29
- sh "#{CC} #{CFLAGS} #{INCLUDES} -c #{t.source}"
30
- end
31
-
32
- desc "Build this extension"
33
- file 'gl.bundle' => OBJ do
34
- sh "#{LDSHARED} #{LIBPATH} -o gl.bundle #{OBJ} #{ADDITIONAL_OBJECTS} #{LIBS} #{LIBRUBYARG_SHARED}"
35
- end
36
-
37
- desc "Install this extension"
38
- task :install => 'gl.bundle' do
39
- makedirs "#{RUBYARCHDIR}"
40
- install "gl.bundle", "#{RUBYARCHDIR}"
41
- end
42
-
43
-
@@ -1,43 +0,0 @@
1
- # Generated by mkrf
2
- require 'rake/clean'
3
-
4
- CLEAN.include('*.o')
5
- CLOBBER.include('glu.bundle', 'mkrf.log')
6
-
7
- SRC = FileList['*.c']
8
- OBJ = SRC.ext('o')
9
- CC = 'clang'
10
-
11
- ADDITIONAL_OBJECTS = ''
12
-
13
- LDSHARED = "clang -dynamic -bundle -framework OpenGL"
14
-
15
- LIBPATH = "-L/Users/p4010/.rvm/rubies/ruby-1.9.3-p194/lib "
16
-
17
- INCLUDES = "-I/Users/p4010/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1 -I/Users/p4010/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1/x86_64-darwin12.0.0 -I/Users/p4010/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin12.0.0 -I/Users/p4010/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1 -I."
18
-
19
- LIBS = "-lpthread -ldl -lobjc"
20
-
21
- CFLAGS = "-fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -fno-common -pipe -DRUBY_VERSION=193 "
22
-
23
- RUBYARCHDIR = "#{ENV["RUBYARCHDIR"]}"
24
- LIBRUBYARG_SHARED = "-lruby.1.9.1"
25
-
26
- task :default => ['glu.bundle']
27
-
28
- rule '.o' => '.c' do |t|
29
- sh "#{CC} #{CFLAGS} #{INCLUDES} -c #{t.source}"
30
- end
31
-
32
- desc "Build this extension"
33
- file 'glu.bundle' => OBJ do
34
- sh "#{LDSHARED} #{LIBPATH} -o glu.bundle #{OBJ} #{ADDITIONAL_OBJECTS} #{LIBS} #{LIBRUBYARG_SHARED}"
35
- end
36
-
37
- desc "Install this extension"
38
- task :install => 'glu.bundle' do
39
- makedirs "#{RUBYARCHDIR}"
40
- install "glu.bundle", "#{RUBYARCHDIR}"
41
- end
42
-
43
-
@@ -1,43 +0,0 @@
1
- # Generated by mkrf
2
- require 'rake/clean'
3
-
4
- CLEAN.include('*.o')
5
- CLOBBER.include('glut.bundle', 'mkrf.log')
6
-
7
- SRC = FileList['*.c']
8
- OBJ = SRC.ext('o')
9
- CC = 'clang'
10
-
11
- ADDITIONAL_OBJECTS = ''
12
-
13
- LDSHARED = "clang -dynamic -bundle -framework GLUT -framework OpenGL -framework Cocoa"
14
-
15
- LIBPATH = "-L/Users/p4010/.rvm/rubies/ruby-1.9.3-p194/lib "
16
-
17
- INCLUDES = "-I/Users/p4010/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1 -I/Users/p4010/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1/x86_64-darwin12.0.0 -I/Users/p4010/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin12.0.0 -I/Users/p4010/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1 -I."
18
-
19
- LIBS = "-lpthread -ldl -lobjc"
20
-
21
- CFLAGS = "-fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -fno-common -pipe -DRUBY_VERSION=193 "
22
-
23
- RUBYARCHDIR = "#{ENV["RUBYARCHDIR"]}"
24
- LIBRUBYARG_SHARED = "-lruby.1.9.1"
25
-
26
- task :default => ['glut.bundle']
27
-
28
- rule '.o' => '.c' do |t|
29
- sh "#{CC} #{CFLAGS} #{INCLUDES} -c #{t.source}"
30
- end
31
-
32
- desc "Build this extension"
33
- file 'glut.bundle' => OBJ do
34
- sh "#{LDSHARED} #{LIBPATH} -o glut.bundle #{OBJ} #{ADDITIONAL_OBJECTS} #{LIBS} #{LIBRUBYARG_SHARED}"
35
- end
36
-
37
- desc "Install this extension"
38
- task :install => 'glut.bundle' do
39
- makedirs "#{RUBYARCHDIR}"
40
- install "glut.bundle", "#{RUBYARCHDIR}"
41
- end
42
-
43
-