View | Details | Raw Unified | Return to bug 299097 | Differences between
and this patch

Collapse All | Expand All

(-)b/math/Makefile (-1 / +1 lines)
Lines 537-543 Link Here
537
    SUBDIR += mtrxmath
537
    SUBDIR += mtrxmath
538
    SUBDIR += multichoose
538
    SUBDIR += multichoose
539
    SUBDIR += mumps
539
    SUBDIR += mumps
540
    SUBDIR += mumps4
540
    SUBDIR += mumps5
541
    SUBDIR += munkres-cpp
541
    SUBDIR += munkres-cpp
542
    SUBDIR += muparser
542
    SUBDIR += muparser
543
    SUBDIR += muparserx
543
    SUBDIR += muparserx
(-)b/math/mumps5/Makefile (+119 lines)
Added Link Here
1
PORTNAME=	mumps5
2
PORTVERSION=	4.9.5
3
CATEGORIES=	math
4
MASTER_SITES=	http://mumps.enseeiht.fr/		\
5
		http://graal.ens-lyon.fr/MUMPS/		\
6
		http://www.enseeiht.fr/apo/MUMPS/	\
7
		http://www.enseeiht.fr/irit/apo/MUMPS/
8
DISTNAME=	MUMPS_${PORTVERSION}
9
10
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	MUltifrontal Massively Parallel sparse direct Solver
12
WWW=		https://mumps-solver.org/
13
14
LICENSE=	PD
15
LICENSE_FILE=	${WRKSRC}/LICENSE
16
17
USES=		fortran:gfortran
18
19
MAKE_JOBS_UNSAFE=yes
20
21
FFLAGS+=	-ffast-math
22
FORTRANLIBS=	-lgfortran
23
GCCLIBDIR=	${LDFLAGS}
24
USE_LDCONFIG=	yes
25
VEM=		${PORTVERSION:R:R}
26
LIBS=		cmumps dmumps mumps_common pord smumps zmumps
27
28
CONFLICTS+=	mumps-mpich-4*
29
30
OPTIONS_DEFINE=	DOCS EXAMPLES
31
32
LIBS+=		mpiseq
33
34
PLIST_SUB+=	MUMPSVERSION=${PORTVERSION} MUMPSV=${VEM}
35
36
#-----------------------------------------------------------------------
37
# WARNING: Non-serviceable parts inside, can break other ports
38
# You may define these options/knobs:
39
#
40
# FFLAGS: Fortran compiler flags for gfortran
41
# BLASLIB: specify other version of BLAS
42
# WITH_ATLAS: Use ATLAS instead of the regular BLAS
43
#-----------------------------------------------------------------------
44
45
.include <bsd.port.pre.mk>
46
47
# This is like blaslapack, except we don't use lapack at all
48
.if exists(${LOCALBASE}/lib/libatlas.so) && !defined(WITH_BLAS)
49
WITH_ATLAS=	yes
50
.endif
51
.if defined(WITH_ATLAS)
52
LIB_DEPENDS+=	libatlas.so:math/atlas
53
BLASLIB=	-lf77blas
54
#LAPACKLIB=	-lalapack -lcblas
55
.else
56
LIB_DEPENDS+=	libblas.so:math/blas
57
BLASLIB=	-lblas
58
#LAPACKLIB=	-llapack
59
.endif
60
61
.if ${GCC_DEFAULT} >= 10
62
# workaround for Type mismatch in argument 's' at (1); passed INTEGER(4) to LOGICAL(4)
63
FCFLAGS+=	-fallow-argument-mismatch
64
.endif
65
66
pre-configure:
67
	${INSTALL_DATA} ${WRKSRC}/Make.inc/Makefile.inc.generic.SEQ \
68
		${WRKSRC}/Makefile.inc
69
	${REINPLACE_CMD} -e 's+LIBPAR+LIBSEQ+' ${WRKSRC}/src/Makefile
70
71
pre-build:
72
	${DIRNAME} `${FC} -print-libgcc-file-name` > ${WRKSRC}/LIBDIR
73
.for MF in Makefile Makefile.inc PORD/lib/Makefile libseq/Makefile src/Makefile
74
	${REINPLACE_CMD} -e 's+@CC@+${CC}+g ; s+@FC@+${FC}+g ; \
75
	s+@CFLAGS@+${CFLAGS} -fPIC+g; \
76
	s+@FCFLAGS@+${FCFLAGS} -fPIC+g; \
77
	s+@SOVER@+${VEM}+g; \
78
	s+@GCCLIBDIR@+${GCCLIBDIR}+g; \
79
	s+@FORTRANLIBS@+${FORTRANLIBS}+g; \
80
	s+@BLAS_LIBS@+${BLASLIB}+ ; \
81
	s+@LOCALBASE@+${LOCALBASE}+g;' \
82
		${WRKSRC}/${MF}
83
.endfor
84
85
do-install:
86
	${MKDIR} ${STAGEDIR}${PREFIX}/include/${PORTNAME}
87
	${INSTALL_DATA} ${WRKSRC}/include/*.h ${STAGEDIR}${PREFIX}/include/${PORTNAME}
88
	${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
89
	${INSTALL_DATA} ${WRKSRC}/lib/lib*.a ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
90
	${INSTALL_LIB} ${WRKSRC}/lib/lib*.so.${VEM} ${STAGEDIR}${PREFIX}/lib
91
	${INSTALL_DATA} ${WRKSRC}/libseq/libmpiseq.a ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
92
	${INSTALL_LIB} ${WRKSRC}/libseq/libmpiseq*.so.${VEM} ${STAGEDIR}${PREFIX}/lib
93
.for lib in ${LIBS}
94
	(cd ${STAGEDIR}${PREFIX}/lib &&	\
95
		${LN} -sf lib${lib}.so.${VEM} ${STAGEDIR}${PREFIX}/lib/lib${lib}4.so)
96
. endfor
97
	${MKDIR} ${STAGEDIR}${DOCSDIR}
98
	${INSTALL_DATA} ${WRKSRC}/doc/userguide_${PORTVERSION}.pdf ${STAGEDIR}${DOCSDIR}
99
	${INSTALL_DATA} ${WRKSRC}/doc/userguide_${PORTVERSION}.ps ${STAGEDIR}${DOCSDIR}
100
	${GZIP_CMD} ${STAGEDIR}${DOCSDIR}/userguide_${PORTVERSION}.ps
101
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
102
. for ex in Makefile README *.c *.F input_simpletest_*
103
	${INSTALL_DATA} ${WRKSRC}/examples/${ex} ${STAGEDIR}${EXAMPLESDIR}
104
. endfor
105
. for ex in c_example *simpletest
106
	${INSTALL_PROGRAM} ${WRKSRC}/examples/${ex} ${STAGEDIR}${EXAMPLESDIR}
107
. endfor
108
109
regression-test:	install
110
	(cd ${WRKSRC}/examples &&	\
111
	./ssimpletest < input_simpletest_real ;			\
112
	./dsimpletest < input_simpletest_real ;			\
113
	./csimpletest < input_simpletest_cmplx ;		\
114
	./zsimpletest < input_simpletest_cmplx ;		\
115
	${ECHO_MSG} "The solution should be (1,2,3,4,5)" ;	\
116
	./c_example ;						\
117
	${ECHO_MSG} "The solution should be (1,2)")
118
119
.include <bsd.port.post.mk>
(-)b/math/mumps5/distinfo (+2 lines)
Added Link Here
1
SHA256 (MUMPS_4.10.0.tar.gz) = d0f86f91a74c51a17a2ff1be9c9cee2338976f13a6d00896ba5b43a5ca05d933
2
SIZE (MUMPS_4.10.0.tar.gz) = 2481516
(-)b/math/mumps5/files/patch-Make.inc_Makefile.inc.generic (+71 lines)
Added Link Here
1
--- Make.inc/Makefile.inc.generic.orig	2011-05-10 12:56:32 UTC
2
+++ Make.inc/Makefile.inc.generic
3
@@ -70,7 +70,7 @@ LPORD    = -L$(LPORDDIR) -lpord
4
 # The following variables will be used in the compilation process.
5
 # Please note that -Dptscotch and -Dparmetis imply -Dscotch and -Dmetis respectively.
6
 #ORDERINGSF = -Dscotch -Dmetis -Dpord -Dptscotch -Dparmetis
7
-ORDERINGSF  = -Dpord
8
+ORDERINGSF  += -Dpord
9
 ORDERINGSC  = $(ORDERINGSF)
10
 
11
 LORDERINGS = $(LMETIS) $(LPORD) $(LSCOTCH)
12
@@ -91,11 +91,11 @@ OUTF    = -o 
13
 # RM : remove files
14
 RM      = /bin/rm -f
15
 # CC : C compiler
16
-CC      = cc
17
+CC      = @CC@
18
 # FC : Fortran 90 compiler
19
-FC      = f90
20
+FC      = @FC@
21
 # FL : Fortran linker
22
-FL      = f90
23
+FL      = @FC@
24
 # AR : Archive object in a library
25
 #      keep a space at the end if options have to be separated from lib name
26
 AR      = ar vr 
27
@@ -105,13 +105,13 @@ RANLIB  = ranlib
28
 #RANLIB  = echo
29
 
30
 # SCALAP should define the SCALAPACK and  BLACS libraries.
31
-SCALAP  = -lscalapack -lblacs
32
+SCALAP  = -L@LOCALBASE@/lib -lblacs -lblacsc -lblacsf77 -lscalapack
33
 
34
 # INCLUDE DIRECTORY FOR MPI
35
-INCPAR  = -I/usr/include
36
+INCPAR  = -I@LOCALBASE@/include
37
 
38
 # LIBRARIES USED BY THE PARALLEL VERSION OF MUMPS: $(SCALAP) and MPI
39
-LIBPAR  = $(SCALAP) -L/usr/lib -lmpi
40
+LIBPAR  = -L@LOCALBASE@/lib -lfmpich -lmpich -lmpl $(SCALAP)
41
 
42
 # The parallel version is not concerned by the next two lines.
43
 # They are related to the sequential library provided by MUMPS,
44
@@ -121,10 +121,10 @@ LIBSEQ  = -Llibseq -lmpiseq
45
 
46
 # DEFINE HERE YOUR BLAS LIBRARY
47
 
48
-LIBBLAS = -lblas
49
+LIBBLAS = -L@LOCALBASE@/lib @LAPACK_LIBS@ @BLAS_LIBS@
50
 
51
 # DEFINE YOUR PTHREAD LIBRARY
52
-LIBOTHERS = -lpthread
53
+LIBOTHERS = -lpthread @GCCLIBDIR@ @FORTRANLIBS@
54
 
55
 # FORTRAN/C COMPATIBILITY:
56
 #  Use:
57
@@ -137,11 +137,11 @@ LIBOTHERS = -lpthread
58
 #     leave empty if your Fortran compiler does not change the symbols.
59
 #
60
 
61
-CDEFS = -DAdd_
62
+CDEFS ?= -DAdd_
63
 
64
 #COMPILER OPTIONS
65
-OPTF    = -O
66
-OPTC    = -O -I.
67
+OPTF    = @FCFLAGS@
68
+OPTC    = @CFLAGS@
69
 OPTL    = -O
70
 
71
 # CHOOSE BETWEEN USING THE SEQUENTIAL OR THE PARALLEL VERSION.
(-)b/math/mumps5/files/patch-Make.inc_Makefile.inc.generic.SEQ (+69 lines)
Added Link Here
1
--- Make.inc/Makefile.inc.generic.SEQ.orig	2011-05-10 12:56:32 UTC
2
+++ Make.inc/Makefile.inc.generic.SEQ
3
@@ -41,7 +41,7 @@
4
 #          Metis/ParMetis and SCOTCH/PT-SCOTCH (ver 5.1 and later) orderings are now available for MUMPS.
5
 #
6
 
7
-#SCOTCHDIR  = ${HOME}/scotch_5.1_esmumps
8
+#SCOTCHDIR  = @LOCALBASE@
9
 #ISCOTCH    = -I$(SCOTCHDIR)/include 
10
 # You have to choose one among the following two lines depending on
11
 # the type of analysis you want to perform. If you want to perform only
12
@@ -72,7 +72,7 @@ LPORD    = -L$(LPORDDIR) -lpord
13
 # The following variables will be used in the compilation process.
14
 # Please note that -Dptscotch and -Dparmetis imply -Dscotch and -Dmetis respectively.
15
 #ORDERINGSF = -Dscotch -Dmetis -Dpord -Dptscotch -Dparmetis
16
-ORDERINGSF  = -Dpord
17
+ORDERINGSF  += -Dpord
18
 ORDERINGSC  = $(ORDERINGSF)
19
 
20
 LORDERINGS = $(LMETIS) $(LPORD) $(LSCOTCH)
21
@@ -95,11 +95,11 @@ OUTF    = -o 
22
 # RM : remove files
23
 RM      = /bin/rm -f
24
 # CC : C compiler
25
-CC      = cc
26
+CC      = @CC@
27
 # FC : Fortran 90 compiler
28
-FC      = f90
29
+FC      = @FC@
30
 # FL : Fortran linker
31
-FL      = f90
32
+FL      = @FC@
33
 # AR : Archive object in a library
34
 #      keep a space at the end if options have to be separated from lib name
35
 AR      = ar vr 
36
@@ -112,14 +112,14 @@ RANLIB  = ranlib
37
 # the sequential library provided by MUMPS, to use instead
38
 # of ScaLAPACK and MPI.
39
 INCSEQ  = -I$(topdir)/libseq
40
-LIBSEQ  = -Llibseq -lmpiseq
41
+LIBSEQ  = -L$(topdir)/libseq -lmpiseq
42
 
43
 # DEFINE HERE YOUR BLAS LIBRARY
44
 
45
-LIBBLAS = -lblas
46
+LIBBLAS = -L@LOCALBASE@/lib @BLAS_LIBS@ 
47
 
48
 # DEFINE HERE YOUR PTHREAD LIBRARY
49
-LIBOTHERS = -lpthread
50
+LIBOTHERS = -lpthread @GCCLIBDIR@  @FORTRANLIBS@
51
 
52
 # FORTRAN/C COMPATIBILITY:
53
 #  Use:
54
@@ -132,12 +132,12 @@ LIBOTHERS = -lpthread
55
 #     leave empty if your Fortran compiler does not change the symbols.
56
 #
57
 
58
-CDEFS = -DAdd_
59
+CDEFS ?= -DAdd_
60
 
61
 #COMPILER OPTIONS
62
 
63
-OPTF    = -O
64
-OPTC    = -O -I.
65
+OPTF    = @FCFLAGS@
66
+OPTC    = @CFLAGS@
67
 OPTL    = -O
68
 
69
 #Sequential:
(-)b/math/mumps5/files/patch-Makefile (+20 lines)
Added Link Here
1
--- Makefile.orig	2011-05-10 12:56:32 UTC
2
+++ Makefile
3
@@ -51,7 +51,7 @@ zexamples:	z
4
 	(cd examples ; $(MAKE) z)
5
 
6
 
7
-requiredobj: Makefile.inc $(LIBSEQNEEDED) $(libdir)/libpord$(PLAT)$(LIBEXT)
8
+requiredobj: Makefile.inc $(LIBSEQNEEDED) $(libdir)/libpord$(PLAT)$(LIBEXT) $(libdir)/libpord$(PLAT).so.@SOVER@
9
 
10
 # dummy MPI library (sequential version)
11
 
12
@@ -65,7 +65,7 @@ $(libdir)/libpord$(PLAT)$(LIBEXT):
13
 	  $(MAKE) CC="$(CC)" CFLAGS="$(OPTC)" AR="$(AR)" RANLIB="$(RANLIB)" OUTC=$(OUTC) LIBEXT=$(LIBEXT); \
14
 	fi;
15
 	if [ "$(LPORDDIR)" != "" ] ; then \
16
-	  cp $(LPORDDIR)/libpord$(LIBEXT) $@; \
17
+	  cp $(LPORDDIR)/libpord* $(libdir)/; \
18
 	fi;
19
 
20
 clean:
(-)b/math/mumps5/files/patch-PORD_lib_Makefile (+19 lines)
Added Link Here
1
--- PORD/lib/Makefile.orig	2011-05-10 12:56:32 UTC
2
+++ PORD/lib/Makefile
3
@@ -21,9 +21,14 @@ OBJS = graph.o gbipart.o gbisect.o ddcreate.o ddbisect
4
 .c.o:
5
 	$(CC) $(COPTIONS) -c $*.c $(OUTC)$*.o
6
 
7
-libpord$(LIBEXT):$(OBJS)
8
-	$(AR)$@ $(OBJS)
9
+all: libpord$(LIBEXT) libpord.so.@SOVER@
10
+
11
+libpord$(LIBEXT): $(OBJS)
12
+	$(AR) $@ $(OBJS)
13
 	$(RANLIB) $@
14
+
15
+libpord.so.@SOVER@: $(OBJS)
16
+	$(CC) -shared $(OBJS) -Wl,-soname,libpord$(PLAT).so.@SOVER@ -o libpord$(PLAT).so.@SOVER@ -Wl,-z,defs
17
 
18
 clean:
19
 	rm -f *.o
(-)b/math/mumps5/files/patch-libseq_Makefile (+23 lines)
Added Link Here
1
--- libseq/Makefile.orig	2011-05-10 12:56:39 UTC
2
+++ libseq/Makefile
3
@@ -7,13 +7,18 @@ all: libmpiseq
4
 
5
 include ../Makefile.inc
6
 
7
-libmpiseq: libmpiseq$(PLAT)$(LIBEXT)
8
+libmpiseq: libmpiseq$(PLAT)$(LIBEXT) libmpiseq$(PLAT).so.@SOVER@
9
 
10
 libmpiseq$(PLAT)$(LIBEXT): mpi.o mpic.o elapse.o
11
-	$(AR)$@ mpi.o mpic.o elapse.o
12
+	$(AR) $@ mpi.o mpic.o elapse.o
13
 	$(RANLIB) $@
14
+
15
+libmpiseq$(PLAT).so.@SOVER@: mpi.o mpic.o elapse.o
16
+	$(FC) -shared ${.ALLSRC} -Wl,-soname,libmpiseq$(PLAT).so.@SOVER@ -o libmpiseq$(PLAT).so.@SOVER@ -Wl,-z,defs
17
+
18
 .f.o:
19
 	$(FC) $(OPTF)              -c $*.f $(OUTF)$*.o
20
+
21
 .c.o:
22
 	$(CC) $(OPTC) $(CDEFS) -I. -c $*.c $(OUTC)$*.o
23
 
(-)b/math/mumps5/files/patch-src_Makefile (+34 lines)
Added Link Here
1
--- src/Makefile.orig	2011-05-10 12:56:32 UTC
2
+++ src/Makefile
3
@@ -20,7 +20,9 @@ z:
4
 include $(topdir)/Makefile.inc
5
 
6
 mumps_lib:    $(libdir)/libmumps_common$(PLAT)$(LIBEXT) \
7
-              $(libdir)/lib$(ARITH)mumps$(PLAT)$(LIBEXT)
8
+              $(libdir)/libmumps_common$(PLAT).so.@SOVER@ \
9
+              $(libdir)/lib$(ARITH)mumps$(PLAT)$(LIBEXT) \
10
+              $(libdir)/lib$(ARITH)mumps$(PLAT).so.@SOVER@
11
 
12
 OBJS_COMMON = \
13
         mumps_part9.o\
14
@@ -53,12 +55,18 @@ OBJS = 	$(ARITH)mumps_part1.o\
15
 
16
 
17
 $(libdir)/libmumps_common$(PLAT)$(LIBEXT):	$(OBJS_COMMON)
18
-	$(AR)$@ $?
19
+	$(AR) $@ $?
20
 	$(RANLIB) $@
21
 
22
+$(libdir)/libmumps_common$(PLAT).so.@SOVER@:	$(OBJS_COMMON)
23
+	$(FC) -shared ${.ALLSRC} -Wl,-soname,libmumps_common$(PLAT).so.@SOVER@ -L$(libdir) $(LORDERINGS) $(LIBPAR) $(LIBOTHERS) -o $(libdir)/libmumps_common$(PLAT).so.@SOVER@ -Wl,-z,defs
24
+
25
 $(libdir)/lib$(ARITH)mumps$(PLAT)$(LIBEXT):    $(OBJS)
26
-	$(AR)$@ $?
27
+	$(AR) $@ $?
28
 	$(RANLIB) $@
29
+
30
+$(libdir)/lib$(ARITH)mumps$(PLAT).so.@SOVER@:    $(OBJS)
31
+	$(FC) -shared ${.ALLSRC} -Wl,-soname,lib$(ARITH)mumps$(PLAT).so.@SOVER@ -L$(libdir) -lmumps_common$(PLAT) $(LORDERINGS) $(LIBPAR) -lblas $(SCALAP) $(LIBOTHERS) -o $(libdir)/lib$(ARITH)mumps$(PLAT).so.@SOVER@ -Wl,-z,defs
32
 
33
 $(ARITH)mumps_load.o:		$(ARITH)mumps_comm_buffer.o \
34
 				$(ARITH)mumps_struc_def.o
(-)b/math/mumps5/pkg-descr (+16 lines)
Added Link Here
1
MUMPS is a Distributed Multifrontal Solver (F90, MPI based) with Dynamic
2
Distributed Scheduling to accomodate both numerical fill-in and multi-user
3
environment.
4
5
- Solution of large linear systems with symmetric positive definite
6
matrices; general symmetric matrices; general unsymmetric matrices.
7
- Version for complex arithmetic.
8
- Parallel factorization and solve phases (uniprocessor version also
9
available).
10
- Iterative refinement and backward error analysis.
11
- Various matrix input formats: assembled format; distributed assembled
12
format; elemental format.
13
- Partial factorization and Schur complement matrix.
14
- Several orderings interfaced : AMD, AMF, PORD
15
16
Note: This is the last version released under Public Domain.
(-)b/math/mumps5/pkg-plist (-4 / +51 lines)
Added Link Here
0
- 
1
include/mumps4/cmumps_c.h
1
 To be renamed into math/mumps, after the repocopy of math/mumps to
2
include/mumps4/cmumps_root.h
3
include/mumps4/cmumps_struc.h
4
include/mumps4/dmumps_c.h
5
include/mumps4/dmumps_root.h
6
include/mumps4/dmumps_struc.h
7
include/mumps4/mumps_c_types.h
8
include/mumps4/mumps_compat.h
9
include/mumps4/smumps_c.h
10
include/mumps4/smumps_root.h
11
include/mumps4/smumps_struc.h
12
include/mumps4/zmumps_c.h
13
include/mumps4/zmumps_root.h
14
include/mumps4/zmumps_struc.h
15
lib/libcmumps4.so
16
lib/libcmumps.so.4
17
lib/libdmumps4.so
18
lib/libdmumps.so.4
19
lib/libmpiseq4.so
20
lib/libmpiseq.so.4
21
lib/libmumps_common4.so
22
lib/libmumps_common.so.4
23
lib/libpord4.so
24
lib/libpord.so.4
25
lib/libsmumps4.so
26
lib/libsmumps.so.4
27
lib/libzmumps4.so
28
lib/libzmumps.so.4
29
lib/mumps4/libcmumps.a
30
lib/mumps4/libdmumps.a
31
lib/mumps4/libmpiseq.a
32
lib/mumps4/libmumps_common.a
33
lib/mumps4/libpord.a
34
lib/mumps4/libsmumps.a
35
lib/mumps4/libzmumps.a
36
%%PORTDOCS%%%%DOCSDIR%%/userguide_%%MUMPSVERSION%%.pdf
37
%%PORTDOCS%%%%DOCSDIR%%/userguide_%%MUMPSVERSION%%.ps.gz
38
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Makefile
39
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/README
40
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c_example
41
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c_example.c
42
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/csimpletest
43
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/csimpletest.F
44
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dsimpletest
45
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dsimpletest.F
46
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/input_simpletest_cmplx
47
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/input_simpletest_real
48
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ssimpletest
49
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ssimpletest.F
50
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/zsimpletest
51
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/zsimpletest.F
2
 math/mumps-edf;
52
 math/mumps-edf;
3
 a newer release of cad/scotch is requires: repocopy it to cad/scotch_edf
4
 before updating it.
53
 before updating it.
5
--
6
math/mumps5/Makefile                          | 158 ++++++++++--------
54
math/mumps5/Makefile                          | 158 ++++++++++--------
7
math/mumps5/distinfo                          |   5 +-
55
math/mumps5/distinfo                          |   5 +-
8
.../patch-Make.inc_Makefile.FREEBSD10.PAR     |  99 +++++++++++
56
.../patch-Make.inc_Makefile.FREEBSD10.PAR     |  99 +++++++++++
9
.../patch-Make.inc_Makefile.FREEBSD10.SEQ     |  94 +++++++++++
57
.../patch-Make.inc_Makefile.FREEBSD10.SEQ     |  94 +++++++++++
10
.../files/patch-Make.inc_Makefile.inc.generic |  71 --------
58
.../files/patch-Make.inc_Makefile.inc.generic |  71 --------
11
.../patch-Make.inc_Makefile.inc.generic.SEQ   |  69 --------
59
.../patch-Make.inc_Makefile.inc.generic.SEQ   |  69 --------
12
math/mumps5/files/patch-Makefile              |  26 +--
60
math/mumps5/files/patch-Makefile              |  26 +--
13
math/mumps5/files/patch-PORD_lib_Makefile     |  19 ++-
61
math/mumps5/files/patch-PORD_lib_Makefile     |  19 ++-
14
math/mumps5/files/patch-examples_Makefile     |  15 ++
62
math/mumps5/files/patch-examples_Makefile     |  15 ++
15
math/mumps5/files/patch-libseq_Makefile       |  33 ++--
63
math/mumps5/files/patch-libseq_Makefile       |  33 ++--
16
math/mumps5/files/patch-src_Makefile          |  42 ++---
64
math/mumps5/files/patch-src_Makefile          |  42 ++---
17
math/mumps5/pkg-descr                         |   2 +-
65
math/mumps5/pkg-descr                         |   2 +-
18
12 files changed, 359 insertions(+), 274 deletions(-)
66
12 files changed, 359 insertions(+), 274 deletions(-)
19
create mode 100644 math/mumps5/files/patch-Make.inc_Makefile.FREEBSD10.PAR
67
create mode 100644 math/mumps5/files/patch-Make.inc_Makefile.FREEBSD10.PAR
20
create mode 100644 math/mumps5/files/patch-Make.inc_Makefile.FREEBSD10.SEQ
68
create mode 100644 math/mumps5/files/patch-Make.inc_Makefile.FREEBSD10.SEQ
21
delete mode 100644 math/mumps5/files/patch-Make.inc_Makefile.inc.generic
69
delete mode 100644 math/mumps5/files/patch-Make.inc_Makefile.inc.generic
22
delete mode 100644 math/mumps5/files/patch-Make.inc_Makefile.inc.generic.SEQ
70
delete mode 100644 math/mumps5/files/patch-Make.inc_Makefile.inc.generic.SEQ
23
create mode 100644 math/mumps5/files/patch-examples_Makefile
71
create mode 100644 math/mumps5/files/patch-examples_Makefile
(-)b/math/mumps5/Makefile (-74 / +84 lines)
Lines 1-112 Link Here
1
PORTNAME=	mumps5
1
PORTNAME=	mumps5
2
PORTVERSION=	4.9.5
2
PORTVERSION=	5.9.1
3
CATEGORIES=	math
3
CATEGORIES=	math
4
MASTER_SITES=	http://mumps.enseeiht.fr/		\
4
MASTER_SITES=	https://mumps-solver.org/
5
		http://graal.ens-lyon.fr/MUMPS/		\
6
		http://www.enseeiht.fr/apo/MUMPS/	\
7
		http://www.enseeiht.fr/irit/apo/MUMPS/
8
DISTNAME=	MUMPS_${PORTVERSION}
5
DISTNAME=	MUMPS_${PORTVERSION}
9
6
10
MAINTAINER=	ports@FreeBSD.org
7
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	MUltifrontal Massively Parallel sparse direct Solver
8
COMMENT=	MUltifrontal Massively Parallel sparse direct Solver
12
WWW=		https://mumps-solver.org/
9
WWW=		https://mumps-solver.org/
13
10
14
LICENSE=	PD
11
LICENSE=	CeCILL_C
12
LICENSE_NAME=	CeCILL-C
15
LICENSE_FILE=	${WRKSRC}/LICENSE
13
LICENSE_FILE=	${WRKSRC}/LICENSE
14
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
16
15
17
USES=		fortran:gfortran
16
LIB_DEPENDS=	libmetis.so:math/metis
18
17
19
MAKE_JOBS_UNSAFE=yes
18
USES=		blaslapack:openblas fortran
20
21
FFLAGS+=	-ffast-math
22
FORTRANLIBS=	-lgfortran
23
GCCLIBDIR=	${LDFLAGS}
24
USE_LDCONFIG=	yes
25
VEM=		${PORTVERSION:R:R}
26
LIBS=		cmumps dmumps mumps_common pord smumps zmumps
27
28
CONFLICTS+=	mumps-mpich-4*
29
30
OPTIONS_DEFINE=	DOCS EXAMPLES
31
32
LIBS+=		mpiseq
33
34
PLIST_SUB+=	MUMPSVERSION=${PORTVERSION} MUMPSV=${VEM}
35
36
#-----------------------------------------------------------------------
37
# WARNING: Non-serviceable parts inside, can break other ports
38
# You may define these options/knobs:
39
#
40
# FFLAGS: Fortran compiler flags for gfortran
41
# BLASLIB: specify other version of BLAS
42
# WITH_ATLAS: Use ATLAS instead of the regular BLAS
43
#-----------------------------------------------------------------------
44
19
45
.include <bsd.port.pre.mk>
20
CONFLICTS+=	mumps-edf
46
21
47
# This is like blaslapack, except we don't use lapack at all
22
ALL_TARGET=	all allshared
48
.if exists(${LOCALBASE}/lib/libatlas.so) && !defined(WITH_BLAS)
23
FORTRANLIBS=	-L${LOCALBASE}/lib/gcc${_GCC_VER} -lgfortran
49
WITH_ATLAS=	yes
24
FCFLAGS+=	-O2 -DUSE_SCHEDAFFINITY -DUSE_MPI3
50
.endif
51
.if defined(WITH_ATLAS)
52
LIB_DEPENDS+=	libatlas.so:math/atlas
53
BLASLIB=	-lf77blas
54
#LAPACKLIB=	-lalapack -lcblas
55
.else
56
LIB_DEPENDS+=	libblas.so:math/blas
57
BLASLIB=	-lblas
58
#LAPACKLIB=	-llapack
59
.endif
60
61
.if ${GCC_DEFAULT} >= 10
62
# workaround for Type mismatch in argument 's' at (1); passed INTEGER(4) to LOGICAL(4)
25
# workaround for Type mismatch in argument 's' at (1); passed INTEGER(4) to LOGICAL(4)
63
FCFLAGS+=	-fallow-argument-mismatch
26
FCFLAGS+=	-fallow-argument-mismatch
64
.endif
27
GCCLIBDIR=	${LDFLAGS}
28
USE_LDCONFIG=	yes
29
VEM=		${PORTVERSION:R:R:R}
30
MUMPSVERSION=	${PORTVERSION:R}
31
LIBS=	cmumps dmumps mumps_common pord smumps zmumps
32
PLIST_SUB=	VE=${VEM} MUMPSVERSION=${DISTVERSION}
33
34
OPTIONS_DEFINE=	DOCS EXAMPLES MPICH
35
OPTIONS_DEFAULT=MPICH
36
37
MPICH_USES=		mpi:mpich
38
MPICH_LIB_DEPENDS_OFF=	libscotch.so:cad/scotch
39
MPICH_LIB_DEPENDS=	libblacs.so:math/blacs	\
40
			libptscotch.so:cad/scotch	\
41
			libscalapack.so:math/scalapack
42
MPICH_PLIST_SUB=	WITH_LIBSEQ="@comment "
43
MPICH_PLIST_SUB_OFF=	WITH_LIBSEQ=""
44
MPICH_LIBS_OFF=		mpiseq
65
45
66
pre-configure:
46
MAKE_JOBS_UNSAFE=yes
67
	${INSTALL_DATA} ${WRKSRC}/Make.inc/Makefile.inc.generic.SEQ \
68
		${WRKSRC}/Makefile.inc
69
	${REINPLACE_CMD} -e 's+LIBPAR+LIBSEQ+' ${WRKSRC}/src/Makefile
70
47
71
pre-build:
48
pre-configure:
72
	${DIRNAME} `${FC} -print-libgcc-file-name` > ${WRKSRC}/LIBDIR
49
	${DIRNAME} `${FC} -print-libgcc-file-name` > ${WRKSRC}/LIBDIR
73
.for MF in Makefile Makefile.inc PORD/lib/Makefile libseq/Makefile src/Makefile
50
.for MF in Makefile PORD/lib/Makefile libseq/Makefile src/Makefile	\
74
	${REINPLACE_CMD} -e 's+@CC@+${CC}+g ; s+@FC@+${FC}+g ; \
51
	Make.inc/Makefile.FREEBSD10.PAR Make.inc/Makefile.FREEBSD10.SEQ
52
	${REINPLACE_CMD} -e 's+/usr/local+${LOCALBASE}+; \
75
	s+@CFLAGS@+${CFLAGS} -fPIC+g; \
53
	s+@CFLAGS@+${CFLAGS} -fPIC+g; \
76
	s+@FCFLAGS@+${FCFLAGS} -fPIC+g; \
54
	s+@FCFLAGS@+${FCFLAGS} -fPIC+g; \
77
	s+@SOVER@+${VEM}+g; \
55
	s+@SOVER@+${VEM}+g; \
78
	s+@GCCLIBDIR@+${GCCLIBDIR}+g; \
56
	s+@GCCLIBDIR@+${GCCLIBDIR}+g; \
79
	s+@FORTRANLIBS@+${FORTRANLIBS}+g; \
57
	s+@FORTRANLIBS@+${FORTRANLIBS}+g; \
80
	s+@BLAS_LIBS@+${BLASLIB}+ ; \
58
	s+@BLASLIB@+${BLASLIB}+ ; \
59
	s+@LAPACKLIB@+${LAPACKLIB}+ ; \
60
	s+@MPI_CFLAGS@+${MPI_CFLAGS}+ ; \
61
	s+@MPI_LIBS@+${MPI_LIBS}+ ; \
81
	s+@LOCALBASE@+${LOCALBASE}+g;' \
62
	s+@LOCALBASE@+${LOCALBASE}+g;' \
82
		${WRKSRC}/${MF}
63
		${WRKSRC}/${MF}
83
.endfor
64
.endfor
84
65
66
pre-configure-MPICH-on:
67
	${REINPLACE_CMD} -e 's+@CC@+${MPICC}+g ; s+@FC@+${MPIF90}+'	\
68
		${WRKSRC}/Make.inc/Makefile.FREEBSD10.PAR
69
	${INSTALL_DATA} ${WRKSRC}/Make.inc/Makefile.FREEBSD10.PAR \
70
		${WRKSRC}/Makefile.inc
71
	${REINPLACE_CMD} -e '/lptscotch/s|#LSCOTCH|LSCOTCH|'	\
72
		-e 's|^LMETIS|##LMETIS|;s|^#LMETIS|LMETIS|' ${WRKSRC}/Makefile.inc
73
74
pre-configure-MPICH-off:
75
	${REINPLACE_CMD} -e 's+@CC@+${CC}+g ; s+@FC@+${FC}+'	\
76
		${WRKSRC}/Make.inc/Makefile.FREEBSD10.SEQ
77
	${INSTALL_DATA} ${WRKSRC}/Make.inc/Makefile.FREEBSD10.SEQ \
78
		${WRKSRC}/Makefile.inc
79
	${REINPLACE_CMD} -e '/lscotch/s|#LSCOTCH|LSCOTCH|' ${WRKSRC}/Makefile.inc
80
85
do-install:
81
do-install:
86
	${MKDIR} ${STAGEDIR}${PREFIX}/include/${PORTNAME}
82
	${INSTALL_DATA} ${WRKSRC}/include/*.h ${STAGEDIR}${PREFIX}/include
87
	${INSTALL_DATA} ${WRKSRC}/include/*.h ${STAGEDIR}${PREFIX}/include/${PORTNAME}
83
	${INSTALL_DATA} ${WRKSRC}/lib/lib*.a ${STAGEDIR}${PREFIX}/lib
88
	${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
84
	${INSTALL_LIB} ${WRKSRC}/lib/lib*.so ${STAGEDIR}${PREFIX}/lib
89
	${INSTALL_DATA} ${WRKSRC}/lib/lib*.a ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
90
	${INSTALL_LIB} ${WRKSRC}/lib/lib*.so.${VEM} ${STAGEDIR}${PREFIX}/lib
91
	${INSTALL_DATA} ${WRKSRC}/libseq/libmpiseq.a ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
92
	${INSTALL_LIB} ${WRKSRC}/libseq/libmpiseq*.so.${VEM} ${STAGEDIR}${PREFIX}/lib
93
.for lib in ${LIBS}
85
.for lib in ${LIBS}
94
	(cd ${STAGEDIR}${PREFIX}/lib &&	\
86
	(cd ${STAGEDIR}${PREFIX}/lib &&	\
95
		${LN} -sf lib${lib}.so.${VEM} ${STAGEDIR}${PREFIX}/lib/lib${lib}4.so)
87
	${LN} -sf lib${lib}.so ${STAGEDIR}${PREFIX}/lib/lib${lib}.so.${VEM})
96
. endfor
88
.endfor
89
90
do-install-EXAMPLES-on:
97
	${MKDIR} ${STAGEDIR}${DOCSDIR}
91
	${MKDIR} ${STAGEDIR}${DOCSDIR}
98
	${INSTALL_DATA} ${WRKSRC}/doc/userguide_${PORTVERSION}.pdf ${STAGEDIR}${DOCSDIR}
92
	${INSTALL_DATA} ${WRKSRC}/doc/userguide_${DISTVERSION}.pdf ${STAGEDIR}${DOCSDIR}
99
	${INSTALL_DATA} ${WRKSRC}/doc/userguide_${PORTVERSION}.ps ${STAGEDIR}${DOCSDIR}
93
100
	${GZIP_CMD} ${STAGEDIR}${DOCSDIR}/userguide_${PORTVERSION}.ps
94
do-install-DOCS-on:
101
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
95
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
102
. for ex in Makefile README *.c *.F input_simpletest_*
96
.for ex in Makefile README *.c *.F input_simpletest_*
103
	${INSTALL_DATA} ${WRKSRC}/examples/${ex} ${STAGEDIR}${EXAMPLESDIR}
97
	${INSTALL_DATA} ${WRKSRC}/examples/${ex} ${STAGEDIR}${EXAMPLESDIR}
104
. endfor
98
.endfor
105
. for ex in c_example *simpletest
99
.for ex in c_example *simpletest
106
	${INSTALL_PROGRAM} ${WRKSRC}/examples/${ex} ${STAGEDIR}${EXAMPLESDIR}
100
	${INSTALL_PROGRAM} ${WRKSRC}/examples/${ex} ${STAGEDIR}${EXAMPLESDIR}
101
.endfor
102
103
do-install-MPICH-off:
104
	${MKDIR} ${STAGEDIR}${PREFIX}/include/mumps_seq
105
	${INSTALL_DATA} ${WRKSRC}/libseq/mpi.h ${STAGEDIR}${PREFIX}/include/mumps_seq/mpi.h
106
	${INSTALL_DATA} ${WRKSRC}/libseq/libmpiseq.a ${STAGEDIR}${PREFIX}/lib
107
	${INSTALL_LIB} ${WRKSRC}/libseq/libmpiseq*.so ${STAGEDIR}${PREFIX}/lib
108
	(cd ${STAGEDIR}${PREFIX}/lib &&	\
109
	${LN} -sf libmpiseq.so ${STAGEDIR}${PREFIX}/lib/libmpiseq.so.5)
110
.for lib in ${LIBS}
111
. for ext in a so so.5
112
	(cd ${STAGEDIR}${PREFIX}/lib &&	\
113
	${LN} -sf lib${lib}.${ext} ${STAGEDIR}${PREFIX}/lib/lib${lib}_seq.${ext})
107
. endfor
114
. endfor
115
.endfor
108
116
109
regression-test:	install
117
.if defined(MAINTAINER_MODE)
118
do-test:	install
110
	(cd ${WRKSRC}/examples &&	\
119
	(cd ${WRKSRC}/examples &&	\
111
	./ssimpletest < input_simpletest_real ;			\
120
	./ssimpletest < input_simpletest_real ;			\
112
	./dsimpletest < input_simpletest_real ;			\
121
	./dsimpletest < input_simpletest_real ;			\
Lines 115-119 regression-test: install Link Here
115
	${ECHO_MSG} "The solution should be (1,2,3,4,5)" ;	\
124
	${ECHO_MSG} "The solution should be (1,2,3,4,5)" ;	\
116
	./c_example ;						\
125
	./c_example ;						\
117
	${ECHO_MSG} "The solution should be (1,2)")
126
	${ECHO_MSG} "The solution should be (1,2)")
127
.endif
118
128
119
.include <bsd.port.post.mk>
129
.include <bsd.port.mk>
(-)b/math/mumps5/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (MUMPS_4.10.0.tar.gz) = d0f86f91a74c51a17a2ff1be9c9cee2338976f13a6d00896ba5b43a5ca05d933
1
TIMESTAMP = 1791036775
2
SIZE (MUMPS_4.10.0.tar.gz) = 2481516
2
SHA256 (MUMPS_5.9.1.tar.gz) = 659c9b57646b5a003ac618baa1faf9dd2044e46c732b3daaccbc7158003e1b46
3
SIZE (MUMPS_5.9.1.tar.gz) = 4983937
(-)b/math/mumps5/files/patch-Make.inc_Makefile.FREEBSD10.PAR (+99 lines)
Added Link Here
1
--- Make.inc/Makefile.FREEBSD10.PAR.orig	2026-07-20 09:00:43 UTC
2
+++ Make.inc/Makefile.FREEBSD10.PAR
3
@@ -20,7 +20,7 @@
4
 #
5
 
6
 #SCOTCHDIR  = ${HOME}/scotch_6.0
7
-#ISCOTCH    = -I$(SCOTCHDIR)/include
8
+ISCOTCH    = -I@LOCALBASE@/include
9
 #
10
 # You have to choose one among the following two lines depending on
11
 # the type of analysis you want to perform. If you want to perform only
12
@@ -29,15 +29,15 @@
13
 # line (remember to add -Dptscotch in the ORDERINGSF variable below)
14
 
15
 #LSCOTCH    = -L$(SCOTCHDIR)/lib -lesmumps -lscotch -lscotcherr
16
-#LSCOTCH    = -L$(SCOTCHDIR)/lib -lptesmumps -lptscotch -lptscotcherr
17
+LSCOTCH    = -L@LOCALBASE@/lib -lptesmumps -lptscotch -lptscotcherr -lz
18
 
19
 
20
 LPORDDIR = $(topdir)/PORD/lib/
21
 IPORD    = -I$(topdir)/PORD/include/
22
 LPORD    = -L$(LPORDDIR) -lpord$(PLAT)
23
 
24
-#LMETISDIR = /opt/metis-5.1.0/build/Linux-x86_64/libmetis
25
-#IMETIS    = /opt/metis-5.1.0/include
26
+LMETISDIR = @LOCALBASE@/lib
27
+IMETIS    = @LOCALBASE@/include
28
 
29
 # You have to choose one among the following two lines depending on
30
 # the type of analysis you want to perform. If you want to perform only
31
@@ -45,7 +45,8 @@ LPORD    = -L$(LPORDDIR) -lpord$(PLAT)
32
 # variable below); for both parallel and sequential analysis choose the second 
33
 # line (remember to add -Dparmetis in the ORDERINGSF variable below)
34
 
35
-#LMETIS    = -L$(LMETISDIR) -lmetis
36
+# FreeBSD note: Parmetis is not free, we use pt-scotch
37
+LMETIS    = -L$(LMETISDIR) -lmetis
38
 #LMETIS    = -L$(LMETISDIR) -lparmetis -lmetis
39
 
40
 # The following variables will be used in the compilation process.
41
@@ -53,7 +54,7 @@ LPORD    = -L$(LPORDDIR) -lpord$(PLAT)
42
 # If you want to use Metis 4.X or an older version, you should use -Dmetis4 instead of -Dmetis
43
 # or in addition with -Dparmetis (if you are using parmetis 3.X or older).
44
 #ORDERINGSF = -Dscotch -Dmetis -Dpord -Dptscotch -Dparmetis
45
-ORDERINGSF  = -Dpord
46
+ORDERINGSF  = -Dpord -Dmetis -Dscotch -Dptscotch
47
 ORDERINGSC  = $(ORDERINGSF)
48
 
49
 LORDERINGS = $(LMETIS) $(LPORD) $(LSCOTCH)
50
@@ -73,34 +74,34 @@ FPIC_OPT = -fPIC
51
 # Adapt/uncomment RPATH_OPT to avoid modifying
52
 # LD_LIBRARY_PATH in case of shared libraries
53
 # RPATH_OPT = -Wl,-rpath,/path/to/MUMPS_x.y.z/lib/
54
-OUTC    = -o ""
55
-OUTF    = -o ""
56
+OUTC    = -o 
57
+OUTF    = -o 
58
 RM      = /bin/rm -f
59
-CC      = cc
60
-FC      = gfortran48
61
-FL      = gfortran48
62
+CC      = @CC@
63
+FC      = @FC@
64
+FL      = @FC@
65
 #      keep a space at the end if options have to be separated from lib name
66
-AR      = ar -vr "" 
67
+AR      = ar -vr  
68
 RANLIB  = ranlib
69
-LAPACK  = -llapack
70
-SCALAP  = -lscalapack -lblacs
71
+LAPACK  = @LAPACKLIB@
72
+SCALAP  = -L@LOCALBASE@/lib -lscalapack -lblacs -lblacsc -lblacsf77 -lexecinfo
73
 
74
-INCPAR  = -I/usr/local/include
75
-LIBPAR  = $(SCALAP) $(LAPACK) -L/usr/local/lib -lmpi
76
+INCPAR  = @MPI_CFLAGS@
77
+LIBPAR  = $(SCALAP) @MPI_LIBS@
78
 
79
 INCSEQ  = -I$(topdir)/libseq
80
 LIBSEQ  = $(LAPACK) -L$(topdir)/libseq -lmpiseq$(PLAT)
81
-LIBBLAS = -lblas
82
-LIBOTHERS = -lpthread
83
+LIBBLAS = @BLASLIB@
84
+LIBOTHERS = -pthread
85
 
86
 #Preprocessor defs for calling Fortran from C (-DAdd_ or -DAdd__ or -DUPPER)
87
 CDEFS   = -DAdd_
88
 
89
 #Begin Optimized options
90
 # uncomment -fopenmp in lines below to benefit from OpenMP
91
-OPTF    = -O #-fopenmp
92
-OPTL    = -O #-fopenmp
93
-OPTC    = -O -I. #-fopenmp
94
+OPTF    = @FCFLAGS@ -fopenmp
95
+OPTL    = -O -fopenmp
96
+OPTC    = @CFLAGS@ -I. -fopenmp
97
 #End Optimized options
98
  
99
 
(-)b/math/mumps5/files/patch-Make.inc_Makefile.FREEBSD10.SEQ (+94 lines)
Added Link Here
1
--- Make.inc/Makefile.FREEBSD10.SEQ.orig	2026-07-20 09:00:43 UTC
2
+++ Make.inc/Makefile.FREEBSD10.SEQ
3
@@ -20,7 +20,7 @@
4
 #
5
 
6
 #SCOTCHDIR  = ${HOME}/scotch_6.0
7
-#ISCOTCH    = -I$(SCOTCHDIR)/include
8
+ISCOTCH    = -I@LOCALBASE@/include
9
 #
10
 # You have to choose one among the following two lines depending on
11
 # the type of analysis you want to perform. If you want to perform only
12
@@ -28,7 +28,7 @@
13
 # variable below); for both parallel and sequential analysis choose the second 
14
 # line (remember to add -Dptscotch in the ORDERINGSF variable below)
15
 
16
-#LSCOTCH    = -L$(SCOTCHDIR)/lib -lesmumps -lscotch -lscotcherr
17
+LSCOTCH    = -L@LOCALBASE@/lib -lesmumps -lscotch -lscotcherr
18
 #LSCOTCH    = -L$(SCOTCHDIR)/lib -lptesmumps -lptscotch -lptscotcherr
19
 
20
 
21
@@ -36,8 +36,8 @@ LPORD    = -L$(LPORDDIR) -lpord$(PLAT)
22
 IPORD    = -I$(topdir)/PORD/include/
23
 LPORD    = -L$(LPORDDIR) -lpord$(PLAT)
24
 
25
-#LMETISDIR = /opt/metis-5.1.0/build/Linux-x86_64/libmetis
26
-#IMETIS    = /opt/metis-5.1.0/include
27
+LMETISDIR = @LOCALBASE@/lib
28
+IMETIS    = @LOCALBASE@/include
29
 
30
 # You have to choose one among the following two lines depending on
31
 # the type of analysis you want to perform. If you want to perform only
32
@@ -45,7 +45,7 @@ LPORD    = -L$(LPORDDIR) -lpord$(PLAT)
33
 # variable below); for both parallel and sequential analysis choose the second 
34
 # line (remember to add -Dparmetis in the ORDERINGSF variable below)
35
 
36
-#LMETIS    = -L$(LMETISDIR) -lmetis
37
+LMETIS    = -L$(LMETISDIR) -lmetis
38
 #LMETIS    = -L$(LMETISDIR) -lparmetis -lmetis
39
 
40
 # The following variables will be used in the compilation process.
41
@@ -53,7 +53,7 @@ LPORD    = -L$(LPORDDIR) -lpord$(PLAT)
42
 # If you want to use Metis 4.X or an older version, you should use -Dmetis4 instead of -Dmetis
43
 # or in addition with -Dparmetis (if you are using parmetis 3.X or older).
44
 #ORDERINGSF = -Dscotch -Dmetis -Dpord -Dptscotch -Dparmetis
45
-ORDERINGSF  = -Dpord
46
+ORDERINGSF  = -Dscotch -Dmetis -Dpord
47
 ORDERINGSC  = $(ORDERINGSF)
48
 
49
 LORDERINGS = $(LMETIS) $(LPORD) $(LSCOTCH)
50
@@ -73,31 +73,31 @@ FPIC_OPT = -fPIC
51
 # Adapt/uncomment RPATH_OPT to avoid modifying
52
 # LD_LIBRARY_PATH in case of shared libraries
53
 # RPATH_OPT = -Wl,-rpath,/path/to/MUMPS_x.y.z/lib/
54
-OUTC    = -o ""
55
-OUTF    = -o ""
56
+OUTC    = -o 
57
+OUTF    = -o 
58
 RM      = /bin/rm -f
59
-CC      = cc
60
-FC      = gfortran48
61
-FL      = gfortran48
62
+CC      = @CC@
63
+FC      = @FC@
64
+FL      = @FC@
65
 #      keep a space at the end if options have to be separated from lib name
66
-AR      = ar -vr "" 
67
+AR      = ar -vr 
68
 RANLIB  = ranlib
69
-LAPACK  = -llapack
70
+LAPACK  = @LAPACKLIB@
71
 
72
 
73
 INCSEQ  = -I$(topdir)/libseq
74
 LIBSEQ  = $(LAPACK) -L$(topdir)/libseq -lmpiseq$(PLAT)
75
-LIBBLAS = -lblas
76
-LIBOTHERS = -lpthread
77
+LIBBLAS = @BLASLIB@
78
+LIBOTHERS = -pthread @GCCLIBDIR@ @FORTRANLIBS@
79
 
80
 #Preprocessor defs for calling Fortran from C (-DAdd_ or -DAdd__ or -DUPPER)
81
-CDEFS   = -DAdd_
82
+CDEFS   ?= -DAdd_
83
 
84
 #Begin Optimized options
85
 # uncomment -fopenmp in lines below to benefit from OpenMP
86
-OPTF    = -O #-fopenmp
87
-OPTL    = -O #-fopenmp
88
-OPTC    = -O -I. #-fopenmp
89
+OPTF    = @FCFLAGS@ -fopenmp
90
+OPTL    = -O -fopenmp
91
+OPTC    = @CFLAGS@ -I. -fopenmp
92
 #End Optimized options
93
  
94
 
(-)a/math/mumps5/files/patch-Make.inc_Makefile.inc.generic (-71 lines)
Removed Link Here
1
--- Make.inc/Makefile.inc.generic.orig	2011-05-10 12:56:32 UTC
2
+++ Make.inc/Makefile.inc.generic
3
@@ -70,7 +70,7 @@ LPORD    = -L$(LPORDDIR) -lpord
4
 # The following variables will be used in the compilation process.
5
 # Please note that -Dptscotch and -Dparmetis imply -Dscotch and -Dmetis respectively.
6
 #ORDERINGSF = -Dscotch -Dmetis -Dpord -Dptscotch -Dparmetis
7
-ORDERINGSF  = -Dpord
8
+ORDERINGSF  += -Dpord
9
 ORDERINGSC  = $(ORDERINGSF)
10
 
11
 LORDERINGS = $(LMETIS) $(LPORD) $(LSCOTCH)
12
@@ -91,11 +91,11 @@ OUTF    = -o 
13
 # RM : remove files
14
 RM      = /bin/rm -f
15
 # CC : C compiler
16
-CC      = cc
17
+CC      = @CC@
18
 # FC : Fortran 90 compiler
19
-FC      = f90
20
+FC      = @FC@
21
 # FL : Fortran linker
22
-FL      = f90
23
+FL      = @FC@
24
 # AR : Archive object in a library
25
 #      keep a space at the end if options have to be separated from lib name
26
 AR      = ar vr 
27
@@ -105,13 +105,13 @@ RANLIB  = ranlib
28
 #RANLIB  = echo
29
 
30
 # SCALAP should define the SCALAPACK and  BLACS libraries.
31
-SCALAP  = -lscalapack -lblacs
32
+SCALAP  = -L@LOCALBASE@/lib -lblacs -lblacsc -lblacsf77 -lscalapack
33
 
34
 # INCLUDE DIRECTORY FOR MPI
35
-INCPAR  = -I/usr/include
36
+INCPAR  = -I@LOCALBASE@/include
37
 
38
 # LIBRARIES USED BY THE PARALLEL VERSION OF MUMPS: $(SCALAP) and MPI
39
-LIBPAR  = $(SCALAP) -L/usr/lib -lmpi
40
+LIBPAR  = -L@LOCALBASE@/lib -lfmpich -lmpich -lmpl $(SCALAP)
41
 
42
 # The parallel version is not concerned by the next two lines.
43
 # They are related to the sequential library provided by MUMPS,
44
@@ -121,10 +121,10 @@ LIBSEQ  = -Llibseq -lmpiseq
45
 
46
 # DEFINE HERE YOUR BLAS LIBRARY
47
 
48
-LIBBLAS = -lblas
49
+LIBBLAS = -L@LOCALBASE@/lib @LAPACK_LIBS@ @BLAS_LIBS@
50
 
51
 # DEFINE YOUR PTHREAD LIBRARY
52
-LIBOTHERS = -lpthread
53
+LIBOTHERS = -lpthread @GCCLIBDIR@ @FORTRANLIBS@
54
 
55
 # FORTRAN/C COMPATIBILITY:
56
 #  Use:
57
@@ -137,11 +137,11 @@ LIBOTHERS = -lpthread
58
 #     leave empty if your Fortran compiler does not change the symbols.
59
 #
60
 
61
-CDEFS = -DAdd_
62
+CDEFS ?= -DAdd_
63
 
64
 #COMPILER OPTIONS
65
-OPTF    = -O
66
-OPTC    = -O -I.
67
+OPTF    = @FCFLAGS@
68
+OPTC    = @CFLAGS@
69
 OPTL    = -O
70
 
71
 # CHOOSE BETWEEN USING THE SEQUENTIAL OR THE PARALLEL VERSION.
(-)a/math/mumps5/files/patch-Make.inc_Makefile.inc.generic.SEQ (-69 lines)
Removed Link Here
1
--- Make.inc/Makefile.inc.generic.SEQ.orig	2011-05-10 12:56:32 UTC
2
+++ Make.inc/Makefile.inc.generic.SEQ
3
@@ -41,7 +41,7 @@
4
 #          Metis/ParMetis and SCOTCH/PT-SCOTCH (ver 5.1 and later) orderings are now available for MUMPS.
5
 #
6
 
7
-#SCOTCHDIR  = ${HOME}/scotch_5.1_esmumps
8
+#SCOTCHDIR  = @LOCALBASE@
9
 #ISCOTCH    = -I$(SCOTCHDIR)/include 
10
 # You have to choose one among the following two lines depending on
11
 # the type of analysis you want to perform. If you want to perform only
12
@@ -72,7 +72,7 @@ LPORD    = -L$(LPORDDIR) -lpord
13
 # The following variables will be used in the compilation process.
14
 # Please note that -Dptscotch and -Dparmetis imply -Dscotch and -Dmetis respectively.
15
 #ORDERINGSF = -Dscotch -Dmetis -Dpord -Dptscotch -Dparmetis
16
-ORDERINGSF  = -Dpord
17
+ORDERINGSF  += -Dpord
18
 ORDERINGSC  = $(ORDERINGSF)
19
 
20
 LORDERINGS = $(LMETIS) $(LPORD) $(LSCOTCH)
21
@@ -95,11 +95,11 @@ OUTF    = -o 
22
 # RM : remove files
23
 RM      = /bin/rm -f
24
 # CC : C compiler
25
-CC      = cc
26
+CC      = @CC@
27
 # FC : Fortran 90 compiler
28
-FC      = f90
29
+FC      = @FC@
30
 # FL : Fortran linker
31
-FL      = f90
32
+FL      = @FC@
33
 # AR : Archive object in a library
34
 #      keep a space at the end if options have to be separated from lib name
35
 AR      = ar vr 
36
@@ -112,14 +112,14 @@ RANLIB  = ranlib
37
 # the sequential library provided by MUMPS, to use instead
38
 # of ScaLAPACK and MPI.
39
 INCSEQ  = -I$(topdir)/libseq
40
-LIBSEQ  = -Llibseq -lmpiseq
41
+LIBSEQ  = -L$(topdir)/libseq -lmpiseq
42
 
43
 # DEFINE HERE YOUR BLAS LIBRARY
44
 
45
-LIBBLAS = -lblas
46
+LIBBLAS = -L@LOCALBASE@/lib @BLAS_LIBS@ 
47
 
48
 # DEFINE HERE YOUR PTHREAD LIBRARY
49
-LIBOTHERS = -lpthread
50
+LIBOTHERS = -lpthread @GCCLIBDIR@  @FORTRANLIBS@
51
 
52
 # FORTRAN/C COMPATIBILITY:
53
 #  Use:
54
@@ -132,12 +132,12 @@ LIBOTHERS = -lpthread
55
 #     leave empty if your Fortran compiler does not change the symbols.
56
 #
57
 
58
-CDEFS = -DAdd_
59
+CDEFS ?= -DAdd_
60
 
61
 #COMPILER OPTIONS
62
 
63
-OPTF    = -O
64
-OPTC    = -O -I.
65
+OPTF    = @FCFLAGS@
66
+OPTC    = @CFLAGS@
67
 OPTL    = -O
68
 
69
 #Sequential:
(-)b/math/mumps5/files/patch-Makefile (-13 / +13 lines)
Lines 1-20 Link Here
1
--- Makefile.orig	2011-05-10 12:56:32 UTC
1
--- Makefile.orig	2024-01-26 07:07:27 UTC
2
+++ Makefile
2
+++ Makefile
3
@@ -51,7 +51,7 @@ zexamples:	z
3
@@ -91,7 +91,7 @@ $(libdir)/libpord$(PLAT)$(LIBEXT):
4
 	(cd examples ; $(MAKE) z)
4
 	  $(MAKE) CC="$(CC)" PLAT="$(PLAT)" CFLAGS="$(OPTC)" AR="$(AR)" RANLIB="$(RANLIB)" OUTC="$(OUTC)" LIBEXT="$(LIBEXT)" LIBEXT_SHARED="$(LIBEXT_SHARED)" libpord$(PLAT)$(LIBEXT); \
5
 
5
 	fi;
6
 
6
 	if [ "$(LPORDDIR)" != "" ] ; then \
7
-requiredobj: Makefile.inc $(LIBSEQNEEDED) $(libdir)/libpord$(PLAT)$(LIBEXT)
7
-	  cp $(LPORDDIR)/libpord$(PLAT)$(LIBEXT) $@; \
8
+requiredobj: Makefile.inc $(LIBSEQNEEDED) $(libdir)/libpord$(PLAT)$(LIBEXT) $(libdir)/libpord$(PLAT).so.@SOVER@
8
+	  cp $(LPORDDIR)/libpord* $(libdir)/; \
9
 
9
 	fi;
10
 # dummy MPI library (sequential version)
11
 
10
 
12
@@ -65,7 +65,7 @@ $(libdir)/libpord$(PLAT)$(LIBEXT):
11
 $(libdir)/libpord$(PLAT)$(LIBEXT_SHARED):
13
 	  $(MAKE) CC="$(CC)" CFLAGS="$(OPTC)" AR="$(AR)" RANLIB="$(RANLIB)" OUTC=$(OUTC) LIBEXT=$(LIBEXT); \
12
@@ -100,7 +100,7 @@ $(libdir)/libpord$(PLAT)$(LIBEXT_SHARED):
13
 	  $(MAKE) PLAT="$(PLAT)" FPIC="$(FPIC_OPT)" CC="$(CC)" CFLAGS="$(OPTC)" AR="$(AR)" RANLIB="$(RANLIB)" OUTC="$(OUTC)" LIBEXT="$(LIBEXT)" LIBEXT_SHARED="$(LIBEXT_SHARED)" libpord$(PLAT)$(LIBEXT_SHARED); \
14
 	fi;
14
 	fi;
15
 	if [ "$(LPORDDIR)" != "" ] ; then \
15
 	if [ "$(LPORDDIR)" != "" ] ; then \
16
-	  cp $(LPORDDIR)/libpord$(LIBEXT) $@; \
16
-	  cp $(LPORDDIR)/libpord$(PLAT)$(LIBEXT_SHARED) $@; \
17
+	  cp $(LPORDDIR)/libpord* $(libdir)/; \
17
+	  cp $(LPORDDIR)/libpord* $(libdir)/; \
18
 	fi;
18
 	fi;
19
 
19
 
20
 clean:
20
 
(-)b/math/mumps5/files/patch-PORD_lib_Makefile (-9 / +10 lines)
Lines 1-19 Link Here
1
--- PORD/lib/Makefile.orig	2011-05-10 12:56:32 UTC
1
--- PORD/lib/Makefile.orig	2026-07-20 09:00:43 UTC
2
+++ PORD/lib/Makefile
2
+++ PORD/lib/Makefile
3
@@ -21,9 +21,14 @@ OBJS = graph.o gbipart.o gbisect.o ddcreate.o ddbisect
3
@@ -26,12 +26,14 @@ OBJS = graph.o gbipart.o gbisect.o ddcreate.o ddbisect
4
 .c.o:
4
 .c.o:
5
 	$(CC) $(COPTIONS) -c $*.c $(OUTC)$*.o
5
 	$(CC) $(COPTIONS) -c $*.c $(OUTC)$*.o
6
 
6
 
7
-libpord$(LIBEXT):$(OBJS)
7
+all: libpord$(LIBEXT) libpord$(PLAT)$(LIBEXT_SHARED)
8
-	$(AR)$@ $(OBJS)
9
+all: libpord$(LIBEXT) libpord.so.@SOVER@
10
+
8
+
11
+libpord$(LIBEXT): $(OBJS)
9
 libpord$(PLAT)$(LIBEXT):$(OBJS)
10
-	$(AR)$@ $(OBJS)
12
+	$(AR) $@ $(OBJS)
11
+	$(AR) $@ $(OBJS)
13
 	$(RANLIB) $@
12
 	$(RANLIB) $@
14
+
13
 
15
+libpord.so.@SOVER@: $(OBJS)
14
-libpord$(PLAT)$(LIBEXT_SHARED):$(OBJS)
16
+	$(CC) -shared $(OBJS) -Wl,-soname,libpord$(PLAT).so.@SOVER@ -o libpord$(PLAT).so.@SOVER@ -Wl,-z,defs
15
-	$(CC) -shared $(OBJS) -o libpord$(PLAT)$(LIBEXT_SHARED)
16
+libpord$(PLAT)$(LIBEXT_SHARED): $(OBJS)
17
+	$(CC) -shared $(OBJS) -Wl,-soname,libpord$(PLAT)$(LIBEXT_SHARED) -o libpord$(PLAT)$(LIBEXT_SHARED)
17
 
18
 
18
 clean:
19
 clean:
19
 	rm -f *.o
20
 	rm -f *.o
(-)b/math/mumps5/files/patch-examples_Makefile (+15 lines)
Added Link Here
1
--- examples/Makefile.orig	2022-12-16 15:54:16 UTC
2
+++ examples/Makefile
3
@@ -64,9 +64,10 @@ c_example_save_restore: $$@.o
4
 
5
 .SUFFIXES: .c .F .o
6
 .F.o:
7
-	$(FC) $(OPTF) -I. -I$(topdir)/include -I$(topdir)/src $(INCS) -c $*.F $(OUTF)$*.o
8
+	$(FC) $(OPTF) -I. -I$(topdir)/include -I$(topdir)/src $(INCS) -c $*.F $(OUTF) $*.o
9
+
10
 .c.o:
11
-	$(CC) $(OPTC) $(CDEFS) -I. -I$(topdir)/include -I$(topdir)/src $(INCS) -c $*.c $(OUTC)$*.o
12
+	$(CC) $(OPTC) $(CDEFS) -I. -I$(topdir)/include -I$(topdir)/src $(INCS) -c $*.c $(OUTC) $*.o
13
 
14
 clean:
15
 	$(RM) *.o [sdcz]simpletest c_example multiple_arithmetics_example ssimpletest_save_restore dsimpletest_save_restore csimpletest_save_restore zsimpletest_save_restore c_example_save_restore
(-)b/math/mumps5/files/patch-libseq_Makefile (-14 / +19 lines)
Lines 1-23 Link Here
1
--- libseq/Makefile.orig	2011-05-10 12:56:39 UTC
1
--- libseq/Makefile.orig	2026-07-20 09:00:46 UTC
2
+++ libseq/Makefile
2
+++ libseq/Makefile
3
@@ -7,13 +7,18 @@ all: libmpiseq
3
@@ -2,7 +2,7 @@
4
 #  This file is part of MUMPS 5.9.1, released
5
 #  on Mon Jul 20 09:00:43 UTC 2026
6
 #
7
-all: staticlibmpiseq
8
+all: staticlibmpiseq sharedlibmpiseq
4
 
9
 
5
 include ../Makefile.inc
10
 .PHONY: all staticlibmpiseq sharedlibmpiseq clean
6
 
11
 
7
-libmpiseq: libmpiseq$(PLAT)$(LIBEXT)
12
@@ -12,14 +12,14 @@ libmpiseq$(PLAT)$(LIBEXT): mpi.o mpic.o elapse.o
8
+libmpiseq: libmpiseq$(PLAT)$(LIBEXT) libmpiseq$(PLAT).so.@SOVER@
13
 staticlibmpiseq: libmpiseq$(PLAT)$(LIBEXT)
9
 
14
 
10
 libmpiseq$(PLAT)$(LIBEXT): mpi.o mpic.o elapse.o
15
 libmpiseq$(PLAT)$(LIBEXT): mpi.o mpic.o elapse.o
11
-	$(AR)$@ mpi.o mpic.o elapse.o
16
-	$(AR)$@ mpi.o mpic.o elapse.o
12
+	$(AR) $@ mpi.o mpic.o elapse.o
17
+	$(AR) $@ mpi.o mpic.o elapse.o
13
 	$(RANLIB) $@
18
 	$(RANLIB) $@
14
+
15
+libmpiseq$(PLAT).so.@SOVER@: mpi.o mpic.o elapse.o
16
+	$(FC) -shared ${.ALLSRC} -Wl,-soname,libmpiseq$(PLAT).so.@SOVER@ -o libmpiseq$(PLAT).so.@SOVER@ -Wl,-z,defs
17
+
18
 .f.o:
19
 	$(FC) $(OPTF)              -c $*.f $(OUTF)$*.o
20
+
21
 .c.o:
22
 	$(CC) $(OPTC) $(CDEFS) -I. -c $*.c $(OUTC)$*.o
23
 
19
 
20
 sharedlibmpiseq:
21
 	$(MAKE) FPIC="$(FPIC_OPT)" libmpiseq$(PLAT)$(LIBEXT_SHARED)
22
 
23
 libmpiseq$(PLAT)$(LIBEXT_SHARED): mpi.o mpic.o elapse.o
24
-	$(FC) $(SHARED_OPT) mpi.o mpic.o elapse.o -o libmpiseq$(PLAT)$(LIBEXT_SHARED)
25
+	$(FC) -shared mpi.o mpic.o elapse.o -Wl,-soname,libmpiseq$(PLAT).so.@SOVER@ -o libmpiseq$(PLAT)$(LIBEXT_SHARED)
26
 
27
 .f.o:
28
 	$(FC) $(OPTF) $(FPIC)              -c $*.f $(OUTF)$*.o
(-)b/math/mumps5/files/patch-src_Makefile (-21 / +21 lines)
Lines 1-34 Link Here
1
--- src/Makefile.orig	2011-05-10 12:56:32 UTC
1
--- src/Makefile.orig	2026-07-20 09:00:43 UTC
2
+++ src/Makefile
2
+++ src/Makefile
3
@@ -20,7 +20,9 @@ z:
3
@@ -11,7 +11,7 @@ default: d
4
 include $(topdir)/Makefile.inc
5
 
4
 
6
 mumps_lib:    $(libdir)/libmumps_common$(PLAT)$(LIBEXT) \
5
 .PHONY: default all s d c z clean libcommon allshared sshared dshared cshared zshared libcommonshared
7
-              $(libdir)/lib$(ARITH)mumps$(PLAT)$(LIBEXT)
8
+              $(libdir)/libmumps_common$(PLAT).so.@SOVER@ \
9
+              $(libdir)/lib$(ARITH)mumps$(PLAT)$(LIBEXT) \
10
+              $(libdir)/lib$(ARITH)mumps$(PLAT).so.@SOVER@
11
 
6
 
12
 OBJS_COMMON = \
7
-all: $(incdir)/mumps_int_def.h libcommon s d c z
13
         mumps_part9.o\
8
+all: $(incdir)/mumps_int_def.h libcommon s d c z allshared
14
@@ -53,12 +55,18 @@ OBJS = 	$(ARITH)mumps_part1.o\
15
 
9
 
10
 d: s
11
 z: c
12
@@ -239,18 +239,18 @@ $(libdir)/libmumps_common$(PLAT)$(LIBEXT):      $(OBJS
13
 	if echo " $(OPTC) " | grep DINTSIZE64; then cat mumps_int_def64_h.in > $(incdir)/mumps_int_def.h; else cat mumps_int_def32_h.in > $(incdir)/mumps_int_def.h; fi
16
 
14
 
17
 $(libdir)/libmumps_common$(PLAT)$(LIBEXT):	$(OBJS_COMMON)
15
 $(libdir)/libmumps_common$(PLAT)$(LIBEXT):      $(OBJS_COMMON_MOD) $(OBJS_COMMON_OTHER) $(OBJS_C_COMMON)
18
-	$(AR)$@ $?
16
-	$(AR)$@ $?
19
+	$(AR) $@ $?
17
+	$(AR) $@ $?
20
 	$(RANLIB) $@
18
 	$(RANLIB) $@
21
 
19
 
22
+$(libdir)/libmumps_common$(PLAT).so.@SOVER@:	$(OBJS_COMMON)
20
 $(libdir)/libmumps_common$(PLAT)$(LIBEXT_SHARED):      $(OBJS_COMMON_MOD) $(OBJS_COMMON_OTHER) $(OBJS_C_COMMON)
23
+	$(FC) -shared ${.ALLSRC} -Wl,-soname,libmumps_common$(PLAT).so.@SOVER@ -L$(libdir) $(LORDERINGS) $(LIBPAR) $(LIBOTHERS) -o $(libdir)/libmumps_common$(PLAT).so.@SOVER@ -Wl,-z,defs
21
-	$(FC) $(OPTL) $(SHARED_OPT) $^ -Wl,$(SONAME),libmumps_common$(PLAT)$(LIBEXT_SHARED) -L$(libdir) $(RPATH_OPT) $(LORDERINGS) $(LIBS) $(LIBOTHERS) -o $@ 
24
+
22
+	$(FC) $(OPTL) -shared $? -Wl,$(SONAME),libmumps_common$(PLAT)$(LIBEXT_SHARED) -L$(libdir) $(RPATH_OPT) $(LORDERINGS) $(LIBS) $(LIBOTHERS) -o $@
25
 $(libdir)/lib$(ARITH)mumps$(PLAT)$(LIBEXT):    $(OBJS)
23
 
24
 $(libdir)/lib$(ARITH)mumps$(PLAT)$(LIBEXT):    $(OBJS_MOD_ARITHDEP) $(OBJS_OTHER)
26
-	$(AR)$@ $?
25
-	$(AR)$@ $?
27
+	$(AR) $@ $?
26
+	$(AR) $@ $?
28
 	$(RANLIB) $@
27
 	$(RANLIB) $@
29
+
30
+$(libdir)/lib$(ARITH)mumps$(PLAT).so.@SOVER@:    $(OBJS)
31
+	$(FC) -shared ${.ALLSRC} -Wl,-soname,lib$(ARITH)mumps$(PLAT).so.@SOVER@ -L$(libdir) -lmumps_common$(PLAT) $(LORDERINGS) $(LIBPAR) -lblas $(SCALAP) $(LIBOTHERS) -o $(libdir)/lib$(ARITH)mumps$(PLAT).so.@SOVER@ -Wl,-z,defs
32
 
28
 
33
 $(ARITH)mumps_load.o:		$(ARITH)mumps_comm_buffer.o \
29
 $(libdir)/lib$(ARITH)mumps$(PLAT)$(LIBEXT_SHARED):    $(OBJS_MOD_ARITHDEP) $(OBJS_OTHER) $(libdir)/libmumps_common$(PLAT)$(LIBEXT_SHARED)
34
 				$(ARITH)mumps_struc_def.o
30
-	$(FC) $(OPTL) $(SHARED_OPT) $(OBJS_MOD_ARITHDEP) $(OBJS_OTHER) -L$(libdir) $(LORDERINGS) $(LIBS) $(LIBOTHERS) -lmumps_common$(PLAT) -o $@ $(RPATH_OPT)
31
+	$(FC) $(OPTL) -shared $(OBJS_MOD) $(OBJS_OTHER) -Wl,$(SONAME),lib$(ARITH)mumps$(PLAT)$(LIBEXT_SHARED) -L$(libdir) $(LORDERINGS) $(LIBS) $(LIBOTHERS) -lmumps_common$(PLAT) -o $@ $(RPATH_OPT)
32
 
33
 
34
 # Dependencies between modules:
(-)b/math/mumps5/pkg-descr (-2 / +1 lines)
Lines 13-16 format; elemental format. Link Here
13
- Partial factorization and Schur complement matrix.
13
- Partial factorization and Schur complement matrix.
14
- Several orderings interfaced : AMD, AMF, PORD
14
- Several orderings interfaced : AMD, AMF, PORD
15
15
16
Note: This is the last version released under Public Domain.
16
Note: math/mumps is a pre-requisite for Code_Aster.
17
- 

Return to bug 299097