blob: 3d8fbb652c2b1d88a3d042a006f65f2567fde7fb (
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
|
# New ports collection makefile for: mdtest
# Date created: 2007-4-20
# Whom: Chao Shin <quakelee@cn.freebsd.org>
#
# $FreeBSD$
#
PORTNAME= mdtest
PORTVERSION= 1.7.1
PORTREVISION= 1
CATEGORIES= benchmarks
MASTER_SITES= http://www.llnl.gov/icc/lc/siop/downloads/
MAINTAINER= quakelee@cn.FreeBSD.org
COMMENT= A filesystem metadata benchmark utility
PLIST_FILES= bin/mdtest
OPTIONS= OPENMPI "Use openmpi instead of mpich2" off
.include <bsd.port.pre.mk>
.if defined(WITH_OPENMPI)
BUILD_DEPENDS+= ${LOCALBASE}/mpi/openmpi/bin/mpicc:${PORTSDIR}/net/openmpi
RUN_DEPENDS+= ${LOCALBASE}/mpi/openmpi/lib/libmpi.so:${PORTSDIR}/net/openmpi
MPICC= ${LOCALBASE}/mpi/openmpi/bin/mpicc
.else
BUILD_DEPENDS+= ${LOCALBASE}/mpich2/bin/mpicc:${PORTSDIR}/net/mpich2
RUN_DEPENDS+= ${LOCALBASE}/mpich2/lib/libmpich.so:${PORTSDIR}/net/mpich2
MPICC= ${LOCALBASE}/mpich2/bin/mpicc
.endif
USE_GMAKE= yes
ALL_TARGET= mdtest
post-patch:
@${REINPLACE_CMD} -e 's|%%MPICC%%|${MPICC}|' ${WRKSRC}/${MAKEFILE}
do-install:
${STRIP_CMD} ${WRKSRC}/mdtest
${INSTALL_PROGRAM} ${WRKSRC}/mdtest ${PREFIX}/bin
.include <bsd.port.post.mk>
|