diff options
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/MesaLib/buildlink3.mk | 17 | ||||
-rw-r--r-- | graphics/glu/buildlink3.mk | 17 | ||||
-rw-r--r-- | graphics/xpm/buildlink3.mk | 15 |
3 files changed, 26 insertions, 23 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 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 diff --git a/graphics/xpm/buildlink3.mk b/graphics/xpm/buildlink3.mk index c7db9041cba..ec6a4f72e24 100644 --- a/graphics/xpm/buildlink3.mk +++ b/graphics/xpm/buildlink3.mk @@ -1,7 +1,5 @@ -# $NetBSD: buildlink3.mk,v 1.4 2003/09/14 01:47:52 jlam Exp $ +# $NetBSD: buildlink3.mk,v 1.5 2003/09/28 12:54:52 jlam Exp $ -.if !defined(XPM_BUILDLINK3_MK) -XPM_BUILDLINK3_MK= # defined BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ .include "../../mk/bsd.prefs.mk" @@ -38,9 +36,7 @@ BUILDLINK_IS_BUILTIN.xpm= NO MAKEFLAGS+= BUILDLINK_IS_BUILTIN.xpm=${BUILDLINK_IS_BUILTIN.xpm} .endif -.if !empty(BUILDLINK_CHECK_BUILTIN.xpm:M[yY][eE][sS]) -_NEED_XPM= NO -.else +.if !defined(_NEED_XPM) . if !empty(BUILDLINK_IS_BUILTIN.xpm:M[nN][oO]) _NEED_XPM= YES . else @@ -66,16 +62,21 @@ _NEED_XPM!= \ ${ECHO} "YES"; \ fi . endif +.endif # _NEED_XPM + +.if !empty(BUILDLINK_CHECK_BUILTIN.xpm:M[yY][eE][sS]) +_NEED_XPM= NO .endif .if ${_NEED_XPM} == "YES" . if !empty(BUILDLINK_DEPTH:M\+) BUILDLINK_DEPENDS+= xpm . endif +. if !defined(BUILDLINK_PACKAGES) || empty(BUILDLINK_PACKAGES:Mxpm) BUILDLINK_PACKAGES+= xpm +. endif .else BUILDLINK_PREFIX.xpm= ${X11BASE} .endif BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:C/\+$//} -.endif # XPM_BUILDLINK3_MK |