diff options
author | tron <tron@pkgsrc.org> | 2002-11-19 09:19:36 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2002-11-19 09:19:36 +0000 |
commit | aaa4491f8634938648f2551614540a02bee4829f (patch) | |
tree | 11d434421adfe827896d11b9927c5dbb35e5ebcf /graphics/glu | |
parent | e0bdc2f6022c61552e9d4626b2455070ec64890c (diff) | |
download | pkgsrc-aaa4491f8634938648f2551614540a02bee4829f.tar.gz |
Don't try to run "glxinfo" outside a X11 session which would produce lots
of error message.
Diffstat (limited to 'graphics/glu')
-rw-r--r-- | graphics/glu/buildlink2.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/glu/buildlink2.mk b/graphics/glu/buildlink2.mk index 3fb817cb42a..58826b0bf5c 100644 --- a/graphics/glu/buildlink2.mk +++ b/graphics/glu/buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink2.mk,v 1.5 2002/11/18 07:49:25 jlam Exp $ +# $NetBSD: buildlink2.mk,v 1.6 2002/11/19 09:19:37 tron Exp $ .if !defined(GLU_BUILDLINK2_MK) GLU_BUILDLINK2_MK= # defined @@ -34,7 +34,7 @@ _NEED_GLU= YES # BUILDLINK_DEPENDS.glu to see if we need to install the pkgsrc Mesa/GLU # or if the built-in one is sufficient. # -. if exists(${X11BASE}/bin/glxinfo) +. if exists(${X11BASE}/bin/glxinfo) && defined(DISPLAY) _GLU_VERSION!= \ ${X11BASE}/bin/glxinfo | \ ${SED} -n "/OpenGL version string/s/.*Mesa *//p" |