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 | aaa25bfe593e524db2009866634e3d181e1a80cb (patch) | |
tree | e8a80101bb5d7e62c96926aa4a164d29dde4db19 /graphics/glu | |
parent | 9e14aa4f473411217e5a42a3ddb9644608ebf06e (diff) | |
download | pkgsrc-aaa25bfe593e524db2009866634e3d181e1a80cb.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/glu')
-rw-r--r-- | graphics/glu/buildlink3.mk | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/graphics/glu/buildlink3.mk b/graphics/glu/buildlink3.mk index 16aaec0de80..dd2b37fa686 100644 --- a/graphics/glu/buildlink3.mk +++ b/graphics/glu/buildlink3.mk @@ -1,7 +1,5 @@ -# $NetBSD: buildlink3.mk,v 1.3 2003/09/14 01:47:51 jlam Exp $ +# $NetBSD: buildlink3.mk,v 1.4 2003/09/28 12:54:52 jlam Exp $ -.if !defined(GLU_BUILDLINK3_MK) -GLU_BUILDLINK3_MK= # defined BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ .include "../../mk/bsd.prefs.mk" @@ -29,9 +27,7 @@ BUILDLINK_IS_BUILTIN.glu!= \ MAKEFLAGS+= BUILDLINK_IS_BUILTIN.glu=${BUILDLINK_IS_BUILTIN.glu} .endif -.if !empty(BUILDLINK_CHECK_BUILTIN.glu:M[yY][eE][sS]) -_NEED_GLU= NO -.else +.if !defined(_NEED_GLU) . if !empty(BUILDLINK_IS_BUILTIN.glu:M[nN][oO]) _NEED_GLU= YES . else @@ -41,7 +37,7 @@ _NEED_GLU= 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" _GLU_PKG= glu-${_MESA_VERSION} _GLU_DEPENDS= ${BUILDLINK_DEPENDS.glu} _NEED_GLU!= \ @@ -51,6 +47,10 @@ _NEED_GLU!= \ ${ECHO} "YES"; \ fi . endif +.endif # _NEED_GLU + +.if !empty(BUILDLINK_CHECK_BUILTIN.glu:M[yY][eE][sS]) +_NEED_GLU= NO .endif .if ${_NEED_GLU} == "YES" @@ -62,10 +62,11 @@ BUILDLINK_DEPENDS.glu= glu>=5.0 . if !empty(BUILDLINK_DEPTH:M\+) BUILDLINK_DEPENDS+= glu . endif +. if !defined(BUILDLINK_PACKAGES) || empty(BUILDLINK_PACKAGES:Mglu) BUILDLINK_PACKAGES+= glu +. endif .else BUILDLINK_PREFIX.glu= ${X11BASE} .endif BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:C/\+$//} -.endif # GLU_BUILDLINK3_MK |