diff options
author | jlam <jlam> | 2004-01-05 09:31:31 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-01-05 09:31:31 +0000 |
commit | d6bfa06973a35023677999e5c61d93db3b76aee9 (patch) | |
tree | 5e468c9c5f542e31226f7780d62182ff9f54b072 /net | |
parent | ecc4f995c404a2f0ab096f7bf737647d47ec256f (diff) | |
download | pkgsrc-d6bfa06973a35023677999e5c61d93db3b76aee9.tar.gz |
Sow BUILDLINK_USE_BUILTIN.<pkg> and reap _NEED_<PKG> variables.
Diffstat (limited to 'net')
-rw-r--r-- | net/libpcap/buildlink3.mk | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/net/libpcap/buildlink3.mk b/net/libpcap/buildlink3.mk index b7407355562..e7af7aad3e4 100644 --- a/net/libpcap/buildlink3.mk +++ b/net/libpcap/buildlink3.mk @@ -1,11 +1,12 @@ -# $NetBSD: buildlink3.mk,v 1.2 2004/01/04 23:34:07 jlam Exp $ +# $NetBSD: buildlink3.mk,v 1.3 2004/01/05 09:31:31 jlam Exp $ BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ LIBPCAP_BUILDLINK3_MK:= ${LIBPCAP_BUILDLINK3_MK}+ -.if !empty(LIBPCAP_BUILDLINK3_MK:M+) -. include "../../mk/bsd.prefs.mk" +.include "../../mk/bsd.prefs.mk" +.if !empty(LIBPCAP_BUILDLINK3_MK:M+) +BUILDLINK_PACKAGES+= libpcap BUILDLINK_DEPENDS.libpcap?= libpcap>=0.7.2 BUILDLINK_PKGSRCDIR.libpcap?= ../../net/libpcap .endif # LIBPCAP_BUILDLINK3_MK @@ -20,30 +21,21 @@ BUILDLINK_IS_BUILTIN.libpcap= YES .endif .if !empty(BUILDLINK_CHECK_BUILTIN.libpcap:M[yY][eE][sS]) -_NEED_LIBPCAP= NO +BUILDLINK_USE_BUILTIN.libpcap= YES .endif -.if !defined(_NEED_LIBPCAP) +.if !defined(BUILDLINK_USE_BUILTIN.libpcap) . if !empty(BUILDLINK_IS_BUILTIN.libpcap:M[nN][oO]) -_NEED_LIBPCAP= YES +BUILDLINK_USE_BUILTIN.libpcap= NO . else -_NEED_LIBPCAP= NO +BUILDLINK_USE_BUILTIN.libpcap= YES . endif -MAKEFLAGS+= _NEED_LIBPCAP="${_NEED_LIBPCAP}" .endif -.if ${_NEED_LIBPCAP} == "YES" +.if !empty(BUILDLINK_USE_BUILTIN.libpcap:M[nN][oO]) . if !empty(BUILDLINK_DEPTH:M+) BUILDLINK_DEPENDS+= libpcap . endif .endif -.if !empty(LIBPCAP_BUILDLINK3_MK:M+) -. if ${_NEED_LIBPCAP} == "YES" -BUILDLINK_PACKAGES+= libpcap -. else -BUILDLINK_PREFIX.libpcap= /usr -. endif -.endif # LIBPCAP_BUILDLINK3_MK - BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:C/\+$//} |