# New ports collection makefile for:	xplot
# Date created:		3 March 1997
# Whom:			fenner
#
# $FreeBSD$
#

PORTNAME=	xplot
PORTVERSION=	0.90
CATEGORIES=	math graphics net
MASTER_SITES=	${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	fenner

MAINTAINER=	fenner@FreeBSD.org
COMMENT=	X11 plotting package

USE_X_PREFIX=	yes
GNU_CONFIGURE=	yes

XPLOT_DEMOS=	demo.0 demo.1 demo.2 demo.3 demo.4 demo.5 demo.6 demo.7

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 501000
BROKEN=		"Does not compile"
.endif

post-install:
	${INSTALL_SCRIPT} ${WRKSRC}/tcpdump2xplot.pl ${PREFIX}/bin
.if !defined(NOPORTDOCS)
	${MKDIR} ${PREFIX}/share/doc/xplot
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xplot
	${INSTALL_DATA} ${WRKSRC}/README.tcp_plots ${PREFIX}/share/doc/xplot
.endif
	${MKDIR} ${PREFIX}/share/examples/xplot
.for i in ${XPLOT_DEMOS}
	${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/examples/xplot
.endfor

.include <bsd.port.post.mk>