summaryrefslogtreecommitdiff
path: root/security/tcp_wrappers/buildlink3.mk
blob: d948416e373b4b8fe110f9898e815437757c296b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# $NetBSD: buildlink3.mk,v 1.8 2005/10/18 04:32:01 grant Exp $

BUILDLINK_DEPTH:=		${BUILDLINK_DEPTH}+
TCP_WRAPPERS_BUILDLINK3_MK:=	${TCP_WRAPPERS_BUILDLINK3_MK}+

.if !empty(BUILDLINK_DEPTH:M+)
BUILDLINK_DEPENDS+=	tcp_wrappers
.endif

BUILDLINK_PACKAGES:=	${BUILDLINK_PACKAGES:Ntcp_wrappers}
BUILDLINK_PACKAGES+=	tcp_wrappers

.if !empty(TCP_WRAPPERS_BUILDLINK3_MK:M+)
BUILDLINK_DEPENDS.tcp_wrappers+=	tcp_wrappers>=7.6.1nb1
BUILDLINK_RECOMMENDED.tcp_wrappers+=	tcp_wrappers>=7.6.1nb3
BUILDLINK_PKGSRCDIR.tcp_wrappers?=	../../security/tcp_wrappers
.endif	# TCP_WRAPPERS_BUILDLINK3_MK

# need libnsl and libsocket to link into an executable on Solaris.
.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "SunOS"
BUILDLINK_LDADD.tcp_wrappers+=		-lnsl -lsocket
BUILDLINK_LDFLAGS.tcp_wrappers?=	${BUILDLINK_LDADD.tcp_wrappers}
.endif

BUILDLINK_DEPTH:=     ${BUILDLINK_DEPTH:S/+$//}