summaryrefslogtreecommitdiff
path: root/graphics/plotmtv/Makefile
blob: 02a97c069b2286b7a202d3dcac4b5c4cb3d2e00d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Created by: pgs
# $FreeBSD$

PORTNAME=	plotmtv
PORTVERSION=	1.4.1
PORTREVISION=	2
CATEGORIES=	graphics
MASTER_SITES=	${MASTER_SITE_XCONTRIB}
DISTNAME=	Plotmtv${PORTVERSION}

MASTER_SITE_SUBDIR=	applications
EXTRACT_SUFX=	.tar.Z

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Multipurpose X11 plotting program

USES=		imake
USE_XORG=	x11 xext xt
ALL_TARGET=	World
MAN1=		plotmtv.1
MAKE_JOBS_UNSAFE=	yes

NO_STAGE=	yes
.include <bsd.port.options.mk>

post-patch:
	@${FIND} ${WRKSRC} -name \*.c | ${XARGS} ${REINPLACE_CMD} -e 's/<malloc.h>/<stdlib.h>/'

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR}  ${PREFIX}/share/doc/plotmtv/Tests
	@${INSTALL_DATA} ${WRKSRC}/Docs/DataFormat.ps.Z \
		${PREFIX}/share/doc/plotmtv
	@${INSTALL_SCRIPT} ${WRKSRC}/Tests/run.csh ${WRKSRC}/Tests/run.sh \
		${PREFIX}/share/doc/plotmtv/Tests
.for f in README test_abs.mtv test_abs2.mtv test_annot.mtv \
	test_annot2.mtv test_axisflip.mtv test_axislabel.mtv \
	test_bar.mtv test_column.mtv test_column2.mtv \
	test_ctrcolors.mtv test_ctrelb.mtv test_ctrelb2.mtv \
	test_ctrelb3.mtv test_ctrs.mtv test_curve2D.mtv \
	test_curve3D.mtv test_curve3D2.mtv test_exp.mtv \
	test_fillclrs.mtv test_fillclrs2.mtv test_grid4D.mtv \
	test_histogram.mtv test_lines.mtv test_log.mtv \
	test_markers.mtv test_prob.mtv test_pyramid.mtv \
	test_smallnum.mtv test_spln.mtv test_trictr.mtv \
	test_vector.mtv test_vector2.mtv
	@${INSTALL_DATA} ${WRKSRC}/Tests/${f} ${PREFIX}/share/doc/plotmtv/Tests
.endfor
.endif

.include <bsd.port.mk>