summaryrefslogtreecommitdiff
path: root/graphics/glu
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2003-09-30 00:42:32 +0000
committerjlam <jlam@pkgsrc.org>2003-09-30 00:42:32 +0000
commitf3394386697cc129b9687dec7427e67292c7fc0d (patch)
tree7eef7de4759a72b61b44674205a52ebf7669a4dd /graphics/glu
parentc094c5fc84ee4b9e4fc1c860c83e8812481b32ba (diff)
downloadpkgsrc-f3394386697cc129b9687dec7427e67292c7fc0d.tar.gz
Conform to latest buildlink3.mk guidelines using *_BUILDLINK3_MK guards
to protect more parts of buildlink3.mk files against multiple inclusion.
Diffstat (limited to 'graphics/glu')
-rw-r--r--graphics/glu/buildlink3.mk28
1 files changed, 18 insertions, 10 deletions
diff --git a/graphics/glu/buildlink3.mk b/graphics/glu/buildlink3.mk
index dd2b37fa686..729608a731f 100644
--- a/graphics/glu/buildlink3.mk
+++ b/graphics/glu/buildlink3.mk
@@ -1,13 +1,17 @@
-# $NetBSD: buildlink3.mk,v 1.4 2003/09/28 12:54:52 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.5 2003/09/30 00:42:32 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
-.include "../../mk/bsd.prefs.mk"
+.if !defined(GLU_BUILDLINK3_MK)
+GLU_BUILDLINK3_MK= YES
+
+. include "../../mk/bsd.prefs.mk"
MESA_REQD?= 3.4.2
BUILDLINK_DEPENDS.glu?= glu>=${MESA_REQD}
BUILDLINK_PKGSRCDIR.glu?= ../../graphics/glu
+.endif # GLU_BUILDLINK3_MK
BUILDLINK_CHECK_BUILTIN.glu?= NO
@@ -27,6 +31,10 @@ 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
+.endif
+
.if !defined(_NEED_GLU)
. if !empty(BUILDLINK_IS_BUILTIN.glu:M[nN][oO])
_NEED_GLU= YES
@@ -37,7 +45,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!= \
@@ -47,12 +55,9 @@ _NEED_GLU!= \
${ECHO} "YES"; \
fi
. endif
+MAKEFLAGS+= _NEED_GLU="${_NEED_GLU}"
.endif # _NEED_GLU
-.if !empty(BUILDLINK_CHECK_BUILTIN.glu:M[yY][eE][sS])
-_NEED_GLU= NO
-.endif
-
.if ${_NEED_GLU} == "YES"
#
# If we depend on the package, depend on the latest version with a library
@@ -62,11 +67,14 @@ BUILDLINK_DEPENDS.glu= glu>=5.0
. if !empty(BUILDLINK_DEPTH:M\+)
BUILDLINK_DEPENDS+= glu
. endif
-. if !defined(BUILDLINK_PACKAGES) || empty(BUILDLINK_PACKAGES:Mglu)
+.endif
+
+.if !defined(GLU_BUILDLINK3_MK)
+. if ${_NEED_GLU} == "YES"
BUILDLINK_PACKAGES+= glu
-. endif
-.else
+. else
BUILDLINK_PREFIX.glu= ${X11BASE}
+. endif
.endif
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:C/\+$//}