File: 001-added_rubyver_cflag.patch

package info (click to toggle)
libopengl-ruby 0.60.1-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,988 kB
  • ctags: 5,078
  • sloc: ansic: 24,677; ruby: 10,858; makefile: 5
file content (32 lines) | stat: -rw-r--r-- 1,021 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Description: Upstream changes introduced in version 0.60.1-1
 This patch has been created by quilt.
--- libopengl-ruby-0.60.1.orig/ext/glut/extconf.rb
+++ libopengl-ruby-0.60.1/ext/glut/extconf.rb
@@ -1,5 +1,7 @@
 require "mkmf"
 
+RUBYVER = " -DRUBY_VERSION=" + RUBY_VERSION.split(".").join
+$CFLAGS += RUBYVER
 dir_config('x11','/usr/X11R6')
 have_library("GL", "glVertex3f")
 have_library("GLU", "gluOrtho2D")
--- libopengl-ruby-0.60.1.orig/ext/glu/extconf.rb
+++ libopengl-ruby-0.60.1/ext/glu/extconf.rb
@@ -1,5 +1,7 @@
 require "mkmf"
 
+RUBYVER = " -DRUBY_VERSION=" + RUBY_VERSION.split(".").join
+$CFLAGS += RUBYVER
 dir_config('x11','/usr/X11R6')
 have_library("GL", "glVertex3f")
 have_library("GLU", "gluOrtho2D")
--- libopengl-ruby-0.60.1.orig/ext/gl/extconf.rb
+++ libopengl-ruby-0.60.1/ext/gl/extconf.rb
@@ -1,5 +1,6 @@
 require "mkmf"
-
+RUBYVER = " -DRUBY_VERSION=" + RUBY_VERSION.split(".").join
+$CFLAGS += RUBYVER
 dir_config('x11','/usr/X11R6')
 have_library("GL", "glVertex3f")
 create_makefile("gl")