summaryrefslogtreecommitdiff
path: root/graphics/Mesa/version.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-01-05 06:32:40 +0000
committerjlam <jlam@pkgsrc.org>2004-01-05 06:32:40 +0000
commit1d819b4fb5dd0aa647ab99950197acfd4b6860ec (patch)
tree7554505da284e668305490d1df0bc4c981663d89 /graphics/Mesa/version.mk
parent86d545bbceaacaf456a081e8d05317f91dd08b8d (diff)
downloadpkgsrc-1d819b4fb5dd0aa647ab99950197acfd4b6860ec.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/version.mk')
-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; \