forked from Lainports/freebsd-ports
Fix options usage.
You cannot set a variable after any include and use it in options, as options is one of the few things that are done very very early. PR: 223071 Reported by: antoine Sponsored by: Absolight
This commit is contained in:
parent
1578a55688
commit
4b19de29ad
1 changed files with 2 additions and 5 deletions
|
|
@ -27,15 +27,12 @@ MAKE_ARGS+= CC="${CC}" CXX="${CXX}"
|
|||
|
||||
OPTIONS_RADIO= MPI
|
||||
OPTIONS_RADIO_MPI= OPENMPI MPICH2
|
||||
OPTIONS_DEFAULT= ${MPI_DEFAULT}
|
||||
OPTIONS_DEFAULT= ${OPTIONS_DEFAULT_${OPSYS}}
|
||||
OPTIONS_DEFAULT_FreeBSD= MPICH2
|
||||
OPENMPI_DESC= MPI support (with OpenMPI)
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OPSYS} == FreeBSD
|
||||
MPI_DEFAULT= MPICH2
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MMPICH2} || ${PORT_OPTIONS:MOPENMPI}
|
||||
CONFIGURE_ARGS+= --with-mpi
|
||||
PLIST_SUB+= MPI="" NOMPI="@comment "
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue