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 /devel/cdk | |
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 'devel/cdk')
-rw-r--r-- | devel/cdk/buildlink2.mk | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/devel/cdk/buildlink2.mk b/devel/cdk/buildlink2.mk index 7277eee1aaf..458a25bc3f0 100644 --- a/devel/cdk/buildlink2.mk +++ b/devel/cdk/buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink2.mk,v 1.8 2004/02/05 07:17:15 jlam Exp $ +# $NetBSD: buildlink2.mk,v 1.9 2004/02/12 01:59:37 jlam Exp $ .if !defined(CDK_BUILDLINK2_MK) CDK_BUILDLINK2_MK= # defined @@ -8,12 +8,16 @@ CDK_BUILDLINK2_MK= # defined BUILDLINK_DEPENDS.cdk?= cdk>=4.9.9nb1 BUILDLINK_PKGSRCDIR.cdk?= ../../devel/cdk -.if defined(USE_CDK) -_NEED_CDK= YES -.elif exists(/usr/include/cdk/cdk.h) -_NEED_CDK= NO +.if exists(/usr/include/cdk/cdk.h) +_BUILTIN_CDK= YES .else -_NEED_CDK= YES +_BUILTIN_CDK= NO +.endif + +.if ${_BUILTIN_CDK} == "YES" +_NEED_CDK= NO +.else +_NEED_CDK= YES .endif .if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \ @@ -21,6 +25,10 @@ _NEED_CDK= YES _NEED_CDK= YES .endif +.if defined(USE_CDK) +_NEED_CDK= YES +.endif + .if ${_NEED_CDK} == "YES" BUILDLINK_PACKAGES+= cdk EVAL_PREFIX+= BUILDLINK_PREFIX.cdk=cdk |