aboutsummaryrefslogtreecommitdiff
path: root/net/ngrep
diff options
context:
space:
mode:
authorMarcus Alves Grando <mnag@FreeBSD.org>2006-04-15 20:09:18 +0000
committerMarcus Alves Grando <mnag@FreeBSD.org>2006-04-15 20:09:18 +0000
commit281dd575ad2fb4b570e9db426583b26017163904 (patch)
treebe55c8187e25aaeb141b25ecaabe48434f5f57eb /net/ngrep
parenta732607ff36670968b0d20a71009d29d26d5a6fe (diff)
downloadports-281dd575ad2fb4b570e9db426583b26017163904.tar.gz
ports-281dd575ad2fb4b570e9db426583b26017163904.zip
Notes
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}