diff options
author | jlam <jlam@pkgsrc.org> | 2004-02-12 01:59:37 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-02-12 01:59:37 +0000 |
commit | 1edfa505eddb87dd79db0d2897323b39e05e4a03 (patch) | |
tree | f36bdf155011b2521ad9dfd8a23373398462d265 /security/PAM | |
parent | 3574066d66f5570c39b086cbf1ccc1116cb66c7b (diff) | |
download | pkgsrc-1edfa505eddb87dd79db0d2897323b39e05e4a03.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/PAM')
-rw-r--r-- | security/PAM/buildlink2.mk | 8 | ||||
-rw-r--r-- | security/PAM/buildlink3.mk | 16 |
2 files changed, 14 insertions, 10 deletions
diff --git a/security/PAM/buildlink2.mk b/security/PAM/buildlink2.mk index 39e44bf1d7d..f2348d0f858 100644 --- a/security/PAM/buildlink2.mk +++ b/security/PAM/buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink2.mk,v 1.5 2004/02/05 07:17:14 jlam Exp $ +# $NetBSD: buildlink2.mk,v 1.6 2004/02/12 01:59:38 jlam Exp $ .if !defined(PAM_BUILDLINK2_MK) PAM_BUILDLINK2_MK= # defined @@ -9,6 +9,12 @@ BUILDLINK_DEPENDS.pam?= PAM>=0.75 BUILDLINK_PKGSRCDIR.pam?= ../../security/PAM .if exists(/usr/include/security/pam_appl.h) +_BUILTIN_PAM= YES +.else +_BUILTIN_PAM= NO +.endif + +.if ${_BUILTIN_PAM} == "YES" _NEED_PAM= NO .else _NEED_PAM= YES diff --git a/security/PAM/buildlink3.mk b/security/PAM/buildlink3.mk index ca1f2d334af..b80345cf8ab 100644 --- a/security/PAM/buildlink3.mk +++ b/security/PAM/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.8 2004/02/05 07:17:14 jlam Exp $ +# $NetBSD: buildlink3.mk,v 1.9 2004/02/12 01:59:38 jlam Exp $ BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ PAM_BUILDLINK3_MK:= ${PAM_BUILDLINK3_MK}+ @@ -20,6 +20,12 @@ BUILDLINK_IS_BUILTIN.pam= YES . endif .endif +.if !empty(BUILDLINK_IS_BUILTIN.pam:M[yY][eE][sS]) +BUILDLINK_USE_BUILTIN.pam= YES +.else +BUILDLINK_USE_BUILTIN.pam= NO +.endif + .if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \ !empty(PREFER_PKGSRC:Mpam) BUILDLINK_USE_BUILTIN.pam= NO @@ -29,14 +35,6 @@ BUILDLINK_USE_BUILTIN.pam= NO BUILDLINK_USE_BUILTIN.pam= YES .endif -.if !defined(BUILDLINK_USE_BUILTIN.pam) -. if !empty(BUILDLINK_IS_BUILTIN.pam:M[nN][oO]) -BUILDLINK_USE_BUILTIN.pam= NO -. else -BUILDLINK_USE_BUILTIN.pam= YES -. endif -.endif - .if !empty(BUILDLINK_USE_BUILTIN.pam:M[nN][oO]) . if !empty(BUILDLINK_DEPTH:M+) BUILDLINK_DEPENDS+= pam |