summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authoratatat <atatat@pkgsrc.org>2003-10-05 21:52:42 +0000
committeratatat <atatat@pkgsrc.org>2003-10-05 21:52:42 +0000
commit893441e71189641b1975e2192ca8fe9681825dcd (patch)
treee9060779ca6cf11b0549387885f17605d9e6bbca /graphics
parenta769d0c4a72dadac42a42ec678f9dfc05cbd4084 (diff)
downloadpkgsrc-893441e71189641b1975e2192ca8fe9681825dcd.tar.gz
If ${_GL_GLEXT_H} doesn't exist, just set everything to NO. Otherwise
egrep emits error messages.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Mesa/version.mk6
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: