From b169ba0a1a2023cb6869914d543a8b9f0176bf09 Mon Sep 17 00:00:00 2001 From: DPorts Builder Date: Sun, 12 Jan 2014 20:49:48 -0800 Subject: [PATCH] Tweak science/mpb version 1.4.2_13 --- science/mpb/Makefile | 41 +++++++++++++++++++++-------------------- science/mpb/pkg-plist | 3 +++ 2 files changed, 24 insertions(+), 20 deletions(-) diff --git a/science/mpb/Makefile b/science/mpb/Makefile index 0b99ac8d11b..81f20808095 100644 --- a/science/mpb/Makefile +++ b/science/mpb/Makefile @@ -1,5 +1,5 @@ # Created by: ijliao -# $FreeBSD: science/mpb/Makefile 331644 2013-10-26 00:52:33Z gerald $ +# $FreeBSD: science/mpb/Makefile 337810 2013-12-27 21:28:47Z tijl $ PORTNAME= mpb PORTVERSION= 1.4.2 @@ -12,38 +12,39 @@ COMMENT= MIT Photonic-Bands LICENSE= GPLv2 -MAKE_JOBS_UNSAFE= yes - BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash -LIB_DEPENDS= fftw:${PORTSDIR}/math/fftw \ - hdf5:${PORTSDIR}/science/hdf5 \ - ctl:${PORTSDIR}/science/libctl \ - guile:${PORTSDIR}/lang/guile +LIB_DEPENDS= libfftw.so:${PORTSDIR}/math/fftw \ + libhdf5.so:${PORTSDIR}/science/hdf5 \ + libctl.so:${PORTSDIR}/science/libctl \ + libguile.so:${PORTSDIR}/lang/guile -USE_FORTRAN= yes +OPTIONS_DEFINE= ATLAS +ATLAS_DESC= Use math/atlas instead of math/lapack -NO_STAGE= yes -.include +USES= fortran GNU_CONFIGURE= yes +MAKE_JOBS_UNSAFE= 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:${PORTSDIR}/math/atlas +.include + +.if ${PORT_OPTIONS:MATLAS} +LIB_DEPENDS+= libatlas.so:${PORTSDIR}/math/atlas CONFIGURE_ARGS+= --with-lapack=-lalapack .else -LIB_DEPENDS+= blas:${PORTSDIR}/math/blas -LIB_DEPENDS+= lapack:${PORTSDIR}/math/lapack +LIB_DEPENDS+= libblas.so:${PORTSDIR}/math/blas \ + liblapack.so:${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 + @${REINPLACE_CMD} \ + -e '/INSTALL/s/$$(prefix)/$$(DESTDIR)$$(prefix)/' \ + -e '/INSTALL/s/$$(mandir)/$$(DESTDIR)$$(mandir)/' \ + ${WRKSRC}/mpb-ctl/Makefile.in ${WRKSRC}/utils/Makefile.in -.include +.include diff --git a/science/mpb/pkg-plist b/science/mpb/pkg-plist index 6bb62c7e2c9..50722719fa4 100644 --- a/science/mpb/pkg-plist +++ b/science/mpb/pkg-plist @@ -1,5 +1,8 @@ bin/mpb bin/mpb-split bin/mpb-data +man/man1/mpb.1.gz +man/man1/mpb-data.1.gz +man/man1/mpb-split.1.gz share/libctl/specs/mpb.scm @dirrmtry share/libctl/specs -- 2.41.0