diff options
author | Tobias C. Berner <tcberner@FreeBSD.org> | 2022-04-24 12:00:20 +0200 |
---|---|---|
committer | Tobias C. Berner <tcberner@FreeBSD.org> | 2022-04-24 12:00:20 +0200 |
commit | aa2539679084872cd84112e9df6bfee571570623 (patch) | |
tree | 68559db98006e070248f851f5adaa2ad18661717 /Mk/Uses/mpi.mk | |
parent | graphics/ImageMagick7: update to 7.1.0-31 (diff) |
framework: cleanup conditional-indentations in Mk/
Run Tools/scripts/indent_make_if.pl on all of Mk.
These white space changes contribute greatly to the readability of those files.
As we have a version control system, finding out the reasons for the changes
prior to these white space changes is still easily possible
Differential Revision: https://reviews.freebsd.org/D35024
Reviewed by: portmgr (rene, bapt)
Diffstat (limited to 'Mk/Uses/mpi.mk')
-rw-r--r-- | Mk/Uses/mpi.mk | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/Mk/Uses/mpi.mk b/Mk/Uses/mpi.mk index 62d86a289fd2..29c417ce62f8 100644 --- a/Mk/Uses/mpi.mk +++ b/Mk/Uses/mpi.mk @@ -19,47 +19,47 @@ _valid_ARGS= mpich openmpi _DEFAULT_MPI= mpich -.if empty(mpi_ARGS) +. if empty(mpi_ARGS) mpi_ARGS= ${_DEFAULT_MPI} -.endif +. endif -.if ! ${USES:Mpkgconfig} +. if ! ${USES:Mpkgconfig} USES+= pkgconfig -.endif +. endif -.if ${mpi_ARGS} == mpich +. if ${mpi_ARGS} == mpich LIB_DEPENDS+= libmpich.so:net/mpich MPI_HOME= ${LOCALBASE} MPI_LIBS+= `pkgconf --libs mpich` -. if ${USES:Mfortran} +. if ${USES:Mfortran} MPI_LIBS+= -lmpifort MPIFC= ${MPI_HOME}/bin/mpif90 MPIF90= ${MPIFC} -. endif +. endif MPI_CFLAGS+= `pkgconf --cflags mpich` -.elif ${mpi_ARGS} == openmpi +. elif ${mpi_ARGS} == openmpi LIB_DEPENDS+= libmpi_cxx.so:net/openmpi MPI_HOME= ${LOCALBASE}/mpi/openmpi -. if ${USES:Mfortran} +. if ${USES:Mfortran} MPI_LIBS+= `pkgconf --libs ompi-fort` MPIFC= ${MPI_HOME}/bin/mpif90 MPIF90= ${MPIFC} -. else +. else MPI_LIBS+= `pkgconf --libs ompi` -. endif +. endif MPI_CFLAGS+= `pkgconf --cflags ompi` -.else +. else IGNORE= USES=mpi: invalid arguments: ${mpi_ARGS} -.endif +. endif MPICC= ${MPI_HOME}/bin/mpicc MPICXX= ${MPI_HOME}/bin/mpicxx MPIEXEC= ${MPI_HOME}/bin/mpiexec MPIRUN= ${MPI_HOME}/bin/mpirun -.if ${USES:Mcmake} || ${USES:Mcmake\:*} +. if ${USES:Mcmake} || ${USES:Mcmake\:*} CMAKE_ARGS+= -DMPIEXEC_EXECUTABLE:FILEPATH="${MPIEXEC}" \ -DMPI_HOME:PATH="${MPI_HOME}" -.endif +. endif .endif |