freebsd-ports/benchmarks/mdtest/Makefile
Dennis Herrmann 35f49b60d6 - Update to 1.8.3
PR:		ports/160082
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2011-09-01 17:21:46 +00:00

51 lines
1.3 KiB
Makefile

# New ports collection makefile for: mdtest
# Date created: 2007-4-20
# Whom: Chao Shin <quakelee@cn.freebsd.org>
#
# $FreeBSD$
#
PORTNAME= mdtest
PORTVERSION= 1.8.3
CATEGORIES= benchmarks
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20latest/${PORTNAME}-${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= A filesystem metadata benchmark utility
LICENSE= GPLv2
OPTIONS= OPENMPI "Use openmpi instead of mpich2" off
MAN1= ${PORTNAME}.1
PORTEXAMPLES= *
PLIST_FILES= bin/${PORTNAME}
CFLAGS+= -DDarwin
.include <bsd.port.pre.mk>
.if defined(WITH_OPENMPI)
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
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
@(cd ${WRKSRC}/scripts && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
.endif
.include <bsd.port.post.mk>