diff options
-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} |