summaryrefslogtreecommitdiff
path: root/benchmarks/skampi/Makefile
blob: ef95fe1df33f612fd425f825a066e994696d8ca1 (plain)
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
52
53
54
# $NetBSD: Makefile,v 1.8 2004/03/26 02:27:34 wiz Exp $
#

DISTNAME=	skampi4
PKGNAME=	skampi-4.0.1
PKGREVISION=	2
CATEGORIES=	benchmarks parallel
MASTER_SITES=	http://liinwww.ira.uka.de/~skampi/
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}_userman.ps.gz
DISTFILES+=	skampili.ps

MAINTAINER=	jschauma@NetBSD.org
HOMEPAGE=	http://liinwww.ira.uka.de/~skampi/
COMMENT=	MPI (Message Passing Interface) benchmarks

DEPENDS=	mpich>=1.2.1:../../parallel/mpi-ch
DEPENDS+=	gnuplot>=3.7.1:../../graphics/gnuplot
DEPENDS+=	teTeX>=1.0.7:../../print/teTeX

EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}

USE_PERL5=	run
REPLACE_PERL=	report_generator/dorep4.pl
DIST_SUBDIR=	${PKGNAME_NOREV}

do-build:
	${GUNZIP_CMD} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}_userman.ps.gz -c > \
		${WRKSRC}/${DISTNAME}_userman.ps
	(cd ${WRKSRC} &&					\
		${PREFIX}/bin/mpicc -o skosfile skosfile.c -lm)

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/skosfile ${PREFIX}/bin/skosfile
	${INSTALL_SCRIPT} ${WRKSRC}/report_generator/dorep4.pl 	\
		${PREFIX}/bin/dorep4.pl
	${INSTALL_DATA_DIR} ${PREFIX}/share/skampi/dri
	(cd ${WRKSRC}/report_generator/dri && 			\
		${PAX} -rw . ${PREFIX}/share/skampi/dri)
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/skampi
	${INSTALL_DATA} ${WRKSRC}/${DISTNAME}_userman.ps 	\
		${PREFIX}/share/doc/skampi/
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/skampili.ps 	\
		${PREFIX}/share/doc/skampi/
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/skampi
	${INSTALL_DATA} ${WRKSRC}/.skampi 			\
		${PREFIX}/share/examples/skampi/dot.skampi
	${INSTALL_DATA} ${WRKSRC}/.skampi-all-collectives 	\
		${PREFIX}/share/examples/skampi/dot.skampi-all-collectives
	${INSTALL_DATA} ${WRKSRC}/.skampi-dt-long 		\
		${PREFIX}/share/examples/skampi/dot.skampi-dt-long
	${INSTALL_DATA} ${WRKSRC}/.skampi-dt-short 		\
		${PREFIX}/share/examples/skampi/dot.skampi-dt-short

.include "../../mk/bsd.pkg.mk"