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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
--- extconf.rb.orig Wed Feb 16 01:31:59 2000
+++ extconf.rb Fri Sep 8 12:36:47 2000
@@ -26,8 +26,8 @@
glu_libname = "glu32"
glut_libname = "glut"
else
- $CFLAGS="-I/usr/local/include -I. -I/usr/X11R6/include"
- $LDFLAGS="-L/usr/local/lib -L/usr/X11R6/lib"
+ dir_config("x11")
+ dir_config("ruby")
$libs = append_library($libs, "Xmu")
$libs = append_library($libs, "X11")
gl_libname = "GL"
@@ -47,13 +47,15 @@
}
}
File.unlink("Makefile")
- modules = modules + "opengl.#{CONFIG[\"DLEXT\"]}"
+ modules = modules + "opengl.#{CONFIG['DLEXT']}"
ogl_flg = true
else
p "can't create OpenGL module!"
exit 1
end
+$libs.sub!(/-L\. -l\$\(RUBY_INSTALL_NAME\) /, '')
+
$objs = ["glut.o"]
have_library("Xi", "XAllowDeviceEvents") &&
have_library("Xext", "XMITMiscGetBugMode") &&
@@ -67,7 +69,7 @@
}
}
File.unlink("Makefile")
- modules = "glut.#{CONFIG[\"DLEXT\"]} " + modules
+ modules = "glut.#{CONFIG['DLEXT']} " + modules
glut_flg = true
end
@@ -76,11 +78,11 @@
SHELL = /bin/sh
all: #{modules}
-opengl.#{CONFIG[\"DLEXT\"]}: rbogl.c ogl.c glu.c rbogl.h
+opengl.#{CONFIG['DLEXT']}: rbogl.c ogl.c glu.c rbogl.h
@echo Now Making opengl extend module
@$(MAKE) -f Makefile.ogl
-glut.#{CONFIG[\"DLEXT\"]}: glut.c
+glut.#{CONFIG['DLEXT']}: glut.c
@echo Now Making glut extend module
@$(MAKE) -f Makefile.glut
@@ -94,6 +96,10 @@
install: #{modules}
#{"\t@$(MAKE) -f Makefile.ogl install" if (ogl_flg)}
#{"\t@$(MAKE) -f Makefile.glut install" if (glut_flg)}
+
+site-install: #{modules}
+#{"\t@$(MAKE) -f Makefile.ogl site-install" if (ogl_flg)}
+#{"\t@$(MAKE) -f Makefile.glut site-install" if (glut_flg)}
MAKEFILE
}
|