svn commit: r452975 - head/science/meep
Mathieu Arnold
mat at FreeBSD.org
Fri Oct 27 12:19:21 UTC 2017
Author: mat
Date: Fri Oct 27 12:19:20 2017
New Revision: 452975
URL: https://svnweb.freebsd.org/changeset/ports/452975
Log:
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
Modified:
head/science/meep/Makefile (contents, props changed)
Modified: head/science/meep/Makefile
==============================================================================
--- head/science/meep/Makefile Fri Oct 27 12:19:16 2017 (r452974)
+++ head/science/meep/Makefile Fri Oct 27 12:19:20 2017 (r452975)
@@ -27,14 +27,11 @@ 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
More information about the svn-ports-head
mailing list