blob: cda6b050da1820e0c850ab7a2f83e65fb66f5126 (
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.6 2004/02/05 07:17:14 jlam Exp $
.if !defined(LIBPCAP_BUILDLINK2_MK)
LIBPCAP_BUILDLINK2_MK= # defined
.include "../../mk/bsd.prefs.mk"
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 !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
!empty(PREFER_PKGSRC:Mlibpcap)
_NEED_LIBPCAP= YES
.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
|