pkgsrc/net/libpcap/buildlink2.mk
jlam efb93b17bd Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk.
2002-08-25 19:21:43 +00:00

32 lines
787 B
Makefile

# $NetBSD: buildlink2.mk,v 1.2 2002/08/25 19:23:12 jlam Exp $
.if !defined(LIBPCAP_BUILDLINK2_MK)
LIBPCAP_BUILDLINK2_MK= # defined
BUILDLINK_DEPENDS.libpcap?= libpcap>=0.7.1
BUILDLINK_PKGSRCDIR.libpcap?= ../../net/libpcap
.if exists(/usr/include/pcap.h)
_NEED_LIBPCAP= NO
.else
_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