1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/net/tcpview/Makefile
Baptiste Daroussin 18dbe4987a Mark job unsafe
While here:
- Trim headers
- Convert to USES
- Remove code for unsupported version
2013-07-11 06:39:14 +00:00

35 lines
778 B
Makefile

# Created by: Chung-Kie Tung <tung@turtle.ee.ncku.edu.tw>
# $FreeBSD$
PORTNAME= tcpview
PORTVERSION= 1.0
PORTREVISION= 6
CATEGORIES= net
MASTER_SITES= ftp://ftp.cac.washington.edu/pub/noc-tools/tcpview/
EXTRACT_SUFX= .tar.Z
MAINTAINER= cy@FreeBSD.org
COMMENT= Motif-based TCP/IP protocol analyzer
USES= bison motif
MAKE_JOBS_UNSAFE= 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.post.mk>