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

(-)math/superlu/Makefile (-12 / +12 lines)
Lines 1-20 Link Here
1
# New ports collection makefile for:	SuperLU
1
# New ports collection makefile for:	SuperLU
2
# Version required:	1.1
2
# Version required:	2.0
3
# Date created:         31 Oct 97
3
# Date created:		31 Oct 97
4
# Whom:                 Pedro Giffuni <giffunip@asme.org>
4
# Whom:			Pedro Giffuni <giffunip@asme.org>
5
#
5
#
6
# $FreeBSD: ports/math/superlu/Makefile,v 1.6 1999/08/25 07:16:08 obrien Exp $
6
# $FreeBSD: ports/math/superlu/Makefile,v 1.6 1999/08/25 07:16:08 obrien Exp $
7
#
7
#
8
8
9
DISTNAME=	superlu_1.1
9
DISTNAME=	superlu_2.0
10
PKGNAME=	superlu-1.1
10
PKGNAME=	superlu-2.0
11
CATEGORIES=	math
11
CATEGORIES=	math
12
MASTER_SITES=	ftp://ftp.cs.berkeley.edu/pub/lapack/SuperLU/	\
12
MASTER_SITES=	http://www.nersc.gov/~xiaoye/SuperLU/
13
		ftp://ftp.u-aizu.ac.jp/pub/SciEng/numanal/cs.berkeley.edu/lapack/SuperLU/
14
13
15
MAINTAINER=	ports@FreeBSD.org
14
MAINTAINER=	ports@FreeBSD.org
16
15
17
BUILD_DEPENDS=	${PREFIX}/lib/libblas.a:${PORTSDIR}/math/blas
16
BUILD_DEPENDS=	${LOCALBASE}/lib/libblas.a:${PORTSDIR}/math/blas
18
17
19
WRKSRC=		${WRKDIR}/SuperLU
18
WRKSRC=		${WRKDIR}/SuperLU
20
ALL_TARGET=	superlulib
19
ALL_TARGET=	superlulib
Lines 22-32 Link Here
22
#	NOTE:	The Matlab interface was not built.
21
#	NOTE:	The Matlab interface was not built.
23
#
22
#
24
23
25
post-install:
24
do-install:
26
	$(INSTALL_DATA) ${WRKSRC}/libsuperlu.* ${PREFIX}/lib
25
	${INSTALL_DATA} ${WRKSRC}/libsuperlu.* ${PREFIX}/lib
27
	$(INSTALL_DATA) ${WRKSRC}/SRC/supermatrix.h ${PREFIX}/include
26
	${INSTALL_DATA} ${WRKSRC}/SRC/supermatrix.h ${PREFIX}/include
28
.if !defined(NOPORTDOCS)
27
.if !defined(NOPORTDOCS)
29
	${MKDIR} ${PREFIX}/share/doc/SuperLU
28
	@${MKDIR} ${PREFIX}/share/doc/SuperLU
30
	${INSTALL_DATA} ${WRKSRC}/INSTALL/*.ps ${PREFIX}/share/doc/SuperLU
29
	${INSTALL_DATA} ${WRKSRC}/INSTALL/*.ps ${PREFIX}/share/doc/SuperLU
31
.endif
30
.endif
31
32
.include <bsd.port.mk>
32
.include <bsd.port.mk>
(-)math/superlu/files/md5 (-1 / +1 lines)
Line 1 Link Here
1
MD5 (superlu_1.1.tar.gz) = 476515c112be637339617bc29aecade7
1
MD5 (superlu_2.0.tar.gz) = 4a1b1a193bf409b76b663d94f9a2d64d
(-)math/superlu/patches/patch-aa (-16 / +19 lines)
Lines 1-6 Link Here
1
--- make.inc.orig	Fri Mar 27 07:58:12 1998
1
--- make.inc.orig	Fri Aug  6 15:10:24 1999
2
+++ make.inc	Mon May 10 01:43:38 1999
2
+++ make.inc	Thu Dec 16 04:00:37 1999
3
@@ -14,14 +14,14 @@
3
@@ -16,14 +16,14 @@
4
 #
4
 #
5
 #  The machine (platform) identifier to append to the library names
5
 #  The machine (platform) identifier to append to the library names
6
 #
6
 #
Lines 14-41 Link Here
14
-SUPERLULIB   = superlu$(PLAT).a
14
-SUPERLULIB   = superlu$(PLAT).a
15
-BLASLIB      = ../blas$(PLAT).a
15
-BLASLIB      = ../blas$(PLAT).a
16
+SUPERLULIB   = libsuperlu$(PLAT).a
16
+SUPERLULIB   = libsuperlu$(PLAT).a
17
+BLASLIB      = $(PREFIX)/lib/libblas$(PLAT).a
17
+BLASLIB      = ${LOCALBASE}/lib/libblas$(PLAT).a
18
 
18
 
19
 #
19
 #
20
 #  The archiver and the flag(s) to use when building archive (library)
20
 #  The archiver and the flag(s) to use when building archive (library)
21
@@ -31,10 +31,10 @@
21
@@ -33,12 +33,12 @@
22
 ARCHFLAGS    = cr
22
 ARCHFLAGS    = cr
23
 RANLIB       = ranlib
23
 RANLIB       = ranlib
24
 
24
 
25
-CC           = cc
25
-CC           = gcc
26
-CFLAGS       = -xO3 -xcg92
26
+CC           ?= gcc
27
-LOADER       = cc
27
 #CFLAGS       = -xO3 -xcg92
28
-LOADOPTS     = -xO3
28
-CFLAGS       = -Wall -O2 
29
+CC           = gcc
29
-FORTRAN	     = f77
30
+CFLAGS       = -O3
30
-FFLAGS       = -O
31
+LOADER       = gcc
31
-LOADER       = gcc
32
+LOADOPTS     = -O3
32
+CFLAGS       ?= -Wall -O2 
33
+FORTRAN	     = ${FC}
34
+FFLAGS       ?= -O
35
+LOADER       = ${CC}
36
 LOADOPTS     = #-xO3
33
 
37
 
34
 #
38
 #
35
 #  C preprocessor defs for compilation (-DNoChange, -DAdd_, or -DUpCase)
39
@@ -48,4 +48,4 @@
36
@@ -43,4 +43,4 @@
37
 #
40
 #
38
 # The directory in which Matlab is installed
41
 # The directory in which Matlab is installed
39
 #
42
 #
40
-MATLAB	     = /usr/sww/matlab
43
-MATLAB	     = /usr/sww/matlab
41
+MATLAB	     = ${PREFIX}/matlab
44
+MATLAB	     = ${LOCALBASE}/matlab
(-)math/superlu/patches/patch-ab (-18 / +6 lines)
Lines 1-26 Link Here
1
*** SRC/util.h.orig	Sat Nov 22 22:25:23 1997
1
*** SRC/util.h.orig	Fri Aug  6 04:21:40 1999
2
--- SRC/util.h	Sat Nov 22 22:29:50 1997
2
--- SRC/util.h	Thu Dec 16 03:32:32 1999
3
***************
3
***************
4
*** 2,10 ****
4
*** 4,10 ****
5
  #define __SUPERLU_UTIL
5
--- 4,12 ----
6
  
7
  #include <stdio.h>
6
  #include <stdio.h>
8
  #include <stdlib.h>
7
  #include <stdlib.h>
9
! #include <string.h>
8
  #include <string.h>
10
  #include <malloc.h>
9
+ #ifndef __STDC__
11
  #include <assert.h>
12
  
13
  /* Macros */
14
--- 2,13 ----
15
  #define __SUPERLU_UTIL
16
  
17
  #include <stdio.h>
18
+ #ifdef __STDC__
19
  #include <stdlib.h>
20
! #else
21
  #include <malloc.h>
10
  #include <malloc.h>
22
+ #endif
11
+ #endif
23
+ #include <string.h>
24
  #include <assert.h>
12
  #include <assert.h>
25
  
13
  
26
  /* Macros */
14
  /* Macros */
(-)math/superlu/patches/patch-ac (+14 lines)
Line 0 Link Here
1
*** SRC/sp_coletree.c.orig	Fri Aug  6 05:31:22 1999
2
--- SRC/sp_coletree.c	Thu Dec 16 03:29:12 1999
3
***************
4
*** 2,8 ****
5
--- 2,10 ----
6
  /*  Elimination tree computation and layout routines */
7
  
8
  #include <stdio.h>
9
+ #ifndef __STDC__
10
  #include <malloc.h>
11
+ #endif
12
  #include <stdlib.h>
13
  #include "util.h"
14
  
(-)math/superlu/pkg/DESCR (-3 / +3 lines)
Lines 1-6 Link Here
1
1
2
			SuperLU Version 1.0
2
			SuperLU (Version 2.0)
3
			===================
3
			=====================
4
4
5
SuperLU contains a set of subroutines to solve a sparse linear system
5
SuperLU contains a set of subroutines to solve a sparse linear system
6
A*X=B. It uses Gaussian elimination with partial pivoting (GEPP).
6
A*X=B. It uses Gaussian elimination with partial pivoting (GEPP).
Lines 19-25 Link Here
19
19
20
			===================
20
			===================
21
			
21
			
22
WWW: http://www.cs.berkeley.edu/~xiaoye/superlu.html
22
WWW: http://www.nersc.gov/~xiaoye/SuperLU/
23
Authors:
23
Authors:
24
        Jim Demmel      demmel@cs.berkeley.edu
24
        Jim Demmel      demmel@cs.berkeley.edu
25
        John Gilbert    gilbert@parc.xerox.com
25
        John Gilbert    gilbert@parc.xerox.com
(-)math/superlu/pkg/PLIST (-2 lines)
Lines 1-6 Link Here
1
include/supermatrix.h                                                          
1
include/supermatrix.h                                                          
2
lib/libsuperlu.a
2
lib/libsuperlu.a
3
share/doc/SuperLU/ug.ps
3
share/doc/SuperLU/ug.ps
4
@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B
5
@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R
6
@dirrm share/doc/SuperLU
4
@dirrm share/doc/SuperLU

Return to bug 15501