Index: head/science/meep/Makefile =================================================================== --- head/science/meep/Makefile (revision 452974) +++ head/science/meep/Makefile (revision 452975) @@ -1,60 +1,57 @@ # Created by: Stas Timokhin # $FreeBSD$ PORTNAME= meep PORTVERSION= 1.2.1 PORTREVISION= 9 CATEGORIES= science MASTER_SITES= http://ab-initio.mit.edu/meep/ MAINTAINER= devel@stasyan.com COMMENT= FDTD simulation software to model electromagnetic systems BUILD_DEPENDS= harminv:science/harminv \ gsed:textproc/gsed LIB_DEPENDS= libguile-2.0.so:lang/guile2 \ libblas.so:math/blas \ libctl.so:science/libctl \ libhdf5.so:science/hdf5 RUN_DEPENDS= harminv:science/harminv GNU_CONFIGURE= yes USE_GCC= yes USES= fortran gettext gmake iconv libtool pathfix pkgconfig CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib 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 - -.if ${OPSYS} == FreeBSD -MPI_DEFAULT= MPICH2 -.endif .if ${PORT_OPTIONS:MMPICH2} || ${PORT_OPTIONS:MOPENMPI} CONFIGURE_ARGS+= --with-mpi PLIST_SUB+= MPI="" NOMPI="@comment " .else CONFIGURE_ARGS+= --without-mpi PLIST_SUB+= MPI="@comment " NOMPI="" .endif .if ${PORT_OPTIONS:MMPICH2} LIB_DEPENDS+= libmpich.so.8:net/mpich2 CONFIGURE_ENV+= MPICXX=${LOCALBASE}/bin/mpicc CFLAGS+= -I${LOCALBASE}/include .endif .if ${PORT_OPTIONS:MOPENMPI} BUILD_DEPENDS+= ${LOCALBASE}/mpi/openmpi/bin/mpiCC:net/openmpi RUN_DEPENDS+= ${LOCALBASE}/mpi/openmpi/bin/mpirun:net/openmpi CONFIGURE_ENV+= MPICXX=${LOCALBASE}/mpi/openmpi/bin/mpiCC CFLAGS+= -I${LOCALBASE}/mpi/openmpi/include .endif .include