mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
fdecfdfca8
PR: ports/178572 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
# Created by: Chao Shin <quakelee@cn.freebsd.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mdtest
|
|
PORTVERSION= 1.9.1
|
|
CATEGORIES= benchmarks
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20latest/${PORTNAME}-${PORTVERSION}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Filesystem metadata benchmark utility
|
|
|
|
LICENSE= GPLv2
|
|
|
|
OPTIONS_DEFINE= OPENMPI EXAMPLES
|
|
OPENMPI_DESC= Use Open MPI instead of MPICH2
|
|
|
|
MAN1= ${PORTNAME}.1
|
|
PORTEXAMPLES= *
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
CFLAGS+= -DDarwin
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MOPENMPI}
|
|
BUILD_DEPENDS+= ${LOCALBASE}/mpi/openmpi/bin/mpicc:${PORTSDIR}/net/openmpi
|
|
RUN_DEPENDS+= ${LOCALBASE}/mpi/openmpi/bin/mpirun:${PORTSDIR}/net/openmpi
|
|
MPICC= ${LOCALBASE}/mpi/openmpi/bin/mpicc
|
|
.else
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/mpicc:${PORTSDIR}/net/mpich2
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/mpirun:${PORTSDIR}/net/mpich2
|
|
MPICC= ${LOCALBASE}/bin/mpicc
|
|
.endif
|
|
|
|
do-build:
|
|
(cd ${WRKSRC} && ${MPICC} ${CFLAGS} -o ${PORTNAME} ${PORTNAME}.c -lm)
|
|
|
|
do-install:
|
|
(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} ${PREFIX}/bin)
|
|
(cd ${WRKSRC} && ${INSTALL_MAN} ${PORTNAME}.1 ${MANPREFIX}/man/man1)
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
(cd ${WRKSRC}/scripts && ${INSTALL_DATA} * ${EXAMPLESDIR})
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|