summaryrefslogtreecommitdiff
path: root/graphics/MesaLib/buildlink2.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-11-20 22:13:21 +0000
committerjlam <jlam@pkgsrc.org>2002-11-20 22:13:21 +0000
commit9377a2aeabafeafde3f781576b83104d6c992d54 (patch)
tree325fd76bed1623994564db2a38a1cb0f9329f2a2 /graphics/MesaLib/buildlink2.mk
parentd2a9be46aec50fbe033122f9d97a04412f9c1363 (diff)
downloadpkgsrc-9377a2aeabafeafde3f781576b83104d6c992d54.tar.gz
Compute version of built-in Mesa without using "glxinfo", which is broken
when the capabilities of the running X11 server differ from the X11 server on the system for which the package is meant. We now try to guess the Mesa version number based on which OpenGL specification is implemented. Separate out the logic into its own file, Mesa/version.mk, and use it in MesaLib's and glu's buildlink2.mk files. Note that Mesa/version.mk should only be used by the Mesa packages and is _not_ for general use.
Diffstat (limited to 'graphics/MesaLib/buildlink2.mk')
-rw-r--r--graphics/MesaLib/buildlink2.mk12
1 files changed, 3 insertions, 9 deletions
diff --git a/graphics/MesaLib/buildlink2.mk b/graphics/MesaLib/buildlink2.mk
index a8956eb506e..5c3b63669fe 100644
--- a/graphics/MesaLib/buildlink2.mk
+++ b/graphics/MesaLib/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.6 2002/11/19 09:19:36 tron Exp $
+# $NetBSD: buildlink2.mk,v 1.7 2002/11/20 22:13:22 jlam Exp $
.if !defined(MESALIB_BUILDLINK2_MK)
MESALIB_BUILDLINK2_MK= # defined
@@ -34,14 +34,8 @@ _NEED_MESALIB= YES
# BUILDLINK_DEPENDS.MesaLib to see if we need to install the pkgsrc
# Mesa or if the built-in one is sufficient.
#
-. if exists(${X11BASE}/bin/glxinfo) && defined(DISPLAY)
-_MESALIB_VERSION!= \
- ${X11BASE}/bin/glxinfo | \
- ${SED} -n "/OpenGL version string/s/.*Mesa *//p"
-. else
-_MESALIB_VERSION?= 3.4
-. endif
-_MESALIB_PKG= MesaLib-${_MESALIB_VERSION}
+. include "../../graphics/Mesa/version.mk"
+_MESALIB_PKG= MesaLib-${_MESA_VERSION}
_MESALIB_DEPENDS= ${BUILDLINK_DEPENDS.MesaLib}
_NEED_MESALIB!= \
if ${PKG_ADMIN} pmatch '${_MESALIB_DEPENDS}' ${_MESALIB_PKG}; then \