blob: 77b79d6ffd5be16b2cc201a1de9d7397e6b59c92 (
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
28
29
30
31
32
33
34
35
36
37
38
39
|
# $NetBSD: buildlink2.mk,v 1.5 2004/02/05 07:06:15 jlam Exp $
.if !defined(LIBPCAP_BUILDLINK2_MK)
LIBPCAP_BUILDLINK2_MK= # defined
BUILDLINK_DEPENDS.libpcap?= libpcap>=0.7.2
BUILDLINK_PKGSRCDIR.libpcap?= ../../net/libpcap
.if exists(/usr/include/pcap.h)
_NEED_LIBPCAP= NO
.else
_NEED_LIBPCAP= YES
.endif
.if defined(PREFER_PKGSRC)
. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
!empty(PREFER_PKGSRC:Mlibpcap)
_NEED_LIBPCAP= YES
. endif
.endif
.if ${_NEED_LIBPCAP} == "YES"
BUILDLINK_PACKAGES+= libpcap
EVAL_PREFIX+= BUILDLINK_PREFIX.libpcap=libpcap
BUILDLINK_PREFIX.libpcap_DEFAULT= ${LOCALBASE}
.else
BUILDLINK_PREFIX.libpcap= /usr
.endif
BUILDLINK_FILES.libpcap= include/pcap.h
BUILDLINK_FILES.libpcap+= include/pcap-namedb.h
BUILDLINK_FILES.libpcap+= include/net/bpf.h
BUILDLINK_FILES.libpcap+= lib/libpcap.*
BUILDLINK_TARGETS+= libpcap-buildlink
libpcap-buildlink: _BUILDLINK_USE
.endif # LIBPCAP_BUILDLINK2_MK
|