mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Migrated to gfortran42.
This commit is contained in:
parent
8c1aedde3b
commit
4b3ea7c2ac
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=182075
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= sdpara
|
||||
PORTVERSION= 1.0.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= math parallel
|
||||
MASTER_SITES= http://grid.r.dendai.ac.jp/sdpa/files/
|
||||
DISTFILES= ${PORTNAME}.${PORTVERSION}.src.tar.gz
|
||||
@ -24,10 +25,30 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libscalapack.a:${PORTSDIR}/math/scalapack \
|
||||
${LOCALBASE}/lib/libblacs.a:${PORTSDIR}/math/blacs \
|
||||
${LOCALBASE}/mpich2/lib/libmpich.a:${PORTSDIR}/net/mpich2
|
||||
|
||||
WANT_FORTRAN=yes #dummy but future use
|
||||
BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42
|
||||
FC= gfortran42
|
||||
F77= gfortran42
|
||||
USE_GMAKE= yes
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
#Atlas is always required as lapack.h and blas.h is required.
|
||||
#no blaswarp.h at the moment.
|
||||
LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas
|
||||
WITH_ATLAS= yes
|
||||
.if defined(WITH_ATLAS)
|
||||
BLAS= -lcblas -lf77blas -latlas
|
||||
LAPACK= -lalapack
|
||||
CBLAS= -lcblas -lf77blas -latlas -lg2c
|
||||
CXXFLAGS+= -DNON_ATLAS_SDPA=0
|
||||
.else
|
||||
LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
|
||||
LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack
|
||||
BLAS= -lblas
|
||||
LAPACK= -llapack
|
||||
CXXFLAGS+= -DNON_ATLAS_SDPA=1
|
||||
.endif
|
||||
FORTRANLIBS= -lgfortranbegin -lgfortran
|
||||
GCCLIBDIR= -L`${CAT} ${WRKSRC}/LIBDIR` -L`${CAT} ${WRKSRC}/LIBDIR`/../../..
|
||||
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
@ -51,7 +72,8 @@ post-patch:
|
||||
s|%%CXXFLAGS%%|${CXXFLAGS}|g ; \
|
||||
s|%%FFLAGS%%|${FFLAGS}|g ; \
|
||||
s|%%LAPACK%%|${LAPACK}|g ; \
|
||||
s|%%CBLAS%%|${CBLAS}|g' ${WRKSRC}/Makefile
|
||||
s|%%BLAS%%|${BLAS}|g ; \
|
||||
s|%%FORTRANLIBS%%|${FORTRANLIBS}|g ' ${WRKSRC}/Makefile
|
||||
.if !defined(WITH_OPTIMIZED_FLAGS)
|
||||
@${ECHO} "You can optimize by setting WITH_OPTIMIZED_FLAGS=yes."
|
||||
.endif
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
-LAPACK_LIB = -llapack -lcblaswr -lcblas \
|
||||
- -lf77blas -lI77 -lF77 -latlas
|
||||
+LAPACK_LIB = -lalapack -lcblas -lf77blas -latlas -lg2c
|
||||
+LAPACK_LIB = %%LAPACK%% %%BLAS%% %%FORTRANLIBS%%
|
||||
|
||||
# if you use BLAS in clapack.tgz, use next line
|
||||
# and set NON_ATLAS_SDPA in rsdpa_include.h to 1.
|
||||
|
13
math/sdpara/files/patch-extraqualification
Normal file
13
math/sdpara/files/patch-extraqualification
Normal file
@ -0,0 +1,13 @@
|
||||
--- rsdpa_cg.h~ Thu Sep 2 13:32:37 2004
|
||||
+++ rsdpa_cg.h Thu Jan 11 17:09:35 2007
|
||||
@@ -40,8 +40,8 @@
|
||||
int descr[DLEN1_];
|
||||
|
||||
|
||||
- rCg::rCg();
|
||||
- rCg::~rCg();
|
||||
+ rCg();
|
||||
+ ~rCg();
|
||||
int initialize(int m, double* A, int* descA,
|
||||
double* x, int* descx);
|
||||
|
Loading…
Reference in New Issue
Block a user