diff options
author | jlam <jlam@pkgsrc.org> | 2004-02-11 02:03:41 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-02-11 02:03:41 +0000 |
commit | 07f9638b8bfe243c2fb44cdfe599697b7236bb20 (patch) | |
tree | b8d86f8ab6750a32ef28c407db6160c2eb65c232 /graphics/MesaLib | |
parent | 370309dfdca228db0b0aedb3046ec0e00a5de324 (diff) | |
download | pkgsrc-07f9638b8bfe243c2fb44cdfe599697b7236bb20.tar.gz |
Turn MESA_REQD back into a public variable, and make it take a list of
values that MesaLib/buildlink3.mk converts into a single _MESA_REQD that
is the highest version required. If including the Mesa/buildlink3.mk
file, then require the same version of Mesa as required by glut.
Diffstat (limited to 'graphics/MesaLib')
-rw-r--r-- | graphics/MesaLib/buildlink3.mk | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/graphics/MesaLib/buildlink3.mk b/graphics/MesaLib/buildlink3.mk index 239219c88d0..d4bceb7fbb7 100644 --- a/graphics/MesaLib/buildlink3.mk +++ b/graphics/MesaLib/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.21 2004/02/10 23:23:02 jlam Exp $ +# $NetBSD: buildlink3.mk,v 1.22 2004/02/11 02:03:41 jlam Exp $ BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ MESALIB_BUILDLINK3_MK:= ${MESALIB_BUILDLINK3_MK}+ @@ -6,7 +6,33 @@ MESALIB_BUILDLINK3_MK:= ${MESALIB_BUILDLINK3_MK}+ .include "../../mk/bsd.prefs.mk" .if !empty(MESALIB_BUILDLINK3_MK:M+) -_MESA_REQD?= 3.4.2 +MESA_REQD+= 3.4.2 + +# 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 gcc-${_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 'gcc>=${_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} BUILDLINK_PACKAGES+= MesaLib BUILDLINK_DEPENDS.MesaLib+= MesaLib>=${_MESA_REQD} |