aboutsummaryrefslogtreecommitdiffstats
path: root/net/ngrep
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2005-07-25 09:30:38 +0800
committeredwin <edwin@FreeBSD.org>2005-07-25 09:30:38 +0800
commit6eac7b9e6ce6d699039cea6b2884f5b91172bd48 (patch)
treec4bd14395e80aa4665dcbe18c8d79fff4095b7f9 /net/ngrep
parent7e254b083f6779626e6cb1f9edfd9b684f52d863 (diff)
downloadfreebsd-ports-gnome-6eac7b9e6ce6d699039cea6b2884f5b91172bd48.tar.gz
freebsd-ports-gnome-6eac7b9e6ce6d699039cea6b2884f5b91172bd48.tar.zst
freebsd-ports-gnome-6eac7b9e6ce6d699039cea6b2884f5b91172bd48.zip
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>
Diffstat (limited to 'net/ngrep')
-rw-r--r--net/ngrep/Makefile7
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}