summaryrefslogtreecommitdiff
path: root/graphics/Mesa
diff options
context:
space:
mode:
authorjlam <jlam>2004-01-05 06:32:40 +0000
committerjlam <jlam>2004-01-05 06:32:40 +0000
commitf0943d53753d9bc0313b7bb3f78d76c6d2c87125 (patch)
tree7554505da284e668305490d1df0bc4c981663d89 /graphics/Mesa
parent28a67ef966f1c874d95e8655ed0329cf90be0e65 (diff)
downloadpkgsrc-f0943d53753d9bc0313b7bb3f78d76c6d2c87125.tar.gz
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 (limited to 'graphics/Mesa')
-rw-r--r--graphics/Mesa/version.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/graphics/Mesa/version.mk b/graphics/Mesa/version.mk
index 3450c844c38..35fa4e05449 100644
--- a/graphics/Mesa/version.mk
+++ b/graphics/Mesa/version.mk
@@ -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 @@ MESA_VERSION= 5.0.2
.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; \