summaryrefslogtreecommitdiff
path: root/graphics/MesaLib
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-03-15 17:38:10 +0000
committerjlam <jlam@pkgsrc.org>2004-03-15 17:38:10 +0000
commitf63d66e56a64208937c79d618d8d0244925f9d5b (patch)
tree8c279b1ed5a6f869fd2a81904aa52940890e8433 /graphics/MesaLib
parentb2796b86d248664056d00efb3c50faf79c7a019f (diff)
downloadpkgsrc-f63d66e56a64208937c79d618d8d0244925f9d5b.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')
-rw-r--r--graphics/MesaLib/buildlink3.mk6
-rw-r--r--graphics/MesaLib/builtin.mk38
2 files changed, 8 insertions, 36 deletions
diff --git a/graphics/MesaLib/buildlink3.mk b/graphics/MesaLib/buildlink3.mk
index a6331c09a49..92194ac003d 100644
--- a/graphics/MesaLib/buildlink3.mk
+++ b/graphics/MesaLib/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.26 2004/03/10 17:57:14 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.27 2004/03/15 17:38:10 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
MESALIB_BUILDLINK3_MK:= ${MESALIB_BUILDLINK3_MK}+
@@ -11,9 +11,7 @@ BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:NMesaLib}
BUILDLINK_PACKAGES+= MesaLib
.if !empty(MESALIB_BUILDLINK3_MK:M+)
-MESA_REQD+= 3.4.2
-
-BUILDLINK_DEPENDS.MesaLib+= MesaLib>=${_MESA_REQD}
+BUILDLINK_DEPENDS.MesaLib+= MesaLib>=3.4.2
BUILDLINK_PKGSRCDIR.MesaLib?= ../../graphics/MesaLib
.if !defined(BUILDING_MESA)
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!= \