aboutsummaryrefslogtreecommitdiff
path: root/science/ecs
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2007-06-17 21:04:54 +0000
committerThierry Thomas <thierry@FreeBSD.org>2007-06-17 21:04:54 +0000
commit8fecd8a363977c7d53fa001250a32ead0aaf736b (patch)
tree2fc76790cd3db56aa3f887f1c8ff10a761890516 /science/ecs
parent0a7df5e916cf09acca2033a1ddbed3e6f77e1dde (diff)
downloadports-8fecd8a363977c7d53fa001250a32ead0aaf736b.tar.gz
ports-8fecd8a363977c7d53fa001250a32ead0aaf736b.zip
Code_Saturne is EDF's general purpose computational fluid dynamics
software. Developed since 1997 at EDF R&D, it is based on a co-located Finite Volume approach that accepts meshes with any type of cell (tetrahedral, hexahedral, prismatic, pyramidal, polyhedral, ...) and any type of grid structure (unstructured, blockstructured, hybrid, conforming or with hanging nodes, ...). Its basic capabilities enable the handling of either incompressible or expandable flows with or without heat transfer and turbulence (mixing length, 2-equation models, v2f, Reynolds stress models, Large Eddy Simulations, ...). <http://rd.edf.com/code_saturne/>
Notes
Notes: svn path=/head/; revision=193734
Diffstat (limited to 'science/ecs')
-rw-r--r--science/ecs/Makefile63
-rw-r--r--science/ecs/distinfo3
-rw-r--r--science/ecs/files/patch-configure56
-rw-r--r--science/ecs/files/patch-src_appli_Makefile.in11
-rw-r--r--science/ecs/pkg-descr4
-rw-r--r--science/ecs/pkg-plist4
6 files changed, 141 insertions, 0 deletions
diff --git a/science/ecs/Makefile b/science/ecs/Makefile
new file mode 100644
index 000000000000..1a0eb03ba6f4
--- /dev/null
+++ b/science/ecs/Makefile
@@ -0,0 +1,63 @@
+# New ports collection makefile for: ecs
+# Date created: Sun 1 apr 2007
+# Whom: thierry@pompo.net
+#
+# $FreeBSD$
+#
+
+PORTNAME= ecs
+DISTVERSION= 1.3.c
+CATEGORIES= science
+MASTER_SITES= http://www.edf.fr/html/RetD/livraison_saturne_${REL_DATE}/
+
+MAINTAINER= thierry@FreeBSD.org
+COMMENT= Code_Saturne Preprocessor
+
+LIB_DEPENDS= med.2:${PORTSDIR}/french/med \
+ bft.1:${PORTSDIR}/science/bft \
+ hdf5.0:${PORTSDIR}/science/hdf5 \
+ cgns.0:${PORTSDIR}/science/cgnslib
+
+REL_DATE= 070305
+
+GNU_CONFIGURE= yes
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS= --with-bft-prefix=${LOCALBASE} \
+ --with-hdf5-prefix=${LOCALBASE} \
+ --with-cgns-prefix=${LOCALBASE} \
+ --with-med-prefix=${LOCALBASE} \
+ --with-metis-prefix=${LOCALBASE}
+CONFIGURE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS}
+
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
+.else
+USE_GETTEXT= yes
+USE_ICONV= yes
+PLIST_SUB+= NLS=""
+.endif
+
+.if defined(WITH_DEBUG)
+CONFIGURE_ARGS+= --enable-debug
+.endif
+
+PORTDOCS= mi_ecs.pdf mu_ecs.pdf
+
+.include <bsd.port.pre.mk>
+
+.if exists(${LOCALBASE}/bin/partdmesh)
+# The regular metis is there, cannot depends on metis-edf
+LIB_DEPENDS+= metis.1:${PORTSDIR}/math/metis
+.else
+# Prefer metis-edf to avoid conflict with Code_Aster
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libmetis.a:${PORTSDIR}/math/metis-edf
+.endif
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/science/ecs/distinfo b/science/ecs/distinfo
new file mode 100644
index 000000000000..a21e1137121e
--- /dev/null
+++ b/science/ecs/distinfo
@@ -0,0 +1,3 @@
+MD5 (ecs-1.3.c.tar.gz) = eadaefbdf2a84a45c85910f5fdb9068a
+SHA256 (ecs-1.3.c.tar.gz) = 000b1b70e65c164d190c78d1f7b8f39ea5d3704c181762d911dfed160e92c58b
+SIZE (ecs-1.3.c.tar.gz) = 2038856
diff --git a/science/ecs/files/patch-configure b/science/ecs/files/patch-configure
new file mode 100644
index 000000000000..974e2cee55de
--- /dev/null
+++ b/science/ecs/files/patch-configure
@@ -0,0 +1,56 @@
+--- configure.orig Thu Feb 15 20:16:38 2007
++++ configure Mon May 7 11:41:21 2007
+@@ -3771,7 +3771,7 @@
+ #------------------------------------------------------------------
+
+ case "$host_os" in
+- linux* | hpux* | irix*)
++ linux* | freebsd* | hpux* | irix*)
+ CPPFLAGS="${CPPFLAGS} -D_POSIX_SOURCE"
+ ;;
+ osf*)
+@@ -19595,7 +19595,7 @@
+ HDF5_CPPFLAGS="-I$with_hdf5_prefix/include"
+ HDF5_LDFLAGS="-L$with_hdf5_prefix/lib"
+ fi
+- HDF5_LIBS="-lhdf5"
++ HDF5_LIBS="-lhdf5 $PTHREAD_LIBS"
+
+ CPPFLAGS="${CPPFLAGS} ${HDF5_CPPFLAGS}"
+ LDFLAGS="${LDFLAGS} ${HDF5_LDFLAGS}"
+@@ -19607,7 +19607,7 @@
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lhdf5 $LIBS"
++LIBS="$HDF5_LIBS $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+ _ACEOF
+@@ -19749,7 +19749,7 @@
+ elif test "x$with_cgns_prefix" != "x" ; then
+ CGNS_LDFLAGS="-L$with_cgns_prefix/lib"
+ fi
+- CGNS_LIBS="-lcgns"
++ CGNS_LIBS="-lcgns $HDF5_LIBS"
+ CPPFLAGS="${CPPFLAGS} ${CGNS_CPPFLAGS}"
+ LDFLAGS="${LDFLAGS} ${CGNS_LDFLAGS}"
+ LIBS="${LIBS} ${CGNS_LIBS}"
+@@ -19760,7 +19760,7 @@
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lcgns $LIBS"
++LIBS="$CGNS_LIBS $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+ _ACEOF
+@@ -20749,6 +20749,8 @@
+ fi
+ fi;
+ MED_LIBS="-lmedC -lpthread";;
++ freebsd*)
++ MED_ARCH_NAME=FREEBSD;;
+ osf*)
+ if test "x$ints_are_64bit" != "xyes" ; then
+ MED_ARCH_NAME=OSF1_32
diff --git a/science/ecs/files/patch-src_appli_Makefile.in b/science/ecs/files/patch-src_appli_Makefile.in
new file mode 100644
index 000000000000..6028e2692676
--- /dev/null
+++ b/science/ecs/files/patch-src_appli_Makefile.in
@@ -0,0 +1,11 @@
+--- src/appli/Makefile.in.orig Thu Feb 15 20:16:38 2007
++++ src/appli/Makefile.in Mon May 7 11:58:10 2007
+@@ -276,7 +276,7 @@
+ $(top_builddir)/src/pre-post/libprepostecs.la \
+ $(top_builddir)/src/base/libbaseecs.la \
+ $(top_builddir)/src/util/libutilecs.la \
+-@HDF5_LDFLAGS@ @HDF5_LIBS@ @MED_LDFLAGS@ @MED_LIBS@ \
++$(LTLIBINTL) @HDF5_LDFLAGS@ @HDF5_LIBS@ @MED_LDFLAGS@ @MED_LIBS@ \
+ @CGNS_LDFLAGS@ @CGNS_LIBS@ \
+ @METIS_LDFLAGS@ @METIS_LIBS@ \
+ -lm
diff --git a/science/ecs/pkg-descr b/science/ecs/pkg-descr
new file mode 100644
index 000000000000..cc8026aee0dd
--- /dev/null
+++ b/science/ecs/pkg-descr
@@ -0,0 +1,4 @@
+ECS means "Enveloppe Code Saturne".
+This is the preprocessor used by the Code_Saturne and NEPTUNE_CDF codes.
+
+WWW: http://rd.edf.com/code_saturne/
diff --git a/science/ecs/pkg-plist b/science/ecs/pkg-plist
new file mode 100644
index 000000000000..ff4ad28c07d6
--- /dev/null
+++ b/science/ecs/pkg-plist
@@ -0,0 +1,4 @@
+bin/ecs
+bin/ecs-config
+bin/perm_nopo
+%%NLS%%share/locale/fr/LC_MESSAGES/ecs.mo