ports/58337: [supersedes ports/58142] Make science/mpb actually useful
AMAKAWA Shuhei
sa264 at cam.ac.uk
Tue Oct 21 16:20:11 UTC 2003
>Number: 58337
>Category: ports
>Synopsis: [supersedes ports/58142] Make science/mpb actually useful
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Oct 21 09:20:08 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: AMAKAWA Shuhei
>Release: FreeBSD 4.9-RC i386
>Organization:
>Environment:
System: FreeBSD m218-3.phy.cam.ac.uk 4.9-RC FreeBSD 4.9-RC #1: Fri Oct 17 00:12:38 BST 2003 sa264 at m218-3.phy.cam.ac.uk:/usr/obj/usr/src/sys/KERNCONF i386
>Description:
Make science/mpb has been pretty much useless because it wasn't
correctly linked with hdf5 as it appears in the Makefile. Now this
is properly done by linking pthread lib too, which is required by
hdf5. Also, correctly link with ATLAS version of LAPACK.
Please close ports/58142.
>How-To-Repeat:
>Fix:
diff -uNr /usr/ports/science/mpb/Makefile mpb/Makefile
--- /usr/ports/science/mpb/Makefile Wed May 7 22:00:42 2003
+++ mpb/Makefile Tue Oct 21 11:50:23 2003
@@ -14,19 +14,23 @@
MAINTAINER= ports at FreeBSD.org
COMMENT= MIT Photonic-Bands
+USE_REINPLACE= yes
BUILD_DEPENDS= ${LOCALBASE}/lib/libctl.a:${PORTSDIR}/science/libctl \
bash:${PORTSDIR}/shells/bash2
-LIB_DEPENDS= blas.1:${PORTSDIR}/math/blas \
- lapack.3:${PORTSDIR}/math/lapack \
- atlas.1:${PORTSDIR}/math/atlas \
+LIB_DEPENDS= atlas.1:${PORTSDIR}/math/atlas \
fftw.2:${PORTSDIR}/math/fftw \
hdf5.0:${PORTSDIR}/graphics/hdf5 \
guile.15:${PORTSDIR}/lang/guile
GNU_CONFIGURE= yes
-CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS+= --with-lapack=-lalapack
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.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list