diff options
author | jlam <jlam@pkgsrc.org> | 2003-09-28 12:54:52 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2003-09-28 12:54:52 +0000 |
commit | c756913acedd43210e90c014bd3ec76303c0ae1f (patch) | |
tree | e8a80101bb5d7e62c96926aa4a164d29dde4db19 /graphics/MesaLib/buildlink3.mk | |
parent | 093435efa0750ff20c4cac8d459e380914a773c4 (diff) | |
download | pkgsrc-c756913acedd43210e90c014bd3ec76303c0ae1f.tar.gz |
Rewrite buildlink3.mk files to match the updated buildlink3.mk template
in bsd.buildlink3.mk: the *_BUILDLINK3_MK multiple inclusion guards are
removed and we ensure that things that should be defined only once really
are defined only once by using section-specific or variable-specific
guards.
Diffstat (limited to 'graphics/MesaLib/buildlink3.mk')
-rw-r--r-- | graphics/MesaLib/buildlink3.mk | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/graphics/MesaLib/buildlink3.mk b/graphics/MesaLib/buildlink3.mk index 9a221586425..25e9455fc26 100644 --- a/graphics/MesaLib/buildlink3.mk +++ b/graphics/MesaLib/buildlink3.mk @@ -1,7 +1,5 @@ -# $NetBSD: buildlink3.mk,v 1.5 2003/09/14 01:47:51 jlam Exp $ +# $NetBSD: buildlink3.mk,v 1.6 2003/09/28 12:54:52 jlam Exp $ -.if !defined(MESALIB_BUILDLINK3_MK) -MESALIB_BUILDLINK3_MK= # defined BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ .include "../../mk/bsd.prefs.mk" @@ -29,9 +27,7 @@ BUILDLINK_IS_BUILTIN.MesaLib!= \ MAKEFLAGS+= BUILDLINK_IS_BUILTIN.MesaLib=${BUILDLINK_IS_BUILTIN.MesaLib} .endif -.if !empty(BUILDLINK_CHECK_BUILTIN.MesaLib:M[yY][eE][sS]) -_NEED_MESALIB= NO -.else +.if !defined(_NEED_MESALIB) . if !empty(BUILDLINK_IS_BUILTIN.MesaLib:M[nN][oO]) _NEED_MESALIB= YES . else @@ -41,7 +37,7 @@ _NEED_MESALIB= YES # BUILDLINK_DEPENDS.<pkg> to see if we need to install the pkgsrc version # or if the built-in one is sufficient. # -. include "../../graphics/Mesa/version.mk" +. include "../../graphics/Mesa/version.mk" _MESALIB_PKG= MesaLib-${_MESA_VERSION} _MESALIB_DEPENDS= ${BUILDLINK_DEPENDS.MesaLib} _NEED_MESALIB!= \ @@ -51,6 +47,10 @@ _NEED_MESALIB!= \ ${ECHO} "YES"; \ fi . endif +.endif # _NEED_MESALIB + +.if !empty(BUILDLINK_CHECK_BUILTIN.MesaLib:M[yY][eE][sS]) +_NEED_MESALIB= NO .endif .if ${_NEED_MESALIB} == "YES" @@ -62,11 +62,12 @@ BUILDLINK_DEPENDS.MesaLib= MesaLib>=5.0 . if !empty(BUILDLINK_DEPTH:M\+) BUILDLINK_DEPENDS+= MesaLib . endif +. if !defined(BUILDLINK_PACKAGES) || empty(BUILDLINK_PACKAGES:MMesaLib) BUILDLINK_PACKAGES+= MesaLib BUILDLINK_CPPFLAGS.MesaLib= -DGLX_GLXEXT_LEGACY +. endif .else BUILDLINK_PREFIX.MesaLib= ${X11BASE} .endif BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:C/\+$//} -.endif # MESALIB_BUILDLINK3_MK |