summaryrefslogtreecommitdiff
path: root/graphics/MesaLib/builtin.mk
diff options
context:
space:
mode:
authorjlam <jlam>2004-03-15 17:38:10 +0000
committerjlam <jlam>2004-03-15 17:38:10 +0000
commitf62a4c2131483cb536a368b073e6d5dcf88a36ab (patch)
tree8c279b1ed5a6f869fd2a81904aa52940890e8433 /graphics/MesaLib/builtin.mk
parent7a8ace5366a38800b589d85b0173e8b64556f98f (diff)
downloadpkgsrc-f62a4c2131483cb536a368b073e6d5dcf88a36ab.tar.gz
Move the definitions of MESA_REQD and _MESA_REQD to Mesa/version.mk and
modify {MesaLib,glu}/{buildlink3,builtin}.mk accordingly. Also add the dependency on {MesaLib,glu}>=${_MESA_REQD} to the builtin.mk files so that we correctly check the built-in Mesa version against the dependency requirements.
Diffstat (limited to 'graphics/MesaLib/builtin.mk')
-rw-r--r--graphics/MesaLib/builtin.mk38
1 files changed, 6 insertions, 32 deletions
diff --git a/graphics/MesaLib/builtin.mk b/graphics/MesaLib/builtin.mk
index 745d2a03b9c..d6e52a3cc84 100644
--- a/graphics/MesaLib/builtin.mk
+++ b/graphics/MesaLib/builtin.mk
@@ -1,33 +1,10 @@
-# $NetBSD: builtin.mk,v 1.2 2004/03/15 16:48:18 jlam Exp $
+# $NetBSD: builtin.mk,v 1.3 2004/03/15 17:38:10 jlam Exp $
_GL_GLX_H= ${X11BASE}/include/GL/glx.h
_X11_TMPL= ${X11BASE}/lib/X11/config/X11.tmpl
-# Distill the MESA_REQD list into a single _MESA_REQD value that is the
-# highest version of MESA required.
-#
-_MESA_STRICTEST_REQD?= none
-. for _version_ in ${MESA_REQD}
-. for _pkg_ in MesaLib-${_version_}
-. if ${_MESA_STRICTEST_REQD} == "none"
-_MESA_PKG_SATISFIES_DEP= yes
-. for _vers_ in ${MESA_REQD}
-. if !empty(_MESA_PKG_SATISFIES_DEP:M[yY][eE][sS])
-_MESA_PKG_SATISFIES_DEP!= \
- if ${PKG_ADMIN} pmatch 'MesaLib>=${_vers_}' ${_pkg_}; then \
- ${ECHO} "yes"; \
- else \
- ${ECHO} "no"; \
- fi
-. endif
-. endfor
-. if !empty(_MESA_PKG_SATISFIES_DEP:M[yY][eE][sS])
-_MESA_STRICTEST_REQD= ${_version_}
-. endif
-. endif
-. endfor
-. endfor
-_MESA_REQD= ${_MESA_STRICTEST_REQD}
+.include "../../graphics/Mesa/version.mk"
+BUILDLINK_DEPENDS.MesaLib+= MesaLib>=${_MESA_REQD}
.if !defined(IS_BUILTIN.MesaLib)
IS_BUILTIN.MesaLib= no
@@ -40,12 +17,9 @@ IS_BUILTIN.MesaLib!= \
fi
. if !empty(IS_BUILTIN.MesaLib:M[yY][eE][sS])
#
-# Create an appropriate package name for the built-in Mesa/GLX distributed
-# with the system. This package name can be used to check against
-# BUILDLINK_DEPENDS.<pkg> to see if we need to install the pkgsrc version
-# or if the built-in one is sufficient.
+# _MESA_VERSION is defined by Mesa/version.mk to be the version of the
+# Mesa software distributed with the built-in XFree86.
#
-. include "../../graphics/Mesa/version.mk"
BUILTIN_PKG.MesaLib= MesaLib-${_MESA_VERSION}
MAKEFLAGS+= BUILTIN_PKG.MesaLib=${BUILTIN_PKG.MesaLib}
. endif
@@ -62,7 +36,7 @@ USE_BUILTIN.MesaLib= yes
USE_BUILTIN.MesaLib?= ${IS_BUILTIN.MesaLib}
. if defined(BUILTIN_PKG.MesaLib)
-USE_BUILTIN.MesaLib= yes
+USE_BUILTIN.MesaLib= yes
. for _depend_ in ${BUILDLINK_DEPENDS.MesaLib}
. if !empty(USE_BUILTIN.MesaLib:M[yY][eE][sS])
USE_BUILTIN.MesaLib!= \