e4796f7301
- Bump PORTREVISION for science/hdf5 shlib change Changes: http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.15-RELEASE.txt http://www.hdfgroup.org/HDF5/doc/ADGuide/Changes.html
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mpb
|
|
PORTVERSION= 1.5
|
|
PORTREVISION= 2
|
|
CATEGORIES= science
|
|
MASTER_SITES= http://ab-initio.mit.edu/mpb/
|
|
|
|
MAINTAINER= rhurlin@gwdg.de
|
|
COMMENT= MIT Photonic-Bands
|
|
|
|
LICENSE= GPLv2
|
|
|
|
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
|
|
LIB_DEPENDS= libfftw.so:${PORTSDIR}/math/fftw \
|
|
libhdf5.so:${PORTSDIR}/science/hdf5 \
|
|
libctl.so:${PORTSDIR}/science/libctl \
|
|
libguile-2.0.so:${PORTSDIR}/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:${PORTSDIR}/math/nlopt
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MATLAS}
|
|
LIB_DEPENDS+= libatlas.so:${PORTSDIR}/math/atlas
|
|
CONFIGURE_ARGS+= --with-lapack=-lalapack
|
|
.else
|
|
LIB_DEPENDS+= libblas.so:${PORTSDIR}/math/blas \
|
|
liblapack.so:${PORTSDIR}/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>
|