diff options
Diffstat (limited to 'graphics/p5-OpenGL/files/patch-Makefile.PL')
-rw-r--r-- | graphics/p5-OpenGL/files/patch-Makefile.PL | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/graphics/p5-OpenGL/files/patch-Makefile.PL b/graphics/p5-OpenGL/files/patch-Makefile.PL index acfd539ac55c..aed25dcb208a 100644 --- a/graphics/p5-OpenGL/files/patch-Makefile.PL +++ b/graphics/p5-OpenGL/files/patch-Makefile.PL @@ -1,5 +1,5 @@ ---- Makefile.PL.orig Wed Jun 20 16:39:13 2001 -+++ Makefile.PL Thu Oct 10 22:51:15 2002 +--- Makefile.PL.orig Wed Jun 20 08:39:13 2001 ++++ Makefile.PL Tue Dec 14 18:36:26 2004 @@ -17,7 +17,7 @@ $pm_lib = (grep /^X11$/, @ARGV) ? '' : '-lopengl'; @@ -9,3 +9,15 @@ @libs = findlib->ext("$libdirs $libs"); +@@ -75,6 +75,11 @@ + + $DEFS .= ' -DOS2_GL_DISABLE_MISSING_EXT -DAPIENTRY= -D__PM__' + if $^O eq 'os2' and not $x; ++ ++# Check for GL extensions header (glext.h) ++$glextout = `echo '\#include <GL/glext.h>' | $Config{cpprun} $includes $Config{cppflags} $Config{cppminus} >/dev/null 2>&1`; ++$no_glext = $?; ++$DEFS .= " -DHAVE_GLEXT_H" unless $no_glext; + + # Should be deduced automatically, but how?! + $no_lgcc = (grep /^NO_LGCC$/, @ARGV); |