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

(-)/home/trasz/scalapack/Makefile (-10 / +30 lines)
Lines 6-33 Link Here
6
#
6
#
7
7
8
PORTNAME=	scalapack
8
PORTNAME=	scalapack
9
PORTVERSION=	1.7
9
PORTVERSION=	1.7.4
10
PORTREVISION=	2
11
CATEGORIES=	math
10
CATEGORIES=	math
12
MASTER_SITES=	ftp://ftp.netlib.org/scalapack/
11
MASTER_SITES=	ftp://ftp.netlib.org/scalapack/
13
DISTNAME=	SCALAPACK
12
DISTFILES=	scalapack-${PORTVERSION}.tgz manpages.tgz
14
DISTFILES=	scalapack.tgz manpages.tgz
15
.if !defined(NOPORTDOCS)
13
.if !defined(NOPORTDOCS)
16
DISTFILES+=	scalapack_install.ps scalapackqref.ps  \
14
DISTFILES+=	scalapack_install.ps scalapackqref.ps  \
17
		lawn100.ps pblasqref.ps manual.ps design.ps \
15
		lawn100.ps pblasqref.ps manual.ps design.ps \
18
		pumma_refmanual.ps trans.ps
16
		pumma_refmanual.ps trans.ps
19
.endif
17
.endif
20
DIST_SUBDIR=	scalapack
18
DIST_SUBDIR=	scalapack
21
EXTRACT_ONLY=	scalapack.tgz manpages.tgz
19
EXTRACT_ONLY=	scalapack-${PORTVERSION}.tgz manpages.tgz
22
20
23
MAINTAINER=	maho@FreeBSD.org
21
MAINTAINER=	maho@FreeBSD.org
24
COMMENT=	The ScaLAPACK Scalable LAPACK library
22
COMMENT=	The ScaLAPACK Scalable LAPACK library
25
23
26
BUILD_DEPENDS=	${LOCALBASE}/mpich2/lib/libmpich.a:${PORTSDIR}/net/mpich2 \
24
BUILD_DEPENDS=	${LOCALBASE}/lib/libblacs.a:${PORTSDIR}/math/blacs \
27
		${LOCALBASE}/lib/libblacs.a:${PORTSDIR}/math/blacs \
28
		${LOCALBASE}/bin/f2c:${PORTSDIR}/lang/f2c
25
		${LOCALBASE}/bin/f2c:${PORTSDIR}/lang/f2c
29
LIB_DEPENDS=	lapack:${PORTSDIR}/math/lapack \
26
LIB_DEPENDS=	lapack:${PORTSDIR}/math/lapack
30
		atlas:${PORTSDIR}/math/atlas
31
27
32
CONFLICTS=	elmer-mathlibs-1*
28
CONFLICTS=	elmer-mathlibs-1*
33
29
Lines 35-41 Link Here
35
31
36
ARCH2FIX=	PBLAS/SRC PBLAS/SRC/PBBLAS PBLAS/SRC/PTOOLS PBLAS/SRC/PTZBLAS \
32
ARCH2FIX=	PBLAS/SRC PBLAS/SRC/PBBLAS PBLAS/SRC/PTOOLS PBLAS/SRC/PTZBLAS \
37
		REDIST/SRC SRC TOOLS TOOLS/LAPACK
33
		REDIST/SRC SRC TOOLS TOOLS/LAPACK
38
BLAS=		-lf77blas -latlas
39
34
40
DATADIR=	${PREFIX}/share/${PORTNAME:U}
35
DATADIR=	${PREFIX}/share/${PORTNAME:U}
41
EXAMPLESDIR=	${PREFIX}/share/examples/${PORTNAME:U}
36
EXAMPLESDIR=	${PREFIX}/share/examples/${PORTNAME:U}
Lines 45-50 Link Here
45
.include "files/manpages"
40
.include "files/manpages"
46
41
47
.include <bsd.port.pre.mk>
42
.include <bsd.port.pre.mk>
43
44
.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS)
45
WITH_ATLAS=		yes
46
.endif
47
48
.if defined(WITH_ATLAS)
49
LIB_DEPENDS+=	atlas.1:${PORTSDIR}/math/atlas
50
BLAS=		-lf77blas -latlas
51
.else
52
LIB_DEPENDS+=	blas.1:${PORTSDIR}/math/blas
53
BLAS=		-lblas
54
.endif
55
56
.if exists(${LOCALBASE}/mpi/openmpi/bin/mpirun)
57
WITH_OPENMPI=	yes
58
.endif
59
60
.if defined(WITH_OPENMPI)
61
BUILD_DEPENDS+=	${LOCALBASE}/mpi/openmpi/lib/libmpi.so:${PORTSDIR}/net/openmpi
62
RUN_DEPENDS=	${LOCALBASE}/mpi/openmpi/bin/mpirun:${PORTSDIR}/net/openmpi
63
EXTRA_PATCHES+=	${FILESDIR}/SLmake.inc-openmpi.diff
64
.else
65
BUILD_DEPENDS+=	${LOCALBASE}/mpich2/lib/libmpich.a:${PORTSDIR}/net/mpich2
66
EXTRA_PATCHES+=	${FILESDIR}/SLmake.inc-mpich.diff
67
.endif
48
68
49
.if defined(WITH_OPTIMIZED_FLAGS)
69
.if defined(WITH_OPTIMIZED_FLAGS)
50
.if ${ARCH} == "amd64"
70
.if ${ARCH} == "amd64"
(-)/home/trasz/scalapack/distinfo (-3 / +3 lines)
Lines 1-6 Link Here
1
MD5 (scalapack/scalapack.tgz) = 6d214940fab71d56117184d55cbb29f1
1
MD5 (scalapack/scalapack-1.7.4.tgz) = 688b759059e11e54f5381bfa2850c519
2
SHA256 (scalapack/scalapack.tgz) = fc18520ac36cad703ec5e774634f055c84c4e2ddd2d3e4e09779cda712e59eef
2
SHA256 (scalapack/scalapack-1.7.4.tgz) = 7b5de82088feb23d1581ae96d80ff80585b0d78ebcb32098bd2bf3ce670b02ff
3
SIZE (scalapack/scalapack.tgz) = 4468266
3
SIZE (scalapack/scalapack-1.7.4.tgz) = 5014804
4
MD5 (scalapack/manpages.tgz) = a536ab4837ec68addff0a3ec99427a10
4
MD5 (scalapack/manpages.tgz) = a536ab4837ec68addff0a3ec99427a10
5
SHA256 (scalapack/manpages.tgz) = a745c9f367d65e3c7611c126597a4681094b002552e47b621964d30a966aac7b
5
SHA256 (scalapack/manpages.tgz) = a745c9f367d65e3c7611c126597a4681094b002552e47b621964d30a966aac7b
6
SIZE (scalapack/manpages.tgz) = 379541
6
SIZE (scalapack/manpages.tgz) = 379541
(-)/home/trasz/scalapack/files/SLmake.inc-mpich.diff (+62 lines)
Line 0 Link Here
1
--- SLmake.inc.orig	Thu Aug  9 11:59:50 2001
2
+++ SLmake.inc		Mon May  5 11:51:11 2003
3
@@ -19,26 +19,26 @@
4
 #  The complete path to the top level of ScaLAPACK directory, usually
5
 #  $(HOME)/SCALAPACK
6
 #
7
-home          = $(HOME)/SCALAPACK
8
+home          = @WRKSRC@
9
 #
10
 #  The platform identifier to suffix to the end of library names
11
 #
12
-PLAT          = LINUX
13
+PLAT          = FreeBSD
14
 #
15
 #  BLACS setup.  All version need the debug level (0 or 1),
16
 #  and the directory where the BLACS libraries are
17
 #
18
 BLACSDBGLVL   = 0
19
-BLACSdir      = /usr/local/lib
20
+BLACSdir      = @LOCALBASE@/lib
21
 #
22
 #  MPI setup; tailor to your system if using MPIBLACS
23
 #  Will need to comment out these 6 lines if using PVM
24
 #
25
 USEMPI        = -DUsingMpiBlacs
26
-SMPLIB        = /usr/local/mpich-1.2.1/lib/libmpich.a
27
-BLACSFINIT    = $(BLACSdir)/libmpiblacsF77init-p4.a
28
-BLACSCINIT    = $(BLACSdir)/libmpiblacsCinit-p4.a
29
-BLACSLIB      = $(BLACSdir)/libmpiblacs-p4.a
30
+SMPLIB        = @LOCALBASE@/mpich2/lib/libmpich.a
31
+BLACSFINIT    = $(BLACSdir)/libblacsf77.a
32
+BLACSCINIT    = $(BLACSdir)/libblacsc.a
33
+BLACSLIB      = $(BLACSdir)/libblacs.a
34
 TESTINGdir    = $(home)/TESTING
35
 
36
 #
37
@@ -67,12 +67,12 @@
38
 #
39
 #  The fortran and C compilers, loaders, and their flags
40
 #
41
-F77           = g77
42
+F77           = @F77@
43
 #F77           = /usr/local/pgi/linux86/bin/pgf77
44
-CC            = gcc
45
+CC            = @CC@
46
 NOOPT         = 
47
-F77FLAGS      =  -O3 $(NOOPT)
48
-CCFLAGS       = -O4
49
+F77FLAGS      = @FFLAGS@
50
+CCFLAGS       = @CFLAGS@
51
 SRCFLAG       =
52
 F77LOADER     = $(F77)
53
 CCLOADER      = $(CC)
54
@@ -94,7 +94,7 @@
55
 #  The name of the libraries to be created/linked to
56
 #
57
 SCALAPACKLIB  = $(home)/libscalapack.a
58
-BLASLIB       = /usr/local/lib/libf77blas.a /usr/local/lib/libatlas.a
59
+BLASLIB       = -L@LOCALBASE@/lib @BLAS@
60
 #
61
 PBLIBS        = $(SCALAPACKLIB) $(FBLACSLIB) $(BLASLIB) $(SMPLIB)
62
 PRLIBS        = $(SCALAPACKLIB) $(CBLACSLIB) $(SMPLIB)
(-)/home/trasz/scalapack/files/SLmake.inc-openmpi.diff (+62 lines)
Line 0 Link Here
1
--- SLmake.inc.orig	Thu Aug  9 04:59:50 2001
2
+++ SLmake.inc	Mon Nov 13 15:45:36 2006
3
@@ -19,26 +19,26 @@
4
 #  The complete path to the top level of ScaLAPACK directory, usually
5
 #  $(HOME)/SCALAPACK
6
 #
7
-home          = $(HOME)/SCALAPACK
8
+home          = @WRKSRC@
9
 #
10
 #  The platform identifier to suffix to the end of library names
11
 #
12
-PLAT          = LINUX
13
+PLAT          = FreeBSD
14
 #
15
 #  BLACS setup.  All version need the debug level (0 or 1),
16
 #  and the directory where the BLACS libraries are
17
 #
18
 BLACSDBGLVL   = 0
19
-BLACSdir      = /usr/local/lib
20
+BLACSdir      = @LOCALBASE@/lib
21
 #
22
 #  MPI setup; tailor to your system if using MPIBLACS
23
 #  Will need to comment out these 6 lines if using PVM
24
 #
25
 USEMPI        = -DUsingMpiBlacs
26
-SMPLIB        = /usr/local/mpich-1.2.1/lib/libmpich.a
27
-BLACSFINIT    = $(BLACSdir)/libmpiblacsF77init-p4.a
28
-BLACSCINIT    = $(BLACSdir)/libmpiblacsCinit-p4.a
29
-BLACSLIB      = $(BLACSdir)/libmpiblacs-p4.a
30
+SMPLIB        = 
31
+BLACSFINIT    = $(BLACSdir)/libblacsf77.a
32
+BLACSCINIT    = $(BLACSdir)/libblacsc.a
33
+BLACSLIB      = $(BLACSdir)/libblacs.a
34
 TESTINGdir    = $(home)/TESTING
35
 
36
 #
37
@@ -67,12 +67,12 @@
38
 #
39
 #  The fortran and C compilers, loaders, and their flags
40
 #
41
-F77           = g77
42
+F77           = mpif77
43
 #F77           = /usr/local/pgi/linux86/bin/pgf77
44
-CC            = gcc
45
+CC            = mpicc
46
 NOOPT         = 
47
-F77FLAGS      =  -O3 $(NOOPT)
48
-CCFLAGS       = -O4
49
+F77FLAGS      = @FFLAGS@
50
+CCFLAGS       = @CFLAGS@
51
 SRCFLAG       =
52
 F77LOADER     = $(F77)
53
 CCLOADER      = $(CC)
54
@@ -94,7 +94,7 @@
55
 #  The name of the libraries to be created/linked to
56
 #
57
 SCALAPACKLIB  = $(home)/libscalapack.a
58
-BLASLIB       = /usr/local/lib/libf77blas.a /usr/local/lib/libatlas.a
59
+BLASLIB       = -L@LOCALBASE@/lib @BLAS@
60
 #
61
 PBLIBS        = $(SCALAPACKLIB) $(FBLACSLIB) $(BLASLIB) $(SMPLIB)
62
 PRLIBS        = $(SCALAPACKLIB) $(CBLACSLIB) $(SMPLIB)
(-)/home/trasz/scalapack/files/patch-SLmake.inc (-62 lines)
Lines 1-62 Link Here
1
--- SLmake.inc.orig	Thu Aug  9 11:59:50 2001
2
+++ SLmake.inc		Mon May  5 11:51:11 2003
3
@@ -19,26 +19,26 @@
4
 #  The complete path to the top level of ScaLAPACK directory, usually
5
 #  $(HOME)/SCALAPACK
6
 #
7
-home          = $(HOME)/SCALAPACK
8
+home          = @WRKSRC@
9
 #
10
 #  The platform identifier to suffix to the end of library names
11
 #
12
-PLAT          = LINUX
13
+PLAT          = FreeBSD
14
 #
15
 #  BLACS setup.  All version need the debug level (0 or 1),
16
 #  and the directory where the BLACS libraries are
17
 #
18
 BLACSDBGLVL   = 0
19
-BLACSdir      = /usr/local/lib
20
+BLACSdir      = @LOCALBASE@/lib
21
 #
22
 #  MPI setup; tailor to your system if using MPIBLACS
23
 #  Will need to comment out these 6 lines if using PVM
24
 #
25
 USEMPI        = -DUsingMpiBlacs
26
-SMPLIB        = /usr/local/mpich-1.2.1/lib/libmpich.a
27
-BLACSFINIT    = $(BLACSdir)/libmpiblacsF77init-p4.a
28
-BLACSCINIT    = $(BLACSdir)/libmpiblacsCinit-p4.a
29
-BLACSLIB      = $(BLACSdir)/libmpiblacs-p4.a
30
+SMPLIB        = @LOCALBASE@/mpich2/lib/libmpich.a
31
+BLACSFINIT    = $(BLACSdir)/libblacsf77.a
32
+BLACSCINIT    = $(BLACSdir)/libblacsc.a
33
+BLACSLIB      = $(BLACSdir)/libblacs.a
34
 TESTINGdir    = $(home)/TESTING
35
 
36
 #
37
@@ -67,12 +67,12 @@
38
 #
39
 #  The fortran and C compilers, loaders, and their flags
40
 #
41
-F77           = g77
42
+F77           = @F77@
43
 #F77           = /usr/local/pgi/linux86/bin/pgf77
44
-CC            = gcc
45
+CC            = @CC@
46
 NOOPT         = 
47
-F77FLAGS      =  -O3 $(NOOPT)
48
-CCFLAGS       = -O4
49
+F77FLAGS      = @FFLAGS@
50
+CCFLAGS       = @CFLAGS@
51
 SRCFLAG       =
52
 F77LOADER     = $(F77)
53
 CCLOADER      = $(CC)
54
@@ -94,7 +94,7 @@
55
 #  The name of the libraries to be created/linked to
56
 #
57
 SCALAPACKLIB  = $(home)/libscalapack.a
58
-BLASLIB       = /usr/local/lib/libf77blas.a /usr/local/lib/libatlas.a
59
+BLASLIB       = -L@LOCALBASE@/lib @BLAS@
60
 #
61
 PBLIBS        = $(SCALAPACKLIB) $(FBLACSLIB) $(BLASLIB) $(SMPLIB)
62
 PRLIBS        = $(SCALAPACKLIB) $(CBLACSLIB) $(SMPLIB)
(-)/home/trasz/scalapack/files/pkg-message.in (+8 lines)
Lines 20-25 Link Here
20
  ? end
20
  ? end
21
  % %%LOCALBASE%%/mpich2/bin/mpdallexit
21
  % %%LOCALBASE%%/mpich2/bin/mpdallexit
22
22
23
 If you're using OpenMPI, use this instead:
24
  % cd %%DATADIR%%/TESTING
25
  % LD_LIBRARY_PATH=%%LOCALBASE%%/mpi/openmpi/lib/ export LD_LIBRARY_PATH
26
  % PATH=$PATH:%%LOCALBASE%%/mpi/openmpi/bin/ export PATH
27
  % mpirun -np 4 ./xcbrd
28
  % mpirun -np 4 ./xcdblu
29
   etc., etc. ...
30
23
You can change -np 4 to any number to meet your environment.
31
You can change -np 4 to any number to meet your environment.
24
See files at %%DOCSDIR%% for detail.
32
See files at %%DOCSDIR%% for detail.
25
**********************************************************************
33
**********************************************************************

Return to bug 105497