1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/science/mpb/Makefile
Brendan Fabeny 004a7c5ac2 adjust linking and comments in dependent ports after the math/atlas update;
math/atlas-devel will be updated to use the same constructs at a later date

PR:		162706
Approved by:	miwi (portmgr)
Feature safe:	yes
2011-11-22 11:14:10 +00:00

50 lines
1.1 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: mpb
# Date created: Apr 4, 2003
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= mpb
PORTVERSION= 1.4.2
PORTREVISION= 11
CATEGORIES= science
MASTER_SITES= http://ab-initio.mit.edu/mpb/
MAINTAINER= ports@FreeBSD.org
COMMENT= MIT Photonic-Bands
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
LIB_DEPENDS= fftw.2:${PORTSDIR}/math/fftw \
hdf5.0:${PORTSDIR}/science/hdf5 \
ctl.4:${PORTSDIR}/science/libctl \
guile.21:${PORTSDIR}/lang/guile
USE_FORTRAN= yes
.include <bsd.port.pre.mk>
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.if exists(${LOCALBASE}/lib/libatlas.so) && !defined(WITH_BLAS)
WITH_ATLAS= yes
.endif
.if defined(WITH_ATLAS)
LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas
CONFIGURE_ARGS+= --with-lapack=-lalapack
.else
LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack
CONFIGURE_ARGS+= --with-lapack=-llapack
.endif
MAN1= mpb.1 mpb-data.1 mpb-split.1
post-patch:
@${REINPLACE_CMD} -e 's|-lhdf5 |-lhdf5 ${PTHREAD_LIBS} |g' \
${WRKSRC}/configure
.include <bsd.port.post.mk>