1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/science/mpb/Makefile
Antoine Brodin ab52f9ad32 Mark BROKEN: Fails to build
cc -DHAVE_CONFIG_H -I../util -I../matrices -I. -I/usr/local/include -I/usr/local/include -I/usr/local/include -D_THREAD_SAFE -pthread -c -O2 -pipe -fno-strict-aliasing -Wall -W -Wbad-function-cast -Wcast-qual -Wpointer-arith -Wcast-align -pedantic matrixio.c -o matrixio.o
In file included from /usr/local/include/hdf5.h:24,
                 from matrixio.h:24,
                 from matrixio.c:34:
/usr/local/include/H5public.h:151: warning: ISO C90 does not support 'long long'
/usr/local/include/H5public.h:152: warning: ISO C90 does not support 'long long'
In file included from /usr/local/include/hdf5.h:45,
                 from matrixio.h:24,
                 from matrixio.c:34:
/usr/local/include/H5FDlog.h:65: warning: ISO C90 does not support 'long long'
matrixio.c: In function 'write_attr':
matrixio.c:91: error: too few arguments to function 'H5Dcreate2'
matrixio.c:97: error: too few arguments to function 'H5Acreate2'

Reported by:	pkg-fallout
2014-05-18 15:40:13 +00:00

53 lines
1.2 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= mpb
PORTVERSION= 1.4.2
PORTREVISION= 15
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
OPTIONS_DEFINE= ATLAS
ATLAS_DESC= Use math/atlas instead of math/lapack
USES= fortran
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
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>