Merge from vendor branch TNF:
[pkgsrc.git] / security / tcp_wrappers / buildlink3.mk
1 # $NetBSD: buildlink3.mk,v 1.13 2006/12/12 21:52:37 joerg Exp $
2
3 BUILDLINK_TREE+=        tcp_wrappers
4
5 .if !defined(TCP_WRAPPERS_BUILDLINK3_MK)
6 TCP_WRAPPERS_BUILDLINK3_MK:=
7
8 BUILDLINK_API_DEPENDS.tcp_wrappers+=    tcp_wrappers>=7.6.1nb1
9 BUILDLINK_ABI_DEPENDS.tcp_wrappers+=    tcp_wrappers>=7.6.1nb3
10 BUILDLINK_PKGSRCDIR.tcp_wrappers?=      ../../security/tcp_wrappers
11
12 # need libnsl and libsocket to link into an executable on Solaris.
13 .include "../../mk/bsd.fast.prefs.mk"
14
15 .if ${OPSYS} == "SunOS"
16 BUILDLINK_LDADD.tcp_wrappers+=          -lnsl -lsocket
17 BUILDLINK_LDFLAGS.tcp_wrappers?=        ${BUILDLINK_LDADD.tcp_wrappers}
18 .endif
19 .endif # TCP_WRAPPERS_BUILDLINK3_MK
20
21 BUILDLINK_TREE+=        -tcp_wrappers