diff options
author | jlam <jlam> | 2004-02-12 01:59:37 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-02-12 01:59:37 +0000 |
commit | d1197e2dbd26577a4d276890bc662b2a7f93e572 (patch) | |
tree | f36bdf155011b2521ad9dfd8a23373398462d265 /mail | |
parent | 2645f9642e2b6553e699f80dbfe9905e21c03d99 (diff) | |
download | pkgsrc-d1197e2dbd26577a4d276890bc662b2a7f93e572.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 'mail')
-rw-r--r-- | mail/libmilter/buildlink2.mk | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mail/libmilter/buildlink2.mk b/mail/libmilter/buildlink2.mk index 2ddb9b951b6..c1d5790f352 100644 --- a/mail/libmilter/buildlink2.mk +++ b/mail/libmilter/buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink2.mk,v 1.6 2004/02/05 07:17:15 jlam Exp $ +# $NetBSD: buildlink2.mk,v 1.7 2004/02/12 01:59:38 jlam Exp $ # # This Makefile fragment is included by packages that use libmilter. # @@ -14,11 +14,17 @@ BUILDLINK_PKGSRCDIR.libmilter?= ../../mail/libmilter .if exists(/usr/lib/libmilter.a) _MILTER_FILELIST!= ar t /usr/lib/libmilter.a . if empty(_MILTER_FILELIST:Merrstring.o) -_NEED_LIBMILTER= YES +_BUILTIN_LIBMILTER= NO . else -_NEED_LIBMILTER= NO +_BUILTIN_LIBMILTER= YES . endif .else +_BUILTIN_LIBMILTER= NO +.endif + +.if ${_BUILTIN_LIBMILTER} == "YES" +_NEED_LIBMILTER= NO +.else _NEED_LIBMILTER= YES .endif |