Changeset View
Changeset View
Standalone View
Standalone View
science/fvm/Makefile
Show All 32 Lines | |||||
.else | .else | ||||
BUILD_DEPENDS+= ${LOCALBASE}/bin/mpicc:net/mpich2 | BUILD_DEPENDS+= ${LOCALBASE}/bin/mpicc:net/mpich2 | ||||
RUN_DEPENDS+= ${LOCALBASE}/bin/mpirun:net/mpich2 | RUN_DEPENDS+= ${LOCALBASE}/bin/mpirun:net/mpich2 | ||||
CONFIGURE_ARGS+= --with-mpi=${LOCALBASE} | CONFIGURE_ARGS+= --with-mpi=${LOCALBASE} | ||||
# Do not directly depend on Fortran, but FFLAGS needed to link with mpich2 | # Do not directly depend on Fortran, but FFLAGS needed to link with mpich2 | ||||
USES+= fortran | USES+= fortran | ||||
.endif | .endif | ||||
.if defined(WITH_DEBUG) | DEBUG_CONFIGURE_ENABLE= debug | ||||
CONFIGURE_ARGS+= --enable-debug | |||||
.endif | |||||
TESTSBIN= fvm_file_test fvm_interface_test fvm_selector_postfix_test fvm_selector_test | TESTSBIN= fvm_file_test fvm_interface_test fvm_selector_postfix_test fvm_selector_test | ||||
pre-configure: | pre-configure: | ||||
${REINPLACE_CMD} -e 's|-lmpich|-lmpich -lmpl|' \ | ${REINPLACE_CMD} -e 's|-lmpich|-lmpich -lmpl|' \ | ||||
${WRKSRC}/${CONFIGURE_SCRIPT} | ${WRKSRC}/${CONFIGURE_SCRIPT} | ||||
# No useful doc there | # No useful doc there | ||||
${REINPLACE_CMD} -e 's|tests doc|tests|' ${WRKSRC}/Makefile.in | ${REINPLACE_CMD} -e 's|tests doc|tests|' ${WRKSRC}/Makefile.in | ||||
regression-test: | regression-test: | ||||
.for pg in ${TESTSBIN} | .for pg in ${TESTSBIN} | ||||
(cd ${WRKSRC}/tests; ./${pg}) | (cd ${WRKSRC}/tests; ./${pg}) | ||||
.endfor | .endfor | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |