diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2005-07-25 01:30:38 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2005-07-25 01:30:38 +0000 |
commit | 7737418647d9c8a7c07e8f0ac107717888621c81 (patch) | |
tree | 565833a22a1f1f8aa25c3fb2cba6ff677d170348 | |
parent | Now compiles on 4.x (diff) |
Make net/ngrep work with an installed net/libpcap and WITH_PORTS_PCAP=1.
Submitted by: Jeremie Le Hen <jeremie@le-hen.org>, Florent Thoumie <flz@xbsd.org>
Notes
Notes:
svn path=/head/; revision=140042
-rw-r--r-- | net/ngrep/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
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 <bsd.port.pre.mk> +.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} |