pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/Mesa It's more reliable to check <GL/gl.h> in...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5c8eef236e41
branches:  trunk
changeset: 465712:5c8eef236e41
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Mon Jan 05 06:32:40 2004 +0000

description:
It's more reliable to check <GL/gl.h> instead of <GL/glext.h> for the
appropriate GL_VERSION_m_n definitions to divine the version of Mesa that's
installed with XFree86.

diffstat:

 graphics/Mesa/version.mk |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 02e78d80634d -r 5c8eef236e41 graphics/Mesa/version.mk
--- a/graphics/Mesa/version.mk  Mon Jan 05 06:20:29 2004 +0000
+++ b/graphics/Mesa/version.mk  Mon Jan 05 06:32:40 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: version.mk,v 1.4 2004/01/05 06:16:38 jlam Exp $
+# $NetBSD: version.mk,v 1.5 2004/01/05 06:32:40 jlam Exp $
 #
 # This file computes the version number of the Mesa distributed with
 # XFree86 and stores it in ${_MESA_VERSION}.
@@ -12,14 +12,14 @@
 
 .include "../../mk/bsd.prefs.mk"
 
-_GL_GLEXT_H=           ${X11BASE}/include/GL/glext.h
+_GL_GL_H=              ${X11BASE}/include/GL/gl.h
 _MESA_GL_VERSIONS=     1.2 1.3 1.4
 .for _glvers_ in ${_MESA_GL_VERSIONS}
-.  if !exists(${_GL_GLEXT_H})
+.  if !exists(${_GL_GL_H})
 _MESA_GL_VERSION_${_glvers_}=  NO
 .  else
 _MESA_GL_VERSION_${_glvers_}!= \
-       if ${EGREP} -q "\#define[       ]*GL_VERSION_${_glvers_:S/./_/}[        ]*1" ${_GL_GLEXT_H}; then \
+       if ${EGREP} -q "\#define[       ]*GL_VERSION_${_glvers_:S/./_/}[        ]*1" ${_GL_GL_H}; then \
                ${ECHO} YES;                                            \
        else                                                            \
                ${ECHO} NO;                                             \



Home | Main Index | Thread Index | Old Index