aboutsummaryrefslogtreecommitdiffstats
path: root/science
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2017-10-27 20:19:20 +0800
committerMathieu Arnold <mat@FreeBSD.org>2017-10-27 20:19:20 +0800
commit4b19de29adb0a75ac90d8764ddfa73ba6f2c2b5e (patch)
tree9fc69ae038059d1bc627575778919d02593bb1e9 /science
parent1578a5568858ebc21184adeaa80fe0223840f03f (diff)
downloadfreebsd-ports-gnome-4b19de29adb0a75ac90d8764ddfa73ba6f2c2b5e.tar.gz
freebsd-ports-gnome-4b19de29adb0a75ac90d8764ddfa73ba6f2c2b5e.tar.zst
freebsd-ports-gnome-4b19de29adb0a75ac90d8764ddfa73ba6f2c2b5e.zip
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
Diffstat (limited to 'science')
-rw-r--r--science/meep/Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/science/meep/Makefile b/science/meep/Makefile
index 1d6cde080109..c2768ef4bb81 100644
--- a/science/meep/Makefile
+++ b/science/meep/Makefile
@@ -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 "