aboutsummaryrefslogtreecommitdiff
path: root/french
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2006-02-03 22:20:57 +0000
committerThierry Thomas <thierry@FreeBSD.org>2006-02-03 22:20:57 +0000
commita793840996cb4372d8b4fadc03953f4dccd229ab (patch)
tree319344c4d65a59ae4ddcb35aa0f0456d2094b459 /french
parent2db4d64a81f237a1070fd7db15e6a3757bc726d7 (diff)
downloadports-a793840996cb4372d8b4fadc03953f4dccd229ab.tar.gz
ports-a793840996cb4372d8b4fadc03953f4dccd229ab.zip
Add Scotch's support.
Notes
Notes: svn path=/head/; revision=155162
Diffstat (limited to 'french')
-rw-r--r--french/aster/Makefile15
-rw-r--r--french/aster/files/patch-products.py19
2 files changed, 24 insertions, 10 deletions
diff --git a/french/aster/Makefile b/french/aster/Makefile
index 87205827d924..9ee42a6d73a3 100644
--- a/french/aster/Makefile
+++ b/french/aster/Makefile
@@ -7,12 +7,13 @@
PORTNAME= aster
DISTVERSION= 8.2.0-4
+PORTREVISION= 1
CATEGORIES= french cad python
MASTER_SITES= http://www.code-aster.org/FICHIERS/
DISTNAME= ${PORTNAME}-full-src-${DISTVERSION}
MAINTAINER= ports@FreeBSD.org
-COMMENT= Analyse des structures et thermo-mécanique
+COMMENT= Code_Aster finite element method solver
#-----------------------------------------------------------------------
# You may define these options:
@@ -30,6 +31,7 @@ COMMENT= Analyse des structures et thermo-mécanique
# - WITHOUT_GRACE: don't install Grace (used to create 2D graph);
# - WITHOUT_MACR_RECAL: don't install Numerical Python
# (required by the macro MACR_RECAL);
+# - WITHOUT_SCOTCH: don't install Scotch.
#
#-----------------------------------------------------------------------
@@ -68,14 +70,14 @@ FLAGARCH= TRU64 # 64 bits
.endif
.if ${OSVERSION} < 500000
-BROKEN= "Does not compile on FreeBSD-4.x, and cannot be patched easily."
+BROKEN= Does not compile on FreeBSD-4.x, and cannot be patched easily.
.endif
.if ${ARCH} == "amd64"
-BROKEN= "Seg. fault on ${ARCH} during compilation of elements."
+BROKEN= Seg. fault on ${ARCH} during compilation of elements.
.endif
.if ${ARCH} == "sparc64"
-BROKEN= "Does not build on sparc64"
+BROKEN= Does not build on sparc64
.endif
.if defined(WITH_BLAS)
@@ -110,6 +112,9 @@ PLIST_SUB+= GRACE="@comment "
.if !defined(WITHOUT_MACR_RECAL)
RUN_DEPENDS+= ${PYNUMERIC}
.endif
+.if !defined(WITHOUT_SCOTCH)
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libscotch.a:${PORTSDIR}/cad/scotch
+.endif
.if !${OSVERSION} < 500039
F77?= f77
@@ -206,7 +211,7 @@ pre-configure:
@${ECHO_CMD} "_install_crpcrs = False" >> ${WRKSRC}/setup.cfg
@${ECHO_CMD} "_install_aster_Linux = False" >> ${WRKSRC}/setup.cfg
@${ECHO_CMD} "_install_scotch = False" >> ${WRKSRC}/setup.cfg
- @${ECHO_CMD} "HOME_SCOTCH = ''" >> ${WRKSRC}/setup.cfg
+ @${ECHO_CMD} "HOME_SCOTCH = '${LOCALBASE}'" >> ${WRKSRC}/setup.cfg
@${ECHO_CMD} "HOME_MUMPS = ''" >> ${WRKSRC}/setup.cfg
@${ECHO_CMD} "HOME_ZMAT = ''" >> ${WRKSRC}/setup.cfg
@${ECHO_CMD} "HOME_HDF='${hdf_dir}'" >> ${WRKSRC}/setup.cfg
diff --git a/french/aster/files/patch-products.py b/french/aster/files/patch-products.py
index f979e53291a8..065634c74680 100644
--- a/french/aster/files/patch-products.py
+++ b/french/aster/files/patch-products.py
@@ -1,11 +1,11 @@
---- products.py.orig Wed Jan 4 15:55:33 2006
-+++ products.py Fri Jan 13 00:06:44 2006
-@@ -866,6 +866,18 @@
+--- products.py.orig Wed Jan 25 13:06:09 2006
++++ products.py Fri Feb 3 00:08:27 2006
+@@ -871,6 +871,18 @@
cxxlibs.extend(['stdc++', 'supc++'])
zmat_platform='Linux4'
mpilibs.extend(['mpich'])
+ elif cfg['IFDEF']=='FREEBSD':
-+ opt['MATH_LIST'] = [cfg['LAPACKLIB'], cfg['BLASLIB'], 'g2c']
++ opt['MATH_LIST'] = [cfg['LAPACKLIB'], cfg['BLASLIB'], cfg['ATLASLIB'], 'g2c']
+ opt['SYSLIB'] = cfg['SYSLIB']
+ opt['LDFLAGS'] = cfg['LDFLAGS']
+ opt['CFLAGS_DBG'] = cfg['CFLAGS_DBG']
@@ -18,4 +18,13 @@
+ mpilibs.extend(['mpich'])
elif cfg['IFDEF']=='x86_64':
opt['MATH_LIST'] = ['lapack', 'blas', 'g2c']
- opt['SYSLIB'] = '-Wl,--export-dynamic -lieee -ldl -lpthread -lutil -lm'
+ opt['SYSLIB'] = '-Wl,--allow-multiple-definition -Wl,--export-dynamic -lieee -ldl -lpthread -lutil -lm'
+@@ -1011,7 +1023,7 @@
+ for lib in ('common', 'scotch', 'scotcherr', 'scotcherrcom'):
+ ftools.findlib_and_set(cfg, 'SCOTCHLIB', lib,
+ kargs['libdirs'], cfg['HOME_SCOTCH'],
+- typ='lib', err=True, append=True, check_home=('HOME_SCOTCH', 'bin'))
++ typ='lib', err=True, append=True, check_home=('HOME_SCOTCH', 'lib'))
+ ftools.find_and_set(cfg, 'CINCLUDE', 'scotchf.h',
+ kargs['incdirs'], cfg['HOME_SCOTCH'],
+ typ='inc', err=True, append=True)