diff options
author | Thierry Thomas <thierry@FreeBSD.org> | 2015-08-03 17:55:15 +0000 |
---|---|---|
committer | Thierry Thomas <thierry@FreeBSD.org> | 2015-08-03 17:55:15 +0000 |
commit | 7526f6d0f56c0c223a4e92b22c3a37a2d038da9e (patch) | |
tree | 3dc5954a4b58e0a66b39515842f7dc3ab4825b5d /science/meep | |
parent | 6cb4f5adaab67a960272cc3f4bfe76d8f24619ac (diff) | |
download | ports-7526f6d0f56c0c223a4e92b22c3a37a2d038da9e.tar.gz ports-7526f6d0f56c0c223a4e92b22c3a37a2d038da9e.zip |
Fix build. Options helpers cannot be used here.
Reported by: amdmi3
Notes
Notes:
svn path=/head/; revision=393477
Diffstat (limited to 'science/meep')
-rw-r--r-- | science/meep/Makefile | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/science/meep/Makefile b/science/meep/Makefile index dfca3ed9d4ac..e419b2f0ef2a 100644 --- a/science/meep/Makefile +++ b/science/meep/Makefile @@ -30,15 +30,6 @@ OPTIONS_RADIO_MPI= OPENMPI MPICH2 OPTIONS_DEFAULT= ${MPI_DEFAULT} OPENMPI_DESC= MPI support (with OpenMPI) -OPENMPI_BUILD_DEPENDS= ${LOCALBASE}/mpi/openmpi/bin/mpiCC:${PORTSDIR}/net/openmpi -OPENMPI_RUN_DEPENDS= ${LOCALBASE}/mpi/openmpi/bin/mpirun:${PORTSDIR}/net/openmpi -OPENMPI_CONFIGURE_ENV= MPICXX=${LOCALBASE}/mpi/openmpi/bin/mpiCC -OPENMPI_CFLAGS= -I${LOCALBASE}/mpi/openmpi/include - -MPICH2_LIB_DEPENDS= libmpich.so.8:${PORTSDIR}/net/mpich2 -MPICH2_CONFIGURE_ENV= MPICXX=${LOCALBASE}/bin/mpicc -MPICH2_CFLAGS= -I${LOCALBASE}/include - .include <bsd.port.pre.mk> .if ${OPSYS} == FreeBSD @@ -57,4 +48,17 @@ CONFIGURE_ARGS+= --without-mpi PLIST_SUB+= MPI="@comment " NOMPI="" .endif +.if ${PORT_OPTIONS:MMPICH2} +LIB_DEPENDS+= libmpich.so.8:${PORTSDIR}/net/mpich2 +CONFIGURE_ENV+= MPICXX=${LOCALBASE}/bin/mpicc +CFLAGS+= -I${LOCALBASE}/include +.endif + +.if ${PORT_OPTIONS:MOPENMPI} +BUILD_DEPENDS+= ${LOCALBASE}/mpi/openmpi/bin/mpiCC:${PORTSDIR}/net/openmpi +RUN_DEPENDS+= ${LOCALBASE}/mpi/openmpi/bin/mpirun:${PORTSDIR}/net/openmpi +CONFIGURE_ENV+= MPICXX=${LOCALBASE}/mpi/openmpi/bin/mpiCC +CFLAGS+= -I${LOCALBASE}/mpi/openmpi/include +.endif + .include <bsd.port.post.mk> |