glut 8.2.1 → 8.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 932d2b61ee7d46989b50b20362f54fde098b4d6b
4
- data.tar.gz: 760cd16d960aab6f0aa1c7ff98861fe8b8b85161
3
+ metadata.gz: 835596a8a3aa730bfb6f632e41b41de56ffe0c46
4
+ data.tar.gz: 40c573a5de34974248e8eaef30fdeb525d99f9d7
5
5
  SHA512:
6
- metadata.gz: 2a834d945d25f40bc104714cb8e6499760f2a6582f5208564d1d74dd6d2c104822c22a1e50099114353c090fd1cf1aa51df7337b47b9648e2ebf7b77f0649397
7
- data.tar.gz: 02938de8170101261c6a779ca88246440f2371cd1bfd9cfdffcc5dc4bf13ce8d48c800cf8e58e1e749d3249076c7b0b6963ec6d962750c14b4f43f733460e060
6
+ metadata.gz: dcdcf1a9b7fc723fcd69863a5a8378f80b13598d2541bcabde597af69ff9fde4749140cb254752164a9f10ddc594145fa7a650b0a3ecd378c2f151db7b57ecc5
7
+ data.tar.gz: 4b563a31221b3db81d4cf311a7ef7b19ec0244b6c8cd25bf69193cd2acfb48a55c720906dccad8a070d08f53225e280953fffc7b2498cd2059dfcaa025bfc75a
data/Rakefile CHANGED
@@ -32,6 +32,8 @@ hoe = Hoe.spec 'glut' do
32
32
  self.extra_rdoc_files = FileList['*.rdoc']
33
33
 
34
34
  extra_dev_deps << ['rake-compiler', '~> 0.9', '>= 0.9.1']
35
+ extra_dev_deps << ['rake-compiler-dock', '~> 0.5.0']
36
+ extra_dev_deps << ['mini_portile2', '~> 2.1']
35
37
 
36
38
  self.spec_extras = {
37
39
  :extensions => %w[ext/glut/extconf.rb],
@@ -61,4 +63,12 @@ ENV['RUBY_CC_VERSION'].to_s.split(':').each do |ruby_version|
61
63
  end
62
64
  end
63
65
 
66
+ desc "Build windows binary gems per rake-compiler-dock."
67
+ task "gem:windows" do
68
+ require "rake_compiler_dock"
69
+ RakeCompilerDock.sh <<-EOT
70
+ rake cross native gem MAKE='nice make -j`nproc`' RUBY_CC_VERSION=2.3.0:2.2.2:2.1.6:2.0.0:1.9.3
71
+ EOT
72
+ end
73
+
64
74
  task :test => :compile
@@ -25,12 +25,16 @@
25
25
  #include <ruby.h>
26
26
  #include "extconf.h"
27
27
 
28
- #ifdef HAVE_GLUT_GLUT_H
29
- #include <GLUT/freeglut.h>
28
+ #ifdef HAVE_GL_FREEGLUT_H
29
+ #include <GL/freeglut.h>
30
30
  #endif
31
31
 
32
32
  #ifdef HAVE_GL_GLUT_H
33
- #include <GL/freeglut.h>
33
+ #include <GL/glut.h>
34
+ #endif
35
+
36
+ #ifdef HAVE_GLUT_GLUT_H
37
+ #include <GLUT/glut.h>
34
38
  #endif
35
39
 
36
40
  #ifndef GLUTCALLBACK
@@ -14,7 +14,9 @@ def have_framework(fw, &b)
14
14
  end unless respond_to? :have_framework
15
15
 
16
16
  if enable_config('win32-cross')
17
- require "mini_portile"
17
+ require "rubygems"
18
+ gem "mini_portile2", "~> 2.0"
19
+ require "mini_portile2"
18
20
 
19
21
  LIBFREEGLUT_VERSION = ENV['LIBFREEGLUT_VERSION'] || '2.8.1'
20
22
  LIBFREEGLUT_SOURCE_URI = "http://downloads.sourceforge.net/project/freeglut/freeglut/#{LIBFREEGLUT_VERSION}/freeglut-#{LIBFREEGLUT_VERSION}.tar.gz"
@@ -56,6 +58,7 @@ ok =
56
58
  (have_framework('OpenGL') && have_framework('GLUT') && have_framework('Cocoa'))
57
59
 
58
60
  ok &&=
61
+ have_header('GL/freeglut.h') ||
59
62
  have_header('GL/glut.h') ||
60
63
  have_header('GLUT/glut.h') # OS X
61
64
 
@@ -69,16 +69,32 @@ void Init_glut_ext() {
69
69
  rb_define_module_function(mGlut, "glutInitContextProfile", glut_InitContextProfile, 1);
70
70
 
71
71
  /* Context-related flags */
72
+ #ifdef GLUT_INIT_MAJOR_VERSION
72
73
  rb_define_const(mGlut, "GLUT_INIT_MAJOR_VERSION", INT2NUM(GLUT_INIT_MAJOR_VERSION));
74
+ #endif
75
+ #ifdef GLUT_INIT_MINOR_VERSION
73
76
  rb_define_const(mGlut, "GLUT_INIT_MINOR_VERSION", INT2NUM(GLUT_INIT_MINOR_VERSION));
77
+ #endif
78
+ #ifdef GLUT_INIT_FLAGS
74
79
  rb_define_const(mGlut, "GLUT_INIT_FLAGS", INT2NUM(GLUT_INIT_FLAGS));
80
+ #endif
81
+ #ifdef GLUT_INIT_PROFILE
75
82
  rb_define_const(mGlut, "GLUT_INIT_PROFILE", INT2NUM(GLUT_INIT_PROFILE));
83
+ #endif
76
84
 
77
85
  /* Flags for glutInitContextFlags */
86
+ #ifdef GLUT_FORWARD_COMPATIBLE
78
87
  rb_define_const(mGlut, "GLUT_FORWARD_COMPATIBLE", INT2NUM(GLUT_FORWARD_COMPATIBLE));
88
+ #endif
89
+ #ifdef GLUT_DEBUG
79
90
  rb_define_const(mGlut, "GLUT_DEBUG", INT2NUM(GLUT_DEBUG));
91
+ #endif
80
92
 
81
93
  /* Flags for glutInitContextProfile */
94
+ #ifdef GLUT_CORE_PROFILE
82
95
  rb_define_const(mGlut, "GLUT_CORE_PROFILE", INT2NUM(GLUT_CORE_PROFILE));
96
+ #endif
97
+ #ifdef GLUT_COMPATIBILITY_PROFILE
83
98
  rb_define_const(mGlut, "GLUT_COMPATIBILITY_PROFILE", INT2NUM(GLUT_COMPATIBILITY_PROFILE));
99
+ #endif
84
100
  }
@@ -25,5 +25,5 @@ module GLUT
25
25
  end
26
26
 
27
27
  module Glut
28
- VERSION = "8.2.1"
28
+ VERSION = "8.2.2"
29
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glut
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.2.1
4
+ version: 8.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Hodel
@@ -13,29 +13,8 @@ authors:
13
13
  - James Adam
14
14
  autorequire:
15
15
  bindir: bin
16
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uz73xC9YdGvGiuOX53LYobHAR4MWi2xxDlHI+ER8mRz0eY2FUuNu/Wj
35
- GrqF74zpLl7/KFdHC8VmzwZS18hvDjxeLVuVI2gIGnBInqnlqv05g/l4/1pISh5j
36
- dS4=
37
- -----END CERTIFICATE-----
38
- date: 2014-10-06 00:00:00.000000000 Z
16
+ cert_chain: []
17
+ date: 2016-01-21 00:00:00.000000000 Z
39
18
  dependencies:
40
19
  - !ruby/object:Gem::Dependency
41
20
  name: rdoc
@@ -71,20 +50,48 @@ dependencies:
71
50
  - - ">="
72
51
  - !ruby/object:Gem::Version
73
52
  version: 0.9.1
53
+ - !ruby/object:Gem::Dependency
54
+ name: rake-compiler-dock
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: 0.5.0
60
+ type: :development
61
+ prerelease: false
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: 0.5.0
67
+ - !ruby/object:Gem::Dependency
68
+ name: mini_portile2
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: '2.1'
74
+ type: :development
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: '2.1'
74
81
  - !ruby/object:Gem::Dependency
75
82
  name: hoe
76
83
  requirement: !ruby/object:Gem::Requirement
77
84
  requirements:
78
85
  - - "~>"
79
86
  - !ruby/object:Gem::Version
80
- version: '3.13'
87
+ version: '3.14'
81
88
  type: :development
82
89
  prerelease: false
83
90
  version_requirements: !ruby/object:Gem::Requirement
84
91
  requirements:
85
92
  - - "~>"
86
93
  - !ruby/object:Gem::Version
87
- version: '3.13'
94
+ version: '3.14'
88
95
  description: Glut bindings for OpenGL. To be used with the {opengl}[https://github.com/larskanis/opengl]
89
96
  gem.
90
97
  email:
@@ -141,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
148
  version: '0'
142
149
  requirements: []
143
150
  rubyforge_project:
144
- rubygems_version: 2.4.2
151
+ rubygems_version: 2.5.1
145
152
  signing_key:
146
153
  specification_version: 4
147
154
  summary: Glut bindings for OpenGL
@@ -1 +0,0 @@
1
- ���;��5+����(��fQ�fZ�
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
@@ -1 +0,0 @@
1
- �m0�'�e�n*�=�t����Xg��:�v�Q������5�� ��8)N����[��Sm����M8-C��Jڊ�����w���y{�T�$����5��H|�K���$�</[߸;�Qga�*!|�SpZ��l--�5p��s:��&'�/�H��<�I2��P_;����汁�-�.�al��N�LN�o����' ���*�!0�ڽvʁ�}��J c}��^�a���� �4R�iXI� E�^:�ê>{09rÀBj