From 7737418647d9c8a7c07e8f0ac107717888621c81 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Mon, 25 Jul 2005 01:30:38 +0000 Subject: Make net/ngrep work with an installed net/libpcap and WITH_PORTS_PCAP=1. Submitted by: Jeremie Le Hen , Florent Thoumie --- net/ngrep/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'net') diff --git a/net/ngrep/Makefile b/net/ngrep/Makefile index f811f619c53e..305ff6797129 100644 --- a/net/ngrep/Makefile +++ b/net/ngrep/Makefile @@ -31,6 +31,13 @@ PORTDOCS= CHANGES.txt CREDITS.txt INSTALL.txt LICENSE.txt \ .include +.if !defined(WITH_PORTS_PCAP) +CONFIGURE_ARGS+=--with-pcap-includes=/usr/include +.else +CONFIGURE_ARGS+=--with-pcap-includes=${LOCALBASE}/include +LIB_DEPENDS= pcap.2:${PORTSDIR}/net/libpcap +.endif + post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} -- cgit v1.2.3