diff options
author | mnag <mnag@FreeBSD.org> | 2006-04-16 04:09:18 +0800 |
---|---|---|
committer | mnag <mnag@FreeBSD.org> | 2006-04-16 04:09:18 +0800 |
commit | acc8d75a68efa68f01892b9c0a0bd1260b29c439 (patch) | |
tree | cf68fdd3c2713382ac6a7e00e74c9a0f9b7fbddd /net/ngrep | |
parent | 285c8c7b04d4cab80d0d9e2a7035f6de12b7b08b (diff) | |
download | freebsd-ports-gnome-acc8d75a68efa68f01892b9c0a0bd1260b29c439.tar.gz freebsd-ports-gnome-acc8d75a68efa68f01892b9c0a0bd1260b29c439.tar.zst freebsd-ports-gnome-acc8d75a68efa68f01892b9c0a0bd1260b29c439.zip |
- Fix build using OPTIONS PORTS_PCAP. libpcap.so.2 are not installed by default, use libpcap.a.
PR: 94217
Notified by: Chris St Denis <chris___ctgameinfo.com>
Approved by: maintainer timeout, 38 days
Diffstat (limited to 'net/ngrep')
-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} |