diff options
author | bapt <bapt@FreeBSD.org> | 2012-06-01 21:18:21 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-06-01 21:18:21 +0800 |
commit | 4731dde58d46065936cb4e5d5cc90a1c28d51209 (patch) | |
tree | 7b84966f61227d2e957f51e93d2f7c00aadf0119 /benchmarks/mdtest | |
parent | 5288a5bc5ae68f669128326d195b9de6857de215 (diff) | |
download | freebsd-ports-gnome-4731dde58d46065936cb4e5d5cc90a1c28d51209.tar.gz freebsd-ports-gnome-4731dde58d46065936cb4e5d5cc90a1c28d51209.tar.zst freebsd-ports-gnome-4731dde58d46065936cb4e5d5cc90a1c28d51209.zip |
Convert to new options framework
Diffstat (limited to 'benchmarks/mdtest')
-rw-r--r-- | benchmarks/mdtest/Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/benchmarks/mdtest/Makefile b/benchmarks/mdtest/Makefile index e557fead1426..b82e6e566b8f 100644 --- a/benchmarks/mdtest/Makefile +++ b/benchmarks/mdtest/Makefile @@ -16,7 +16,8 @@ COMMENT= A filesystem metadata benchmark utility LICENSE= GPLv2 -OPTIONS= OPENMPI "Use openmpi instead of mpich2" off +OPTIONS_DEFINE= OPENMPI EXAMPLES +OPENMPI_DESC= Use openmpi instead of mpich2 MAN1= ${PORTNAME}.1 PORTEXAMPLES= * @@ -24,9 +25,9 @@ PLIST_FILES= bin/${PORTNAME} CFLAGS+= -DDarwin -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_OPENMPI) +.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 @@ -42,9 +43,9 @@ do-build: do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1 -.if !defined(NOPORTEXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${EXAMPLESDIR} @(cd ${WRKSRC}/scripts && ${COPYTREE_SHARE} . ${EXAMPLESDIR}) .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |