summaryrefslogtreecommitdiff
path: root/graphics/glu/buildlink3.mk
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/glu/buildlink3.mk')
-rw-r--r--graphics/glu/buildlink3.mk58
1 files changed, 30 insertions, 28 deletions
diff --git a/graphics/glu/buildlink3.mk b/graphics/glu/buildlink3.mk
index 451c36a0dc7..290e9b871c1 100644
--- a/graphics/glu/buildlink3.mk
+++ b/graphics/glu/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.19 2004/02/11 02:03:41 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.20 2004/02/12 01:59:38 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
GLU_BUILDLINK3_MK:= ${GLU_BUILDLINK3_MK}+
@@ -21,51 +21,53 @@ _X11_TMPL= ${X11BASE}/lib/X11/config/X11.tmpl
.if !defined(BUILDLINK_IS_BUILTIN.glu)
BUILDLINK_IS_BUILTIN.glu= NO
. if exists(${_GL_GLU_H}) && exists(${_X11_TMPL})
-BUILDLINK_IS_BUILTIN.glu!= \
+_IS_BUILTIN.glu!= \
if ${GREP} -q BuildGLULibrary ${_X11_TMPL}; then \
${ECHO} "YES"; \
else \
${ECHO} "NO"; \
fi
-. endif
-MAKEFLAGS+= BUILDLINK_IS_BUILTIN.glu=${BUILDLINK_IS_BUILTIN.glu}
-.endif
-
-.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mglu)
-BUILDLINK_USE_BUILTIN.glu= NO
-.endif
-
-.if !empty(BUILDLINK_CHECK_BUILTIN.glu:M[yY][eE][sS])
-BUILDLINK_USE_BUILTIN.glu= YES
-.endif
-
-.if !defined(BUILDLINK_USE_BUILTIN.glu)
-. if !empty(BUILDLINK_IS_BUILTIN.glu:M[nN][oO])
-BUILDLINK_USE_BUILTIN.glu= NO
-. else
+BUILDLINK_IS_BUILTIN.glu= ${_IS_BUILTIN.glu}
+. if !empty(BUILDLINK_CHECK_BUILTIN.glu:M[nN][oO]) && \
+ !empty(_IS_BUILTIN.glu:M[yY][eE][sS])
#
# Create an appropriate package name for the built-in Mesa/GLU 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.
#
-. include "../../graphics/Mesa/version.mk"
+. include "../../graphics/Mesa/version.mk"
_GLU_PKG= glu-${_MESA_VERSION}
-BUILDLINK_USE_BUILTIN.glu?= YES
-. for _depend_ in ${BUILDLINK_DEPENDS.glu}
-. if !empty(BUILDLINK_USE_BUILTIN.glu:M[yY][eE][sS])
-BUILDLINK_USE_BUILTIN.glu!= \
+BUILDLINK_IS_BUILTIN.glu?= YES
+. for _depend_ in ${BUILDLINK_DEPENDS.glu}
+. if !empty(BUILDLINK_IS_BUILTIN.glu:M[yY][eE][sS])
+BUILDLINK_IS_BUILTIN.glu!= \
if ${PKG_ADMIN} pmatch '${_depend_}' ${_GLU_PKG}; then \
${ECHO} "YES"; \
else \
${ECHO} "NO"; \
fi
-. endif
-. endfor
+. endif
+. endfor
+. endif
. endif
-MAKEFLAGS+= BUILDLINK_USE_BUILTIN.glu=${BUILDLINK_USE_BUILTIN.glu}
-.endif # BUILDLINK_USE_BUILTIN.glu
+MAKEFLAGS+= BUILDLINK_IS_BUILTIN.glu=${BUILDLINK_IS_BUILTIN.glu}
+.endif
+
+.if !empty(BUILDLINK_IS_BUILTIN.glu:M[yY][eE][sS])
+BUILDLINK_USE_BUILTIN.glu= YES
+.else
+BUILDLINK_USE_BUILTIN.glu= NO
+.endif
+
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mglu)
+BUILDLINK_USE_BUILTIN.glu= NO
+.endif
+
+.if !empty(BUILDLINK_CHECK_BUILTIN.glu:M[yY][eE][sS])
+BUILDLINK_USE_BUILTIN.glu= YES
+.endif
.if !empty(BUILDLINK_USE_BUILTIN.glu:M[nN][oO])
#