diff options
author | atatat <atatat> | 2003-10-05 21:52:42 +0000 |
---|---|---|
committer | atatat <atatat> | 2003-10-05 21:52:42 +0000 |
commit | 2e3c5766e8f939260b1bd74d80d3ec0f15dcf443 (patch) | |
tree | e9060779ca6cf11b0549387885f17605d9e6bbca /graphics/Mesa | |
parent | 1f86bbd5ae74e2ba0c9e0d5d31e18658d7216aea (diff) | |
download | pkgsrc-2e3c5766e8f939260b1bd74d80d3ec0f15dcf443.tar.gz |
If ${_GL_GLEXT_H} doesn't exist, just set everything to NO. Otherwise
egrep emits error messages.
Diffstat (limited to 'graphics/Mesa')
-rw-r--r-- | graphics/Mesa/version.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/graphics/Mesa/version.mk b/graphics/Mesa/version.mk index 857989c0a78..e58baa0662a 100644 --- a/graphics/Mesa/version.mk +++ b/graphics/Mesa/version.mk @@ -1,4 +1,4 @@ -# $NetBSD: version.mk,v 1.2 2003/09/29 21:30:28 jschauma Exp $ +# $NetBSD: version.mk,v 1.3 2003/10/05 21:52:42 atatat Exp $ # # This file computes the version number of the Mesa distributed with # XFree86 and stores it in ${_MESA_VERSION}. @@ -15,12 +15,16 @@ MESA_VERSION= 5.0.2 _GL_GLEXT_H= ${X11BASE}/include/GL/glext.h _MESA_GL_VERSIONS= 1.2 1.3 1.4 .for _glvers_ in ${_MESA_GL_VERSIONS} +.if !exists(${_GL_GLEXT_H}) +_MESA_GL_VERSION_${_glvers_}= NO +.else _MESA_GL_VERSION_${_glvers_}!= \ if ${EGREP} -q "\#define[ ]*GL_VERSION_${_glvers_:S/./_/}[ ]*1" ${_GL_GLEXT_H}; then \ ${ECHO} YES; \ else \ ${ECHO} NO; \ fi +.endif .endfor # # According to the Mesa documentation, for stable releases: |