aboutsummaryrefslogtreecommitdiffstats
path: root/french
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2007-01-17 15:51:39 +0800
committermaho <maho@FreeBSD.org>2007-01-17 15:51:39 +0800
commit196304bcc19a10c22bff038c7850fa2c3b827ca9 (patch)
treec630cf0856108fbb72cf69cd76b495e2cb748677 /french
parenta0c6dda84ec81ed79d2b586a456894c04763b505 (diff)
downloadfreebsd-ports-gnome-196304bcc19a10c22bff038c7850fa2c3b827ca9.tar.gz
freebsd-ports-gnome-196304bcc19a10c22bff038c7850fa2c3b827ca9.tar.zst
freebsd-ports-gnome-196304bcc19a10c22bff038c7850fa2c3b827ca9.zip
* Migrate to gfortran.
* Bump port revision. Approved by: portmgr(kris)
Diffstat (limited to 'french')
-rw-r--r--french/aster/Makefile36
-rw-r--r--french/aster/files/patch-products.py20
2 files changed, 28 insertions, 28 deletions
diff --git a/french/aster/Makefile b/french/aster/Makefile
index c3a5118c55ec..8d4acd6b5959 100644
--- a/french/aster/Makefile
+++ b/french/aster/Makefile
@@ -7,6 +7,7 @@
PORTNAME= aster
DISTVERSION= 9.0.0-2
+PORTREVISION= 1
CATEGORIES= french cad python
MASTER_SITES= http://www.code-aster.org/FICHIERS/
DISTNAME= ${PORTNAME}-full-src-${DISTVERSION}.noarch
@@ -41,7 +42,6 @@ BUILD_DEPENDS+= ${LOCALBASE}/aster/ASTK/ASTK_SERV:${PORTSDIR}/cad/astk-serveur \
${PYNUMERIC}
LIB_DEPENDS+= tcl${SHORT_TCL_VER}:${PORTSDIR}/lang/tcl${SHORT_TCL_VER} \
tk${SHORT_TK_VER}:${PORTSDIR}/x11-toolkits/tk${SHORT_TK_VER} \
- lapack.3:${PORTSDIR}/math/lapack \
hdf5.0:${PORTSDIR}/science/hdf5 \
med.2:${PORTSDIR}/french/med
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/Gnuplot:${PORTSDIR}/math/py-gnuplot \
@@ -79,13 +79,15 @@ BROKEN= Does not compile on this version, and cannot be patched easily.
#.endif
.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS)
-WITH_ATLAS= yes
+WITH_ATLAS= yes
.endif
.if defined(WITH_ATLAS)
-LIB_DEPENDS+= f77blas.1:${PORTSDIR}/math/atlas
+LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas
.else
-LIB_DEPENDS+= blas.1:${PORTSDIR}/math/blas
+LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
+LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack
.endif
+
.if !defined(WITHOUT_ASTK_CLI)
RUN_DEPENDS+= ${ASTKDIR}:${PORTSDIR}/cad/astk-client
PLIST_SUB+= ASTK_CLIENT="" ASTKDIR=${ASTKDIR}
@@ -122,8 +124,6 @@ WITH_MUMPS= yes
.endif
.if defined(WITH_MUMPS)
WITH_MPI= yes # For the FETI solver
-F90= gfortran41
-FC= ${LOCALBASE}/bin/${F90}
DLIBF90!= ${DIRNAME} `${LDCONFIG} -r | ${GREP} gfortran | ${AWK} '{print $$3}'`
. if exists(${LOCALBASE}/lib/libmpiseq.a)
MUMPS_PORT= mumps
@@ -133,8 +133,7 @@ BUILD_DEPENDS+= ${LOCALBASE}/lib/libblacs.a:${PORTSDIR}/math/blacs \
MUMPS_PORT= mumps-mpich
MUMPSLIB= -L${LOCALBASE}/lib -ldmumps -lzmumps -lpord -lscalapack -lblacs -lblacsc -lblacs -L${LOCALBASE}/mpich2/lib -lmpich
. endif
-BUILD_DEPENDS+= ${LOCALBASE}/lib/libcmumps.a:${PORTSDIR}/math/${MUMPS_PORT} \
- ${FC}:${PORTSDIR}/lang/gfortran
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libcmumps.a:${PORTSDIR}/math/${MUMPS_PORT}
.endif
.if defined(WITH_MPI)
@@ -142,10 +141,10 @@ BUILD_DEPENDS+= ${HOME_MPI}/include/mpif.h:${PORTSDIR}/net/mpich2
HOME_MPI= ${LOCALBASE}/mpich2
.endif
-.if !${OSVERSION} < 500039
-F77?= f77
-.endif
-FFLAGS?= -O2
+WANT_FORTRAN= yes #dummy but future use
+BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42
+FC= gfortran42
+F77= gfortran42
TK_VER?= 8.4
SHORT_TK_VER= ${TK_VER:S/.//}
@@ -248,13 +247,14 @@ pre-configure:
# else libmpiseq.a used instead of libmpich, default is OK
${ECHO_CMD} "MUMPSLIB = '${MUMPSLIB}'" >> ${WRKSRC}/setup.cfg
. endif
- ${ECHO_CMD} "F90='${LOCALBASE}/bin/gfortran41'" >> ${WRKSRC}/setup.cfg
- ${ECHO_CMD} "SYSLIB='-Xlinker -export-dynamic ${PTHREAD_LIBS} -lutil -lm -lz -lg2c -L${DLIBF90} -lgfortran'" \
+ ${ECHO_CMD} "F90='${LOCALBASE}/bin/${FC}'" >> ${WRKSRC}/setup.cfg
+ ${ECHO_CMD} "SYSLIB='-Xlinker -export-dynamic ${PTHREAD_LIBS} -lutil -lm -lz -L${DLIBF90} -L${DLIBF90}/../../.. -lgfortranbegin -lgfortran'" \
>> ${WRKSRC}/setup.cfg
.else
- ${ECHO_CMD} "HOME_MUMPS = ''" >> ${WRKSRC}/setup.cfg
- ${ECHO_CMD} "SYSLIB='-Xlinker -export-dynamic ${PTHREAD_LIBS} -lutil -lm -lz -lg2c'" \
+ ${ECHO_CMD} "F90='${LOCALBASE}/bin/${FC}'" >> ${WRKSRC}/setup.cfg
+ ${ECHO_CMD} "SYSLIB='-Xlinker -export-dynamic ${PTHREAD_LIBS} -lutil -lm -lz -L${DLIBF90} -L${DLIBF90}/../../.. -lgfortranbegin -lgfortran'" \
>> ${WRKSRC}/setup.cfg
+
.endif
.if defined(WITH_MPI)
${ECHO_CMD} "HOME_MPI = '${HOME_MPI}'" >> ${WRKSRC}/setup.cfg
@@ -276,9 +276,9 @@ pre-configure:
${ECHO_CMD} "LDFLAGS='-v ${LDFLAGS}'" >> ${WRKSRC}/setup.cfg
${ECHO_CMD} "FFLAGS='-c ${FFLAGS} ${FLAGARCH}'" >> ${WRKSRC}/setup.cfg
${ECHO_CMD} "FFLAGS_DBG='-c -g -O ${FLAGARCH}'" >> ${WRKSRC}/setup.cfg
- ${ECHO_CMD} "F90FLAGS='-c ${FFLAGS} -ff2c ${FLAGARCH} -I${LOCALBASE}/include -I${HOME_MPI}/include'" \
+ ${ECHO_CMD} "F90FLAGS='-c ${FFLAGS} ${FLAGARCH} -I${LOCALBASE}/include -I${HOME_MPI}/include'" \
>> ${WRKSRC}/setup.cfg
- ${ECHO_CMD} "F90FLAGS_DBG='-c -g -O -ff2c ${FLAGARCH} -I${LOCALBASE}/include -I${HOME_MPI}/include'" \
+ ${ECHO_CMD} "F90FLAGS_DBG='-c -g -O ${FLAGARCH} -I${LOCALBASE}/include -I${HOME_MPI}/include'" \
>> ${WRKSRC}/setup.cfg
${ECHO_CMD} "CFLAGS='-c ${CFLAGS} ${PTHREAD_CFLAGS} ${FLAGARCH} -I${LOCALBASE}/include'" \
>> ${WRKSRC}/setup.cfg
diff --git a/french/aster/files/patch-products.py b/french/aster/files/patch-products.py
index 293f4b79097b..75dbc996378b 100644
--- a/french/aster/files/patch-products.py
+++ b/french/aster/files/patch-products.py
@@ -1,6 +1,6 @@
---- products.py.orig Wed Jun 28 15:53:05 2006
-+++ products.py Mon Jul 24 16:14:55 2006
-@@ -966,16 +966,18 @@
+--- products.py.orig Wed Jan 3 01:13:15 2007
++++ products.py Wed Jan 17 15:14:05 2007
+@@ -833,16 +833,18 @@
'HOME_PYTHON', 'PYTHON_EXE', 'PYTHONLIB', 'PYMODULES_PREFIX',
'HOME_MUMPS', 'HOME_ZMAT', 'HOME_MPI',
'HOME_MED', 'HOME_HDF', 'HOME_CRPCRS',
@@ -24,13 +24,13 @@
+ 'F90INCLUDE',
'NOBUILD', ],
)
- cfg['OTHERLIB'] = cfg.get('OTHERLIB', '')
-@@ -1015,6 +1017,18 @@
+ cfg['ENV_SH'] = cfg.get('ENV_SH', '')
+@@ -885,6 +887,18 @@
cxxlibs.extend(['stdc++', 'supc++'])
- zmat_platform='Linux4'
+ zmat_platform='Linux'
mpilibs.extend(['mpich'])
+ elif cfg['IFDEF']=='FREEBSD':
-+ opt['MATH_LIST'] = [cfg['LAPACKLIB'], cfg['BLASLIB'], 'g2c']
++ opt['MATH_LIST'] = [cfg['LAPACKLIB'], cfg['BLASLIB'], cfg['ATLASLIB'], 'gfortran']
+ opt['SYSLIB'] = cfg['SYSLIB']
+ opt['LDFLAGS'] = cfg['LDFLAGS']
+ opt['CFLAGS_DBG'] = cfg['CFLAGS_DBG']
@@ -44,7 +44,7 @@
elif cfg['IFDEF'] == 'LINUX64':
opt['MATH_LIST'] = ['lapack', 'blas', 'g2c']
opt['SYSLIB'] = '-Wl,--allow-multiple-definition -Wl,--export-dynamic -lieee -ldl -lpthread -lutil -lm'
-@@ -1066,8 +1080,8 @@
+@@ -939,8 +953,8 @@
opt['FINCLUDE'] = ''
# ----- F90
@@ -55,7 +55,7 @@
opt['F90INCLUDE']=''
# ----- check for MED and HDF5 libraries, and HDF5 includes
-@@ -1100,11 +1114,14 @@
+@@ -973,11 +987,14 @@
# ----- MUMPS
if cfg['HOME_MUMPS'] != '':
@@ -75,7 +75,7 @@
opt['F90INCLUDE'] += ' -I%s' % os.path.join(cfg['ASTER_ROOT'],cfg['ASTER_VERSION'],'bibf90','include_mumps')
else:
opt['MUMPSLIB'] = ''
-@@ -1160,7 +1177,7 @@
+@@ -1033,7 +1050,7 @@
ftools.findlib_and_set(cfg, 'SCOTCHLIB', lib,
kargs['libdirs'], cfg['HOME_SCOTCH'],
err=True, append=True)