aboutsummaryrefslogtreecommitdiffstats
path: root/net/ngrep
diff options
context:
space:
mode:
authorMarcus Alves Grando <mnag@FreeBSD.org>2006-04-16 04:09:18 +0800
committerMarcus Alves Grando <mnag@FreeBSD.org>2006-04-16 04:09:18 +0800
commit281dd575ad2fb4b570e9db426583b26017163904 (patch)
treebe55c8187e25aaeb141b25ecaabe48434f5f57eb /net/ngrep
parenta732607ff36670968b0d20a71009d29d26d5a6fe (diff)
downloadfreebsd-ports-gnome-281dd575ad2fb4b570e9db426583b26017163904.tar.gz
freebsd-ports-gnome-281dd575ad2fb4b570e9db426583b26017163904.tar.zst
freebsd-ports-gnome-281dd575ad2fb4b570e9db426583b26017163904.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/Makefile8
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}