View | Details | Raw Unified | Return to bug 100755
Collapse All | Expand All

(-)math/blacs/Makefile (-5 / +6 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	blacs
8
PORTNAME=	blacs
9
PORTVERSION=	1.7
9
PORTVERSION=	1.7
10
PORTREVISION=	1
10
PORTREVISION=	2
11
CATEGORIES=	math
11
CATEGORIES=	math
12
MASTER_SITES=	ftp://ftp.netlib.org/blacs/
12
MASTER_SITES=	ftp://ftp.netlib.org/blacs/
13
DISTNAME=	BLACS
13
DISTNAME=	BLACS
Lines 22-30 Link Here
22
MAINTAINER=	maho@FreeBSD.org
22
MAINTAINER=	maho@FreeBSD.org
23
COMMENT=	The BLACS (Basic Linear Algebra Communication Subprograms)
23
COMMENT=	The BLACS (Basic Linear Algebra Communication Subprograms)
24
24
25
BUILD_DEPENDS=	${LOCALBASE}/mpich/lib/libmpich.a:${PORTSDIR}/net/mpich
25
BUILD_DEPENDS=	${LOCALBASE}/mpich2/lib/libmpich.a:${PORTSDIR}/net/mpich2
26
RUN_DEPENDS=	${LOCALBASE}/mpich2/bin/mpirun:${PORTSDIR}/net/mpich2
26
27
27
PKGMESSAGE=	${WRKDIR}/pkg-message
28
PKGMESSAGE=	${WRKDIR}/pkg-message
29
SUB_FILES=	pkg-message
28
30
29
.include <bsd.port.pre.mk>
31
.include <bsd.port.pre.mk>
30
32
Lines 53-60 Link Here
53
55
54
pre-patch:
56
pre-patch:
55
	(${CP} ${WRKSRC}/BMAKES/Bmake.MPI-LINUX ${WRKSRC}/Bmake.inc)
57
	(${CP} ${WRKSRC}/BMAKES/Bmake.MPI-LINUX ${WRKSRC}/Bmake.inc)
58
56
post-patch:
59
post-patch:
57
	(${REINPLACE_CMD} -e 's,@WRKSRC@,${WRKSRC},g ; s,@DEBUG_LEVEL@,${DEBUG_LEVEL},g ; s,@PREFIX@,${PREFIX},g ; s,@CC@,${CC},g ; s,@CFLAGS@,${CFLAGS},g ; s,@F77@,${F77},g ; s,@FFLAGS@,${FFLAGS},g ; s,@F77EXTRAFLAGS@,${F77EXTRAFLAGS},g ; s,   ARCH *.= ar,   ARCMD = ar,'  ${WRKSRC}/Bmake.inc)
60
	(${REINPLACE_CMD} -e 's,@WRKSRC@,${WRKSRC},g ; s,@DEBUG_LEVEL@,${DEBUG_LEVEL},g ; s,@LOCALBASE@,${LOCALBASE},g ; s,@CC@,${CC},g ; s,@CFLAGS@,${CFLAGS},g ; s,@F77@,${F77},g ; s,@FFLAGS@,${FFLAGS},g ; s,@F77EXTRAFLAGS@,${F77EXTRAFLAGS},g ; s,   ARCH *.= ar,   ARCMD = ar,'  ${WRKSRC}/Bmake.inc)
58
	${REINPLACE_CMD} -e 's|\$$(ARCH)|$$(ARCMD)|' ${WRKSRC}/SRC/MPI/Makefile
61
	${REINPLACE_CMD} -e 's|\$$(ARCH)|$$(ARCMD)|' ${WRKSRC}/SRC/MPI/Makefile
59
62
60
do-build:
63
do-build:
Lines 83-90 Link Here
83
.endif
86
.endif
84
87
85
post-install:
88
post-install:
86
	@${SED} -e 's,/usr/local,${PREFIX},g' ${FILESDIR}/pkg-message.in \
87
		> ${PKGMESSAGE}
88
	@${CAT} ${PKGMESSAGE}
89
	@${CAT} ${PKGMESSAGE}
89
90
90
.include <bsd.port.post.mk>
91
.include <bsd.port.post.mk>
(-)math/blacs/files/patch-Bmake.inc (-2 / +2 lines)
Lines 31-41 Link Here
31
 #  Name and location of the MPI library.
31
 #  Name and location of the MPI library.
32
 #  -------------------------------------
32
 #  -------------------------------------
33
-   MPIdir = /usr/local/mpich
33
-   MPIdir = /usr/local/mpich
34
+   MPIdir = @PREFIX@/mpich
34
+   MPIdir = @LOCALBASE@/mpich2
35
    MPILIBdir = $(MPIdir)/lib/
35
    MPILIBdir = $(MPIdir)/lib/
36
    MPIINCdir = $(MPIdir)/include
36
    MPIINCdir = $(MPIdir)/include
37
-   MPILIB = $(MPILIBdir)/libmpich.a
37
-   MPILIB = $(MPILIBdir)/libmpich.a
38
+   MPILIB = $(MPILIBdir)/libmpich.a $(MPILIBdir)/libpmpich.a
38
+   MPILIB = $(MPILIBdir)/libmpich.a
39
 
39
 
40
 #  -------------------------------------
40
 #  -------------------------------------
41
 #  All libraries required by the tester.
41
 #  All libraries required by the tester.
(-)math/blacs/files/pkg-message.in (-5 / +7 lines)
Lines 1-12 Link Here
1
*********************************************************************
1
*********************************************************************
2
 Please test your blacs installation
2
 Please test your blacs installation
3
 Test programs are located at /usr/local/share/BLACS/TESTING
3
 Test programs are located at %%PREFIX%%/share/BLACS/TESTING
4
4
5
 Example:
5
 Example:
6
  % cd /usr/local/share/BLACS/TESTING
6
  % cd %%PREFIX%%/share/BLACS/TESTING
7
  % /usr/local/mpich/bin/mpirun -np 4 xCbtest_MPI-FreeBSD
7
  % %%LOCALBASE%%/mpich2/bin/mpd &
8
  % /usr/local/mpich/bin/mpirun -np 4 xFbtest_MPI-FreeBSD
8
  % %%LOCALBASE%%/mpich2/bin/mpirun -np 4 ./xCbtest_MPI-FreeBSD
9
  % %%LOCALBASE%%/mpich2/bin/mpirun -np 4 ./xFbtest_MPI-FreeBSD
10
  % %%LOCALBASE%%/mpich2/bin/mpdallexit
9
11
10
You can change -np 4 to any number to meet your local environment.
12
You can change -np 4 to any number to meet your local environment.
11
See files at /usr/local/share/doc/blacs for detail.
13
See files at %%DOCSDIR%% for detail.
12
*********************************************************************
14
*********************************************************************
(-)math/blacs/pkg-message (-12 lines)
Lines 1-12 Link Here
1
*********************************************************************
2
 Please test your blacs installation
3
 Test programs are located at /usr/local/share/BLACS/TESTING
4
5
 Example:
6
  % cd /usr/local/share/BLACS/TESTING
7
  % mpirun -np 4 xCbtest_MPI-FreeBSD
8
  % mpirun -np 4 xFbtest_MPI-FreeBSD
9
10
You can change -np 4 to any number to meet your local environment.
11
See files at /usr/local/share/doc/blacs for detail.
12
*********************************************************************

Return to bug 100755