1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/science/mpb/Makefile

53 lines
1.2 KiB
Makefile
Raw Normal View History

# Created by: ijliao
2003-04-04 10:22:55 +00:00
# $FreeBSD$
PORTNAME= mpb
PORTVERSION= 1.4.2
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
LICENSE= GPLv2
BROKEN= Fails to build
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
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
OPTIONS_DEFINE= ATLAS
ATLAS_DESC= Use math/atlas instead of math/lapack
USES= fortran
2003-04-04 10:22:55 +00:00
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.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
2003-04-04 10:22:55 +00:00
post-patch:
@${REINPLACE_CMD} -e 's|-lhdf5 |-lhdf5 ${PTHREAD_LIBS} |g' \
${WRKSRC}/configure
@${REINPLACE_CMD} \
-e '/INSTALL/s/$$(prefix)/$$(DESTDIR)$$(prefix)/' \
-e '/INSTALL/s/$$(mandir)/$$(DESTDIR)$$(mandir)/' \
${WRKSRC}/mpb-ctl/Makefile.in ${WRKSRC}/utils/Makefile.in
.include <bsd.port.mk>