freebsd-ports/science/meep/Makefile
Gerald Pfeifer ea8c8ec7da Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2019-07-26 20:46:53 +00:00

66 lines
1.7 KiB
Makefile

# Created by: Stas Timokhin <devel@stasyan.com>
# $FreeBSD$
PORTNAME= meep
PORTVERSION= 1.2.1
PORTREVISION= 19
CATEGORIES= science
MASTER_SITES= http://ab-initio.mit.edu/meep/
MAINTAINER= devel@stasyan.com
COMMENT= FDTD simulation software to model electromagnetic systems
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN= very old version, incompatible with Guile 2.2
BUILD_DEPENDS= harminv:science/harminv \
gsed:textproc/gsed
LIB_DEPENDS= libfftw3.so:math/fftw3 \
libblas.so:math/blas \
libguile-2.2.so:lang/guile2 \
libctl.so:science/libctl \
libgc-threaded.so:devel/boehm-gc-threaded \
libgsl.so:math/gsl \
libhdf5.so:science/hdf5 \
liblapack.so:math/lapack
RUN_DEPENDS= harminv:science/harminv
USES= fortran gettext gmake iconv libtool pathfix pkgconfig
GNU_CONFIGURE= yes
USE_GCC= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ARGS+= CC="${CC}" CXX="${CXX}"
OPTIONS_RADIO= MPI
OPTIONS_RADIO_MPI= OPENMPI MPICH2
OPTIONS_DEFAULT= ${OPTIONS_DEFAULT_${OPSYS}}
OPTIONS_DEFAULT_FreeBSD= MPICH2
OPENMPI_DESC= MPI support (with OpenMPI)
.include <bsd.port.pre.mk>
.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: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 <bsd.port.post.mk>