From 1d819b4fb5dd0aa647ab99950197acfd4b6860ec Mon Sep 17 00:00:00 2001 From: jlam Date: Mon, 5 Jan 2004 06:32:40 +0000 Subject: It's more reliable to check instead of for the appropriate GL_VERSION_m_n definitions to divine the version of Mesa that's installed with XFree86. --- graphics/Mesa/version.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'graphics/Mesa/version.mk') 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; \ -- cgit v1.2.3