2013-06-20 13:35:33 +00:00
|
|
|
# Created by: ijliao
|
2003-04-04 10:22:55 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mpb
|
|
|
|
PORTVERSION= 1.4.2
|
2014-09-10 20:50:31 +00:00
|
|
|
PORTREVISION= 17
|
2003-04-04 10:22:55 +00:00
|
|
|
CATEGORIES= science
|
|
|
|
MASTER_SITES= http://ab-initio.mit.edu/mpb/
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
COMMENT= MIT Photonic-Bands
|
|
|
|
|
2013-06-20 13:35:33 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2014-05-18 15:40:13 +00:00
|
|
|
BROKEN= Fails to build
|
|
|
|
|
2008-04-16 10:42:58 +00:00
|
|
|
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
|
2013-12-27 21:28:47 +00:00
|
|
|
LIB_DEPENDS= libfftw.so:${PORTSDIR}/math/fftw \
|
|
|
|
libhdf5.so:${PORTSDIR}/science/hdf5 \
|
|
|
|
libctl.so:${PORTSDIR}/science/libctl \
|
|
|
|
libguile.so:${PORTSDIR}/lang/guile
|
2003-04-04 10:22:55 +00:00
|
|
|
|
2013-12-27 21:28:47 +00:00
|
|
|
OPTIONS_DEFINE= ATLAS
|
|
|
|
ATLAS_DESC= Use math/atlas instead of math/lapack
|
2007-01-17 03:18:17 +00:00
|
|
|
|
2013-12-27 21:28:47 +00:00
|
|
|
USES= fortran
|
2003-04-04 10:22:55 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2013-12-27 21:28:47 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
|
2011-09-23 22:26:39 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2007-01-17 03:18:17 +00:00
|
|
|
|
2013-12-27 21:28:47 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MATLAS}
|
|
|
|
LIB_DEPENDS+= libatlas.so:${PORTSDIR}/math/atlas
|
2003-12-07 01:12:25 +00:00
|
|
|
CONFIGURE_ARGS+= --with-lapack=-lalapack
|
2007-01-17 03:18:17 +00:00
|
|
|
.else
|
2013-12-27 21:28:47 +00:00
|
|
|
LIB_DEPENDS+= libblas.so:${PORTSDIR}/math/blas \
|
|
|
|
liblapack.so:${PORTSDIR}/math/lapack
|
2007-01-17 03:18:17 +00:00
|
|
|
CONFIGURE_ARGS+= --with-lapack=-llapack
|
|
|
|
.endif
|
2003-04-04 10:22:55 +00:00
|
|
|
|
2003-12-07 01:12:25 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|-lhdf5 |-lhdf5 ${PTHREAD_LIBS} |g' \
|
|
|
|
${WRKSRC}/configure
|
2013-12-27 21:28:47 +00:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e '/INSTALL/s/$$(prefix)/$$(DESTDIR)$$(prefix)/' \
|
|
|
|
-e '/INSTALL/s/$$(mandir)/$$(DESTDIR)$$(mandir)/' \
|
|
|
|
${WRKSRC}/mpb-ctl/Makefile.in ${WRKSRC}/utils/Makefile.in
|
2003-12-07 01:12:25 +00:00
|
|
|
|
2013-12-27 21:28:47 +00:00
|
|
|
.include <bsd.port.mk>
|