diff options
Diffstat (limited to 'net/ngrep/Makefile')
-rw-r--r-- | net/ngrep/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/net/ngrep/Makefile b/net/ngrep/Makefile index 6bb4ff555ef9..b10d21095e95 100644 --- a/net/ngrep/Makefile +++ b/net/ngrep/Makefile @@ -42,13 +42,19 @@ CONFIGURE_ARGS+= --enable-pcre CONFIGURE_ARGS+= --with-pcap-includes=/usr/include .else CONFIGURE_ARGS+= --with-pcap-includes=${LOCALBASE}/include -LIB_DEPENDS= pcap.2:${PORTSDIR}/net/libpcap +BUILD_DEPENDS+= ${LOCALBASE}/lib/libpcap.a:${PORTSDIR}/net/libpcap .endif .if !defined(WITHOUT_IPV6) CONFIGURE_ARGS+= --enable-ipv6 .endif +post-patch: +.if defined(WITH_PORTS_PCAP) + @${REINPLACE_CMD} -e "s|-lpcap|${LOCALBASE}/lib/libpcap.a|g" \ + ${WRKSRC}/Makefile.in ${WRKSRC}/configure +.endif + post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} |