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
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=452975
@ -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…
Reference in New Issue
Block a user