source: trunk/dports/ruby/rb-opengl/files/patch-extconf.rb @ 21497

Last change on this file since 21497 was 21497, checked in by eridius@…, 13 years ago

Massive update to svn properties on files:
All patchfiles have svn:eol-style removed.
All files that are not in fact able to be executed have svn:executable removed
All binary files have svn:eol-style removed (and are probably corrupt)
All binary files have svn:mime-type set to application/octet-stream
All files which are not patchfiles or binary files have svn:eol-style set to native
All Portfiles have svn:eol-style set to native and svn:executable removed

File size: 1.3 KB
Line 
1--- extconf.rb  Sat Aug 16 23:04:32 2003
2+++ ../opengl-0.32c-patched/extconf.rb  Tue Jan 27 22:25:34 2004
3@@ -17,8 +17,6 @@
4 File.unlink("Makefile.ogl") if (FileTest.exist? "Makefile.ogl")
5 File.unlink("Makefile.glut") if (FileTest.exist? "Makefile.glut")
6 
7-header = nil
8-
9 if (/cygwin/ =~ PLATFORM)
10   $CFLAGS="-DWIN32"
11   gl_libname = "opengl32"
12@@ -33,21 +31,13 @@
13 else
14   $CPPFLAGS += " -I."
15 
16-  idir, ldir = dir_config("x11", "/usr/X11R6")
17-
18-  have_library("Xi", "XAllowDeviceEvents")
19-  have_library("Xext", "XMITMiscGetBugMode")
20-  have_library("Xmu", "XmuAddCloseDisplayHook")
21-  have_library("X11", "XOpenDisplay")
22   gl_libname = "GL"
23   glu_libname = "GLU"
24   glut_libname = "glut"
25 end
26-dir_config("opengl", idir, ldir)
27-dir_config("glut", idir, ldir)
28 
29 def have_ogl_library(lib, func = 'main')
30-  have_library(lib, func) || have_library("Mesa"+lib, func)
31+  true
32 end
33 
34 $objs = ["glu.o", "ogl.o", "rbogl.o"]
35@@ -63,12 +53,10 @@
36 end
37 
38 $objs = ["glut.o"]
39-if have_library(glut_libname)
40-    create_makefile("glut")
41-    File.rename("Makefile", "Makefile.glut")
42-    modules = "glut.#{CONFIG['DLEXT']} " + modules
43-    glut_flg = true
44-end
45+create_makefile("glut")
46+File.rename("Makefile", "Makefile.glut")
47+modules = "glut.#{CONFIG['DLEXT']} " + modules
48+glut_flg = true
49 
50 open("Makefile", "w") {|f|
51   v = $nmake ? '{$(srcdir)}' : ''
Note: See TracBrowser for help on using the repository browser.