8 MASTER_SITES= http://ab-initio.mit.edu/mpb/
10 MAINTAINER= rhurlin@gwdg.de
11 COMMENT= MIT Photonic-Bands
15 BUILD_DEPENDS= bash:shells/bash
16 LIB_DEPENDS= libfftw.so:math/fftw \
17 libhdf5.so:science/hdf5 \
18 libctl.so:science/libctl \
19 libguile-2.0.so:lang/guile2
21 OPTIONS_DEFINE= ATLAS NLOPT
22 ATLAS_DESC= Use math/atlas instead of math/lapack
23 NLOPT_DESC= Use math/nlopt (check also in science/libctl)
25 USES= fortran libtool pkgconfig
29 CPPFLAGS+= -I${LOCALBASE}/include
30 LDFLAGS+= -L${LOCALBASE}/lib
32 NLOPT_LIB_DEPENDS= libnlopt.so:math/nlopt
34 .include <bsd.port.options.mk>
36 .if ${PORT_OPTIONS:MATLAS}
37 LIB_DEPENDS+= libatlas.so:math/atlas
38 CONFIGURE_ARGS+= --with-lapack=-lalapack
40 LIB_DEPENDS+= libblas.so:math/blas \
41 liblapack.so:math/lapack
42 CONFIGURE_ARGS+= --with-lapack=-llapack
46 @${REINPLACE_CMD} -e 's|-lhdf5 |-lhdf5 -lpthread |g' \
49 -e '/INSTALL/s/$$(prefix)/$$(DESTDIR)$$(prefix)/' \
50 -e '/INSTALL/s/$$(mandir)/$$(DESTDIR)$$(mandir)/' \
51 ${WRKSRC}/mpb/Makefile.in ${WRKSRC}/utils/Makefile.in
53 .include <bsd.port.mk>