diff options
author | Maho Nakata <maho@FreeBSD.org> | 2003-05-05 02:06:21 +0000 |
---|---|---|
committer | Maho Nakata <maho@FreeBSD.org> | 2003-05-05 02:06:21 +0000 |
commit | f7e3a6f2f48de576dff694aa64d90ab299400734 (patch) | |
tree | 1855547b4cd0446aa56a9a7a08d48dbcc8e713b2 /math/blacs | |
parent | 26700e260fd7ea684d5e03d1605bee83b8fe7f7b (diff) | |
download | ports-f7e3a6f2f48de576dff694aa64d90ab299400734.tar.gz ports-f7e3a6f2f48de576dff694aa64d90ab299400734.zip |
Notes
Diffstat (limited to 'math/blacs')
-rw-r--r-- | math/blacs/Makefile | 74 | ||||
-rw-r--r-- | math/blacs/distinfo | 9 | ||||
-rw-r--r-- | math/blacs/files/patch-Bmake.inc | 64 | ||||
-rw-r--r-- | math/blacs/pkg-descr | 7 | ||||
-rw-r--r-- | math/blacs/pkg-message | 12 | ||||
-rw-r--r-- | math/blacs/pkg-plist | 18 |
6 files changed, 184 insertions, 0 deletions
diff --git a/math/blacs/Makefile b/math/blacs/Makefile new file mode 100644 index 000000000000..7c00f3e60f38 --- /dev/null +++ b/math/blacs/Makefile @@ -0,0 +1,74 @@ +# New ports collection makefile for: blacs +# Date created: 5 May 2003 +# Whom: NAKATA, Maho <maho@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= blacs +PORTVERSION= 1.7 +CATEGORIES= math +MASTER_SITES= ftp://ftp.netlib.org/blacs/ +DISTNAME= BLACS +DISTFILES= mpiblacs.tgz blacstester.tgz mpiblacs-patch03.tgz +.if !defined(NOPORTDOCS) +DISTFILES+= blacs_install.ps f77blacsqref.ps lawn94.ps \ + cblacsqref.ps mpi_prop.ps mpiblacs_issues.ps +.endif +DIST_SUBDIR= blacs +EXTRACT_ONLY= mpiblacs.tgz blacstester.tgz mpiblacs-patch03.tgz + +MAINTAINER= maho@FreeBSD.org +COMMENT= The BLACS (Basic Linear Algebra Communication Subprograms) + +LIB_DEPENDS= lapack:${PORTSDIR}/math/lapack \ + atlas:${PORTSDIR}/math/atlas +BUILD_DEPENDS= ${LOCALBASE}/mpich/lib/libmpich.a:${PORTSDIR}/net/mpich + +.include <bsd.port.pre.mk> + +pre-fetch: + @${ECHO} "If you want to use compiler other than f77," + @${ECHO} "plase set NO_GNUF77=yes" + +F77?= f77 +.if !defined(NO_GNUF77) +F77EXTRAFLAGS= -w -fno-globals -fugly-complex +.endif +USE_REINPLACE= yes +DEBUG_LEVEL= 0 + +pre-patch: + (${CP} ${WRKSRC}/BMAKES/Bmake.MPI-LINUX ${WRKSRC}/Bmake.inc) +post-patch: + (${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' ${WRKSRC}/Bmake.inc) + +do-build: + (cd ${WRKSRC}; make mpi; make tester) + +do-install: + ${INSTALL_DATA} ${WRKSRC}/LIB/blacsCinit_MPI-FreeBSD-${DEBUG_LEVEL}.a ${PREFIX}/lib/libblacsc.a + ${INSTALL_DATA} ${WRKSRC}/LIB/blacsF77init_MPI-FreeBSD-${DEBUG_LEVEL}.a ${PREFIX}/lib/libblacsf77.a + ${INSTALL_DATA} ${WRKSRC}/LIB/blacs_MPI-FreeBSD-${DEBUG_LEVEL}.a ${PREFIX}/lib/libblacs.a + ${MKDIR} ${PREFIX}/share/BLACS/TESTING + ( cd ${WRKSRC}/TESTING/EXE ; \ + ${INSTALL_PROGRAM} xCbtest_MPI-FreeBSD-${DEBUG_LEVEL} ${PREFIX}/share/BLACS/TESTING/xCbtest_MPI-FreeBSD; \ + ${INSTALL_PROGRAM} xFbtest_MPI-FreeBSD-${DEBUG_LEVEL} ${PREFIX}/share/BLACS/TESTING/xFbtest_MPI-FreeBSD; \ + ${INSTALL_DATA} bsbr.dat ${PREFIX}/share/BLACS/TESTING; \ + ${INSTALL_DATA} bt.dat ${PREFIX}/share/BLACS/TESTING; \ + ${INSTALL_DATA} comb.dat ${PREFIX}/share/BLACS/TESTING; \ + ${INSTALL_DATA} sdrv.dat ${PREFIX}/share/BLACS/TESTING) +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${CAT} ${DISTDIR}/${DIST_SUBDIR}/blacs_install.ps | ${GZIP_CMD} > ${DOCSDIR}/blacs_install.ps.gz + ${CAT} ${DISTDIR}/${DIST_SUBDIR}/cblacsqref.ps | ${GZIP_CMD} > ${DOCSDIR}/cblacsqref.ps.gz + ${CAT} ${DISTDIR}/${DIST_SUBDIR}/f77blacsqref.ps | ${GZIP_CMD} > ${DOCSDIR}/f77blacsqref.ps.gz + ${CAT} ${DISTDIR}/${DIST_SUBDIR}/lawn94.ps | ${GZIP_CMD} > ${DOCSDIR}/lawn94.ps.gz + ${CAT} ${DISTDIR}/${DIST_SUBDIR}/mpi_prop.ps | ${GZIP_CMD} > ${DOCSDIR}/mpi_prop.ps.gz + ${CAT} ${DISTDIR}/${DIST_SUBDIR}/mpiblacs_issues.ps | ${GZIP_CMD} > ${DOCSDIR}/mpiblacs_issues.ps.gz +.endif + +post-install: + @${SED} -e 's,/usr/local,${PREFIX},g' ${PKGMESSAGE} + +.include <bsd.port.post.mk> diff --git a/math/blacs/distinfo b/math/blacs/distinfo new file mode 100644 index 000000000000..9151461026a3 --- /dev/null +++ b/math/blacs/distinfo @@ -0,0 +1,9 @@ +MD5 (blacs/mpiblacs.tgz) = 850b302d5f7786a6bc895cac5e9382bb +MD5 (blacs/mpiblacs-patch03.tgz) = 48fdf5e4ef6cf53daec9eeef40498a8b +MD5 (blacs/blacstester.tgz) = 5cdd9cf792b793baaeb8acef17b9bb71 +MD5 (blacs/blacs_install.ps) = 7430c30f1b23eafb4ee83fa69db2f027 +MD5 (blacs/lawn94.ps) = 25f5d72d9ebd851705aae831095af509 +MD5 (blacs/mpiblacs_issues.ps) = 3aff8dd7eaf926271502e9be88bfb9b5 +MD5 (blacs/mpi_prop.ps) = 6e56d38223e5fb7dd7a6a01c5e948d38 +MD5 (blacs/cblacsqref.ps) = c0fb4c729794006698e3cedeedfb6bf6 +MD5 (blacs/f77blacsqref.ps) = 6670bbd7911947b191a12dba0e1c7584 diff --git a/math/blacs/files/patch-Bmake.inc b/math/blacs/files/patch-Bmake.inc new file mode 100644 index 000000000000..4c69d97146ed --- /dev/null +++ b/math/blacs/files/patch-Bmake.inc @@ -0,0 +1,64 @@ +--- Bmake.inc.orig Mon May 5 10:53:00 2003 ++++ Bmake.inc Mon May 5 10:58:38 2003 +@@ -13,7 +13,7 @@ + # ----------------------------- + # The top level BLACS directory + # ----------------------------- +- BTOPdir = $(HOME)/BLACS ++ BTOPdir = @WRKSRC@ + + # --------------------------------------------------------------------------- + # The communication library your BLACS have been written for. +@@ -32,14 +32,14 @@ + # ------------------------------------------------------------- + # The platform identifier to suffix to the end of library names + # ------------------------------------------------------------- +- PLAT = LINUX ++ PLAT = FreeBSD + + # ---------------------------------------------------------- + # Name and location of the BLACS library. See section 2 for + # details on BLACS debug level (BLACSDBGLVL). + # ---------------------------------------------------------- + BLACSdir = $(BTOPdir)/LIB +- BLACSDBGLVL = 0 ++ BLACSDBGLVL = @DEBUG_LEVEL@ + BLACSFINIT = $(BLACSdir)/blacsF77init_$(COMMLIB)-$(PLAT)-$(BLACSDBGLVL).a + BLACSCINIT = $(BLACSdir)/blacsCinit_$(COMMLIB)-$(PLAT)-$(BLACSDBGLVL).a + BLACSLIB = $(BLACSdir)/blacs_$(COMMLIB)-$(PLAT)-$(BLACSDBGLVL).a +@@ -47,10 +47,10 @@ + # ------------------------------------- + # Name and location of the MPI library. + # ------------------------------------- +- MPIdir = /usr/local/mpich ++ MPIdir = @PREFIX@/mpich + MPILIBdir = $(MPIdir)/lib/ + MPIINCdir = $(MPIdir)/include +- MPILIB = $(MPILIBdir)/libmpich.a ++ MPILIB = $(MPILIBdir)/libmpich.a $(MPILIBdir)/libpmpich.a + + # ------------------------------------- + # All libraries required by the tester. +@@ -195,16 +195,15 @@ + # optimization. This is the F77NO_OPTFLAG. The usage of the remaining + # macros should be obvious from the names. + #============================================================================= +- F77 = g77 +- F77NO_OPTFLAGS = +- F77FLAGS = $(F77NO_OPTFLAGS) -O +- F77LOADER = $(F77) ++ F77 = @F77@ ++ F77NO_OPTFLAGS = @F77EXTRAFLAGS@ ++ F77FLAGS = @FFLAGS@ ++ F77LOADER = @F77@ + F77LOADFLAGS = +- CC = gcc +- CCFLAGS = -O4 ++ CC = @CC@ ++ CCFLAGS = @CFLAGS@ + CCLOADER = $(CC) + CCLOADFLAGS = +- + # -------------------------------------------------------------------------- + # The archiver and the flag(s) to use when building an archive (library). + # Also the ranlib routine. If your system has no ranlib, set RANLIB = echo. diff --git a/math/blacs/pkg-descr b/math/blacs/pkg-descr new file mode 100644 index 000000000000..71bf1aacfac3 --- /dev/null +++ b/math/blacs/pkg-descr @@ -0,0 +1,7 @@ +The BLACS (Basic Linear Algebra Communication Subprograms) +project is an ongoing investigation whose purpose is to create +a linear algebra oriented message passing interface +that may be implemented efficiently and uniformly across +a large range of distributed memory platforms. + +WWW: http://www.netlib.org/blacs/ diff --git a/math/blacs/pkg-message b/math/blacs/pkg-message new file mode 100644 index 000000000000..a498cfdbeca0 --- /dev/null +++ b/math/blacs/pkg-message @@ -0,0 +1,12 @@ +********************************************************************* + Please test your blacs installation + Test programs are located at /usr/local/share/BLACS/TESTING + + Example: + % cd /usr/local/share/BLACS/TESTING + % mpirun -np 4 xCbtest_MPI-FreeBSD + % mpirun -np 4 xFbtest_MPI-FreeBSD + +You can change -np 4 to any number to meet your local environment. +See files at /usr/local/share/doc/blacs for detail. +********************************************************************* diff --git a/math/blacs/pkg-plist b/math/blacs/pkg-plist new file mode 100644 index 000000000000..f78ea826d2c4 --- /dev/null +++ b/math/blacs/pkg-plist @@ -0,0 +1,18 @@ +lib/libblacs.a +lib/libblacsc.a +lib/libblacsf77.a +share/BLACS/TESTING/xCbtest_MPI-FreeBSD +share/BLACS/TESTING/xFbtest_MPI-FreeBSD +share/BLACS/TESTING/bsbr.dat +share/BLACS/TESTING/bt.dat +share/BLACS/TESTING/comb.dat +share/BLACS/TESTING/sdrv.dat +@dirrm share/BLACS/TESTING +@dirrm share/BLACS +%%PORTDOCS%%share/doc/blacs/blacs_install.ps.gz +%%PORTDOCS%%share/doc/blacs/f77blacsqref.ps.gz +%%PORTDOCS%%share/doc/blacs/mpi_prop.ps.gz +%%PORTDOCS%%share/doc/blacs/cblacsqref.ps.gz +%%PORTDOCS%%share/doc/blacs/lawn94.ps.gz +%%PORTDOCS%%share/doc/blacs/mpiblacs_issues.ps.gz +%%PORTDOCS%%@dirrm share/doc/blacs |