aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/tcpview/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/tcpview/Makefile b/net/tcpview/Makefile
index 0d339c6b2d33..d662abfe72d5 100644
--- a/net/tcpview/Makefile
+++ b/net/tcpview/Makefile
@@ -20,12 +20,17 @@ USE_MOTIF= yes
MAN1= tcpview.1
+.include <bsd.port.pre.mk>
post-patch:
.for f in nametoaddr.c addrtoname.c print-nfs.c detail-tcp.c tv_addrtoname.c
@${REINPLACE_CMD} -e 's/NTOHL/ntohl/ ; s/NTOHS/ntohs/' ${WRKSRC}/${f}
.endfor
+.if ${OSVERSION} >= 800000
+ @${REINPLACE_CMD} -e "s|-DCSLIP|-UCSLIP|" \
+ ${WRKSRC}/Makefile
+.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/DOC/Tcpview ${LOCALBASE}/lib/X11/app-defaults/
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>