freebsd-ports/science/mpb/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

53 lines
1.2 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= mpb
PORTVERSION= 1.5
PORTREVISION= 15
CATEGORIES= science
MASTER_SITES= http://ab-initio.mit.edu/mpb/
MAINTAINER= rhurlin@gwdg.de
COMMENT= MIT Photonic-Bands
LICENSE= GPLv2
BUILD_DEPENDS= bash:shells/bash
LIB_DEPENDS= libfftw.so:math/fftw \
libhdf5.so:science/hdf5 \
libctl.so:science/libctl \
libguile-2.2.so:lang/guile2
OPTIONS_DEFINE= ATLAS NLOPT
ATLAS_DESC= Use math/atlas instead of math/lapack
NLOPT_DESC= Use math/nlopt (check also in science/libctl)
USES= fortran libtool pkgconfig
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
NLOPT_LIB_DEPENDS= libnlopt.so:math/nlopt
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MATLAS}
LIB_DEPENDS+= libatlas.so:math/atlas
CONFIGURE_ARGS+= --with-lapack=-lalapack
.else
LIB_DEPENDS+= libblas.so:math/blas \
liblapack.so:math/lapack
CONFIGURE_ARGS+= --with-lapack=-llapack
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-lhdf5 |-lhdf5 -lpthread |g' \
${WRKSRC}/configure
@${REINPLACE_CMD} \
-e '/INSTALL/s/$$(prefix)/$$(DESTDIR)$$(prefix)/' \
-e '/INSTALL/s/$$(mandir)/$$(DESTDIR)$$(mandir)/' \
${WRKSRC}/mpb/Makefile.in ${WRKSRC}/utils/Makefile.in
.include <bsd.port.mk>