summaryrefslogtreecommitdiff
path: root/security/heimdal
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-02-12 01:59:37 +0000
committerjlam <jlam@pkgsrc.org>2004-02-12 01:59:37 +0000
commit2dd4c91aa324bb3d53a65569311b184a500842ba (patch)
treef36bdf155011b2521ad9dfd8a23373398462d265 /security/heimdal
parent673a1b7cc2bc6821a611934197768830adb9581e (diff)
downloadpkgsrc-2dd4c91aa324bb3d53a65569311b184a500842ba.tar.gz
Reorganize code so that any dependencies are checked as part of deciding
whether the software is built-in or not. This facilitates implementing the forthcoming PKGSRC_NATIVE variable.
Diffstat (limited to 'security/heimdal')
-rw-r--r--security/heimdal/buildlink3.mk71
1 files changed, 35 insertions, 36 deletions
diff --git a/security/heimdal/buildlink3.mk b/security/heimdal/buildlink3.mk
index 6e131e0a674..a69fee08e9a 100644
--- a/security/heimdal/buildlink3.mk
+++ b/security/heimdal/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.10 2004/02/06 19:04:25 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.11 2004/02/12 01:59:38 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
HEIMDAL_BUILDLINK3_MK:= ${HEIMDAL_BUILDLINK3_MK}+
@@ -19,29 +19,15 @@ _KRB5_KRB5_H= /usr/include/krb5/krb5.h
.if !defined(BUILDLINK_IS_BUILTIN.heimdal)
BUILDLINK_IS_BUILTIN.heimdal= NO
. if exists(${_KRB5_KRB5_H})
-BUILDLINK_IS_BUILTIN.heimdal!= \
+_IS_BUILTIN.heimdal!= \
if ${GREP} -q heimdal_version ${_KRB5_KRB5_H}; then \
${ECHO} "YES"; \
else \
${ECHO} "NO"; \
fi
-. endif
-MAKEFLAGS+= BUILDLINK_IS_BUILTIN.heimdal=${BUILDLINK_IS_BUILTIN.heimdal}
-.endif
-
-.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mheimdal)
-BUILDLINK_USE_BUILTIN.heimdal= NO
-.endif
-
-.if !empty(BUILDLINK_CHECK_BUILTIN.heimdal:M[yY][eE][sS])
-BUILDLINK_USE_BUILTIN.heimdal= YES
-.endif
-
-.if !defined(BUILDLINK_USE_BUILTIN.heimdal)
-. if !empty(BUILDLINK_IS_BUILTIN.heimdal:M[nN][oO])
-BUILDLINK_USE_BUILTIN.heimdal= NO
-. else
+BUILDLINK_IS_BUILTIN.heimdal= ${_IS_BUILTIN.heimdal}
+. if !empty(BUILDLINK_CHECK_BUILTIN.heimdal:M[nN][oO]) && \
+ !empty(_IS_BUILTIN.heimdal:M[yY][eE][sS])
#
# Create an appropriate name for the built-in package distributed
# with the system. This package name can be used to check against
@@ -52,7 +38,7 @@ BUILDLINK_USE_BUILTIN.heimdal= NO
# the version number of the software. Match up heimdal versions with
# OS versions for an approximate determination of the heimdal version.
#
-. if !defined(_HEIMDAL_VERSION)
+. if !defined(_HEIMDAL_VERSION)
_HEIMDAL_VERSIONS= 0.6 0.5 0.4e 0.3f 0.3e
_HEIMDAL_0.6= NetBSD-1.6[U-Z]-* NetBSD-1.6Z*-* NetBSD-[2-9]*-*
_HEIMDAL_0.5= NetBSD-1.6[I-T]-*
@@ -62,32 +48,45 @@ _HEIMDAL_0.4e= NetBSD-1.6[A-H]-* \
_HEIMDAL_0.3f= NetBSD-1.5X-*
_HEIMDAL_0.3e= NetBSD-1.5[UVW]-* \
NetBSD-1.5.*-*
-. for _heimdal_version_ in ${_HEIMDAL_VERSIONS}
-. for _pattern_ in ${_HEIMDAL_${_heimdal_version_}}
-. if !empty(MACHINE_PLATFORM:M${_pattern_})
+. for _heimdal_version_ in ${_HEIMDAL_VERSIONS}
+. for _pattern_ in ${_HEIMDAL_${_heimdal_version_}}
+. if !empty(MACHINE_PLATFORM:M${_pattern_})
_HEIMDAL_VERSION?= ${_heimdal_version_}
-. endif
+. endif
+. endfor
. endfor
-. endfor
_HEIMDAL_VERSION?= 0.2t
-MAKEFLAGS+= _HEIMDAL_VERSION=${_HEIMDAL_VERSION}
-. endif
-
+. endif
_HEIMDAL_PKG= heimdal-${_HEIMDAL_VERSION}
-BUILDLINK_USE_BUILTIN.heimdal?= YES
-. for _depend_ in ${BUILDLINK_DEPENDS.heimdal}
-. if !empty(BUILDLINK_USE_BUILTIN.heimdal:M[yY][eE][sS])
-BUILDLINK_USE_BUILTIN.heimdal!= \
+BUILDLINK_IS_BUILTIN.heimdal?= YES
+. for _depend_ in ${BUILDLINK_DEPENDS.heimdal}
+. if !empty(BUILDLINK_IS_BUILTIN.heimdal:M[yY][eE][sS])
+BUILDLINK_IS_BUILTIN.heimdal!= \
if ${PKG_ADMIN} pmatch '${_depend_}' ${_HEIMDAL_PKG}; then \
${ECHO} "YES"; \
else \
${ECHO} "NO"; \
fi
-. endif
-. endfor
+. endif
+. endfor
+. endif
. endif
-MAKEFLAGS+= \
- BUILDLINK_USE_BUILTIN.heimdal=${BUILDLINK_USE_BUILTIN.heimdal}
+MAKEFLAGS+= BUILDLINK_IS_BUILTIN.heimdal=${BUILDLINK_IS_BUILTIN.heimdal}
+.endif
+
+.if !empty(BUILDLINK_IS_BUILTIN.heimdal:M[yY][eE][sS])
+BUILDLINK_USE_BUILTIN.heimdal= YES
+.else
+BUILDLINK_USE_BUILTIN.heimdal= NO
+.endif
+
+.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(PREFER_PKGSRC:Mheimdal)
+BUILDLINK_USE_BUILTIN.heimdal= NO
+.endif
+
+.if !empty(BUILDLINK_CHECK_BUILTIN.heimdal:M[yY][eE][sS])
+BUILDLINK_USE_BUILTIN.heimdal= YES
.endif
.if !empty(BUILDLINK_USE_BUILTIN.heimdal:M[nN][oO])