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 | 2dd4c91aa324bb3d53a65569311b184a500842ba (patch) | |
tree | f36bdf155011b2521ad9dfd8a23373398462d265 /mail/libmilter | |
parent | 673a1b7cc2bc6821a611934197768830adb9581e (diff) | |
download | pkgsrc-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 'mail/libmilter')
-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 |