1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

1- Upgrade to 4.10.0: this version is required by french/aster;

2- Stagify.

PR:		ports/181227
Submitted by:	/me
Approved by:	maintainer's time-out
This commit is contained in:
Thierry Thomas 2014-05-13 21:45:49 +00:00
parent 2670921f55
commit cda642dbe2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354002
9 changed files with 125 additions and 73 deletions

View File

@ -5,5 +5,4 @@ MASTERDIR= ${.CURDIR}/../mumps
WITH_MPI= yes
NO_STAGE= yes
.include "../mumps/Makefile"

View File

@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= mumps
PORTVERSION= 4.8.4
PORTREVISION= 4
PORTVERSION= 4.10.0
CATEGORIES= math
MASTER_SITES= http://mumps.enseeiht.fr/ \
http://graal.ens-lyon.fr/MUMPS/ \
@ -14,10 +13,14 @@ DISTNAME= MUMPS_${PORTVERSION}
MAINTAINER= bf@FreeBSD.org
COMMENT= MUltifrontal Massively Parallel sparse direct Solver
LICENSE= Public_Domain
LICENSE_NAME= "Public Domain"
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
#-----------------------------------------------------------------------
# WARNING: Non-serviceable parts inside, can break other ports
NO_STAGE= yes
# You may define these options/knobs:
#
# FFLAGS: Fortran compiler flags for gfortran
@ -32,8 +35,10 @@ SLAVEDIRS= math/mumps-mpich
USES= fortran
MAKE_JOBS_UNSAFE=yes
FORTRANLIBS= -lgfortran
GCCLIBDIR= -L`${CAT} ${WRKSRC}/LIBDIR` -L`${CAT} ${WRKSRC}/LIBDIR`/../../..
GCCLIBDIR= ${LDFLAGS}
.if defined(WITH_OPTIMIZED_FLAGS)
FFLAGS+= -O3 -ffast-math
@ -52,11 +57,11 @@ PLIST_SUB+= MUMPSVERSION=${PORTVERSION}
WITH_ATLAS= yes
.endif
.if defined(WITH_ATLAS)
LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas
LIB_DEPENDS+= libatlas.so:${PORTSDIR}/math/atlas
BLAS_LIBS= -lf77blas
LAPACK_LIBS= -lalapack -lcblas
.else
LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
LIB_DEPENDS+= libblas.so:${PORTSDIR}/math/blas
BLAS_LIBS= -lblas
LAPACK_LIBS= -llapack
.endif
@ -66,7 +71,7 @@ PKGNAMESUFFIX+= -mpich
BUILD_DEPENDS+= ${LOCALBASE}/include/mpif.h:${PORTSDIR}/net/mpich2 \
${LOCALBASE}/lib/libblacs.a:${PORTSDIR}/math/blacs \
${LOCALBASE}/lib/libscalapack.a:${PORTSDIR}/math/scalapack
LIB_DEPENDS+= lapack:${PORTSDIR}/math/lapack
LIB_DEPENDS+= liblapack.so:${PORTSDIR}/math/lapack
# Note: -l?mumps still requires to be linked with -lblacs + -lscalapack
RUN_DEPENDS+= ${LOCALBASE}/bin/mpirun:${PORTSDIR}/net/mpich2 \
${LOCALBASE}/lib/libblacs.a:${PORTSDIR}/math/blacs \
@ -82,12 +87,12 @@ PLIST_SUB+= WITH_LIBSEQ=""
PLIST_SUB+= WITH_LIBSEQ="@comment "
.endif
post-patch:
pre-configure:
.ifdef WITH_MPI
@${INSTALL_DATA} ${WRKSRC}/Make.inc/Makefile.inc.generic \
${INSTALL_DATA} ${WRKSRC}/Make.inc/Makefile.inc.generic \
${WRKSRC}/Makefile.inc
.else
@${INSTALL_DATA} ${WRKSRC}/Make.inc/Makefile.inc.generic.SEQ \
${INSTALL_DATA} ${WRKSRC}/Make.inc/Makefile.inc.generic.SEQ \
${WRKSRC}/Makefile.inc
.endif
@ -100,7 +105,6 @@ pre-build:
s+@FORTRANLIBS@+${FORTRANLIBS}+g; \
s+@PTHREAD_LIBS@+${PTHREAD_LIBS}+g; \
s+@BLAS_LIBS@+${BLAS_LIBS}+ ; \
s+../PORD+${WRKSRC}/PORD+; \
s+@LOCALBASE@+${LOCALBASE}+g;' \
${WRKSRC}/Makefile.inc
.ifdef WITH_MPI
@ -111,24 +115,24 @@ pre-build:
.endif
do-install:
${INSTALL_DATA} ${WRKSRC}/include/*.h ${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/lib/lib*.a ${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/include/*.h ${STAGEDIR}${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/lib/lib*.a ${STAGEDIR}${PREFIX}/lib
.ifndef WITH_MPI
${INSTALL_DATA} ${WRKSRC}/libseq/libmpiseq.a ${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/libseq/libmpiseq.a ${STAGEDIR}${PREFIX}/lib
.endif
.ifndef NOPORTDOCS
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/userguide_${PORTVERSION}.pdf ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/userguide_${PORTVERSION}.ps ${DOCSDIR}
${GZIP_CMD} ${DOCSDIR}/userguide_${PORTVERSION}.ps
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/userguide_${PORTVERSION}.pdf ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/userguide_${PORTVERSION}.ps ${STAGEDIR}${DOCSDIR}
${GZIP_CMD} ${STAGEDIR}${DOCSDIR}/userguide_${PORTVERSION}.ps
.endif
.ifndef NOPORTEXAMPLES
@${MKDIR} ${EXAMPLESDIR}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
. for ex in Makefile README *.c *.F input_simpletest_*
${INSTALL_DATA} ${WRKSRC}/examples/${ex} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/${ex} ${STAGEDIR}${EXAMPLESDIR}
. endfor
. for ex in c_example *simpletest
${INSTALL_PROGRAM} ${WRKSRC}/examples/${ex} ${EXAMPLESDIR}
${INSTALL_PROGRAM} ${WRKSRC}/examples/${ex} ${STAGEDIR}${EXAMPLESDIR}
. endfor
.endif

View File

@ -1,2 +1,2 @@
SHA256 (MUMPS_4.8.4.tar.gz) = cda022a12ce632ae753dcffc06411b2569647fafa01db947cc6a280d465acb2d
SIZE (MUMPS_4.8.4.tar.gz) = 2007524
SHA256 (MUMPS_4.10.0.tar.gz) = d0f86f91a74c51a17a2ff1be9c9cee2338976f13a6d00896ba5b43a5ca05d933
SIZE (MUMPS_4.10.0.tar.gz) = 2481516

View File

@ -1,30 +1,33 @@
--- Make.inc/Makefile.inc.generic.orig Fri Apr 14 08:00:50 2006
+++ Make.inc/Makefile.inc.generic Fri May 26 10:28:02 2006
@@ -39,20 +39,20 @@
# Metis is now available as an internal ordering for MUMPS.
--- Make.inc/Makefile.inc.generic.orig 2011-05-10 14:56:32.000000000 +0200
+++ Make.inc/Makefile.inc.generic 2013-08-11 17:41:51.000000000 +0200
@@ -39,7 +39,7 @@
# Metis/ParMetis and SCOTCH/PT-SCOTCH (ver 5.1 and later) orderings are now available for MUMPS.
#
-#LSCOTCHDIR = $(HOME)/JY/emilio/bin/generic
+#LSCOTCHDIR = @LOCALBASE@/lib
#LSCOTCH = -L$(LSCOTCHDIR) -lesmumps -lfax -lorder -lscotch -lsymbol -ldof -lgraph -lcommon -lm
LPORDDIR = ../PORD/lib/
IPORD = -I../PORD/include/
-#SCOTCHDIR = ${HOME}/scotch_5.1_esmumps
+#SCOTCHDIR = @LOCALBASE@
#ISCOTCH = -I$(SCOTCHDIR)/include
# You have to choose one among the following two lines depending on
# the type of analysis you want to perform. If you want to perform only
@@ -55,7 +55,7 @@
IPORD = -I$(topdir)/PORD/include/
LPORD = -L$(LPORDDIR) -lpord
-#LMETISDIR = Directory containing Metis library
+LMETISDIR = @LOCALBASE@/lib
#IMETIS = # Metis doesn't need include files (Fortran interface avail.)
#LMETIS = -L$(LMETISDIR) -lmetis
-#LMETISDIR = /local/metis/
+#LMETISDIR = @LOCALBASE@/lib
#IMETIS = # Should be provided if you use parmetis
# Corresponding variables reused later
#ORDERINGS = -Dmetis -Dpord
# You have to choose one among the following two lines depending on
@@ -70,7 +70,7 @@
# The following variables will be used in the compilation process.
# Please note that -Dptscotch and -Dparmetis imply -Dscotch and -Dmetis respectively.
#ORDERINGSF = -Dscotch -Dmetis -Dpord -Dptscotch -Dparmetis
-ORDERINGSF = -Dpord
+ORDERINGSF += -Dpord
ORDERINGSC = $(ORDERINGSF)
LORDERINGS = $(LMETIS) $(LPORD) $(LSCOTCH)
IORDERINGS = $(IMETIS) $(IPORD) $(ISCOTCH)
@@ -66,11 +66,11 @@
@@ -91,11 +91,11 @@
# RM : remove files
RM = /bin/rm -f
# CC : C compiler
@ -37,9 +40,9 @@
-FL = f90
+FL = @FC@
# AR : Archive object in a library
AR = ar vr
# RANLIB : generate index of an archive file
@@ -79,13 +79,13 @@
# keep a space at the end if options have to be separated from lib name
AR = ar vr
@@ -105,13 +105,13 @@
#RANLIB = echo
# SCALAP should define the SCALAPACK and BLACS libraries.
@ -56,7 +59,7 @@
# The parallel version is not concerned by the next two lines.
# They are related to the sequential library provided by MUMPS,
@@ -95,10 +95,10 @@
@@ -121,10 +121,10 @@
# DEFINE HERE YOUR BLAS LIBRARY
@ -69,7 +72,7 @@
# FORTRAN/C COMPATIBILITY:
# Use:
@@ -111,11 +111,11 @@
@@ -137,11 +137,11 @@
# leave empty if your Fortran compiler does not change the symbols.
#

View File

@ -1,30 +1,33 @@
--- Make.inc/Makefile.inc.generic.SEQ.orig Fri Apr 14 08:00:50 2006
+++ Make.inc/Makefile.inc.generic.SEQ Fri May 26 10:27:58 2006
@@ -42,20 +42,20 @@
# Metis is now available as an internal ordering for MUMPS.
--- Make.inc/Makefile.inc.generic.SEQ.orig 2011-05-10 14:56:32.000000000 +0200
+++ Make.inc/Makefile.inc.generic.SEQ 2013-08-11 18:13:02.000000000 +0200
@@ -41,7 +41,7 @@
# Metis/ParMetis and SCOTCH/PT-SCOTCH (ver 5.1 and later) orderings are now available for MUMPS.
#
-#LSCOTCHDIR = $(HOME)/JY/emilio/bin/generic
+#LSCOTCHDIR = @LOCALBASE@/lib
#LSCOTCH = -L$(LSCOTCHDIR) -lesmumps -lfax -lorder -lscotch -lsymbol -ldof -lgraph -lcommon -lm
LPORDDIR = ../PORD/lib/
IPORD = -I../PORD/include/
-#SCOTCHDIR = ${HOME}/scotch_5.1_esmumps
+#SCOTCHDIR = @LOCALBASE@
#ISCOTCH = -I$(SCOTCHDIR)/include
# You have to choose one among the following two lines depending on
# the type of analysis you want to perform. If you want to perform only
@@ -57,7 +57,7 @@
IPORD = -I$(topdir)/PORD/include/
LPORD = -L$(LPORDDIR) -lpord
-#LMETISDIR = Directory containing Metis library
+LMETISDIR = @LOCALBASE@/lib
#IMETIS = # Metis doesn't need include files (Fortran interface avail.)
#LMETIS = -L$(LMETISDIR) -lmetis
-#LMETISDIR = /local/metis/
+#LMETISDIR = @LOCALBASE@/lib
#IMETIS = # Should be provided if you use parmetis
# Corresponding variables reused later
#ORDERINGS = -Dmetis -Dpord
# You have to choose one among the following two lines depending on
@@ -72,7 +72,7 @@
# The following variables will be used in the compilation process.
# Please note that -Dptscotch and -Dparmetis imply -Dscotch and -Dmetis respectively.
#ORDERINGSF = -Dscotch -Dmetis -Dpord -Dptscotch -Dparmetis
-ORDERINGSF = -Dpord
+ORDERINGSF += -Dpord
ORDERINGSC = $(ORDERINGSF)
LORDERINGS = $(LMETIS) $(LPORD) $(LSCOTCH)
IORDERINGS = $(IMETIS) $(IPORD) $(ISCOTCH)
@@ -69,11 +69,11 @@
@@ -95,11 +95,11 @@
# RM : remove files
RM = /bin/rm -f
# CC : C compiler
@ -37,9 +40,14 @@
-FL = f90
+FL = @FC@
# AR : Archive object in a library
AR = ar vr
# RANLIB : generate index of an archive file
@@ -89,10 +89,10 @@
# keep a space at the end if options have to be separated from lib name
AR = ar vr
@@ -112,14 +112,14 @@
# the sequential library provided by MUMPS, to use instead
# of ScaLAPACK and MPI.
INCSEQ = -I$(topdir)/libseq
-LIBSEQ = -Llibseq -lmpiseq
+LIBSEQ = -L$(topdir)/libseq -lmpiseq
# DEFINE HERE YOUR BLAS LIBRARY
@ -48,11 +56,11 @@
# DEFINE HERE YOUR PTHREAD LIBRARY
-LIBOTHERS = -lpthread
+LIBOTHERS = @PTHREAD_LIBS@ @FORTRANLIBS@
+LIBOTHERS = @PTHREAD_LIBS@ @GCCLIBDIR@ @FORTRANLIBS@
# FORTRAN/C COMPATIBILITY:
# Use:
@@ -105,12 +105,12 @@
@@ -132,12 +132,12 @@
# leave empty if your Fortran compiler does not change the symbols.
#

View File

@ -0,0 +1,11 @@
--- PORD/lib/Makefile.orig 2011-05-10 14:56:32.000000000 +0200
+++ PORD/lib/Makefile 2013-08-11 18:31:47.000000000 +0200
@@ -22,7 +22,7 @@
$(CC) $(COPTIONS) -c $*.c $(OUTC)$*.o
libpord$(LIBEXT):$(OBJS)
- $(AR)$@ $(OBJS)
+ $(AR) $@ $(OBJS)
$(RANLIB) $@
clean:

View File

@ -0,0 +1,11 @@
--- libseq/Makefile.orig 2011-05-10 14:56:39.000000000 +0200
+++ libseq/Makefile 2013-08-11 18:05:34.000000000 +0200
@@ -10,7 +10,7 @@
libmpiseq: libmpiseq$(PLAT)$(LIBEXT)
libmpiseq$(PLAT)$(LIBEXT): mpi.o mpic.o elapse.o
- $(AR)$@ mpi.o mpic.o elapse.o
+ $(AR) $@ mpi.o mpic.o elapse.o
$(RANLIB) $@
.f.o:
$(FC) $(OPTF) -c $*.f $(OUTF)$*.o

View File

@ -0,0 +1,16 @@
--- src/Makefile.orig 2011-05-10 14:56:32.000000000 +0200
+++ src/Makefile 2013-08-11 18:08:25.000000000 +0200
@@ -53,11 +53,11 @@
$(libdir)/libmumps_common$(PLAT)$(LIBEXT): $(OBJS_COMMON)
- $(AR)$@ $?
+ $(AR) $@ $?
$(RANLIB) $@
$(libdir)/lib$(ARITH)mumps$(PLAT)$(LIBEXT): $(OBJS)
- $(AR)$@ $?
+ $(AR) $@ $?
$(RANLIB) $@
$(ARITH)mumps_load.o: $(ARITH)mumps_comm_buffer.o \

View File

@ -13,4 +13,4 @@ format; elemental format.
- Partial factorization and Schur complement matrix.
- Several orderings interfaced : AMD, AMF, PORD, METIS
WWW: http://graal.ens-lyon.fr/MUMPS/
WWW: http://graal.ens-lyon.fr/MUMPS/