2015-10-23 19:02:01 +00:00
|
|
|
diff --git a/Makefile.PL b/Makefile.PL
|
2017-06-03 17:32:37 +00:00
|
|
|
index d32205d..2a0ac3e 100755
|
2015-10-23 19:02:01 +00:00
|
|
|
--- a/Makefile.PL
|
|
|
|
+++ b/Makefile.PL
|
2017-06-03 17:32:37 +00:00
|
|
|
@@ -601,9 +601,9 @@ my $build_config =
|
2015-10-23 19:02:01 +00:00
|
|
|
{
|
|
|
|
FILES =>
|
|
|
|
"Config.pm ".
|
|
|
|
- "utils/glversion.txt ".
|
|
|
|
- "utils/glversion$Config{exe_ext} ".
|
|
|
|
- "utils/glversion$Config{obj_ext}"
|
|
|
|
+ "utils/glversion.txt "
|
|
|
|
+ #"utils/glversion$Config{exe_ext} ".
|
|
|
|
+ #"utils/glversion$Config{obj_ext}"
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2017-06-03 17:32:37 +00:00
|
|
|
@@ -824,6 +824,7 @@ sub get_extensions
|
2015-10-23 19:02:01 +00:00
|
|
|
print "GLUT not found\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
+=cut
|
|
|
|
# Platform-specific makefiles for glversion
|
|
|
|
my $make_ver;
|
|
|
|
if ($IS_STRAWBERRY)
|
2017-06-03 17:32:37 +00:00
|
|
|
@@ -882,6 +883,9 @@ sub get_extensions
|
|
|
|
die "get_extensions: no extensions found in $glv_file\n" if !keys %$gldata;
|
|
|
|
|
|
|
|
print "This looks like OpenGL Version: $gldata->{VERSION}\n";
|
2015-10-23 19:02:01 +00:00
|
|
|
+=cut
|
|
|
|
+ use Config;
|
|
|
|
+ my $gldata = { };
|
|
|
|
|
|
|
|
# Parse glext_procs.h file
|
2017-06-03 17:32:37 +00:00
|
|
|
open GLEXT, "glext_procs.h" or die "get_extensions: could not open glext_procs.h: $!\n";
|
|
|
|
@@ -900,11 +904,12 @@ sub get_extensions
|
2015-10-23 19:02:01 +00:00
|
|
|
|
|
|
|
# Create gl_exclude.h
|
|
|
|
die "Unable to write to $exc_file\n" if (!open(GLEXC,">$exc_file"));
|
|
|
|
+=cut
|
|
|
|
print GLEXC "// OpenGL Extension Exclusions - may be modified before building.\n";
|
|
|
|
print GLEXC "//\n";
|
|
|
|
print GLEXC "// Generated for ".$gldata->{VENDOR}.", ".$gldata->{RENDERER}."\n";
|
|
|
|
print GLEXC "// OpenGL v".$gldata->{VERSION}.", using ";
|
2017-06-03 17:32:37 +00:00
|
|
|
-
|
2015-10-23 19:02:01 +00:00
|
|
|
+=cut
|
|
|
|
# Fix GLUT flags based on results
|
2017-06-03 17:32:37 +00:00
|
|
|
if ($gldata->{FREEGLUT})
|
|
|
|
{
|