2013-09-21 00:48:30 +02:00
|
|
|
# Created by: thierry@pompo.net
|
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/>
2007-06-17 23:04:54 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ncs
|
2014-09-14 16:44:25 +02:00
|
|
|
PORTVERSION= 2.0.7
|
2014-12-26 15:24:12 +01:00
|
|
|
PORTREVISION= 2
|
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/>
2007-06-17 23:04:54 +02:00
|
|
|
CATEGORIES= science parallel
|
2014-09-14 16:44:25 +02:00
|
|
|
MASTER_SITES= http://code-saturne.org/releases/
|
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/>
2007-06-17 23:04:54 +02:00
|
|
|
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
|
|
COMMENT= Code_Saturne Kernel
|
|
|
|
|
2012-07-07 17:15:56 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}qt4-core>=0:${PORTSDIR}/devel/py-qt4 \
|
|
|
|
cs_preprocess:${PORTSDIR}/science/ecs \
|
|
|
|
pyrcc4:${PORTSDIR}/textproc/py-qt4-xml
|
2014-03-27 00:29:28 +01:00
|
|
|
LIB_DEPENDS= libfvm.so:${PORTSDIR}/science/fvm \
|
|
|
|
libmei.so:${PORTSDIR}/science/mei
|
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/>
2007-06-17 23:04:54 +02:00
|
|
|
RUN_DEPENDS= xmgrace:${PORTSDIR}/math/grace \
|
2012-07-07 17:15:56 +02:00
|
|
|
bash:${PORTSDIR}/shells/bash \
|
|
|
|
xterm:${PORTSDIR}/x11/xterm \
|
|
|
|
cs_preprocess:${PORTSDIR}/science/ecs
|
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/>
2007-06-17 23:04:54 +02:00
|
|
|
|
2014-09-14 16:44:25 +02:00
|
|
|
USES= fortran gettext gmake iconv libtool python shebangfix
|
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/>
2007-06-17 23:04:54 +02:00
|
|
|
USE_GNOME= libxml2
|
2008-05-01 00:14:12 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2014-03-27 00:29:28 +01:00
|
|
|
SHEBANG_FILES= bin/runcase.in
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libxml2
|
2012-07-07 17:15:56 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2013-12-17 22:55:48 +01:00
|
|
|
CONFIGURE_ENV= MPI_LIBS="${MPI_LIBS}" \
|
|
|
|
PYEXE="${PYTHON_CMD}"
|
2015-01-10 16:33:26 +01:00
|
|
|
CONFIGURE_ARGS= --with-blas-libs="${BLASLIB} ${LAPACKLIB}"
|
2012-07-07 17:15:56 +02:00
|
|
|
MAKE_ENV= NOM_ARCH=${OPSYS} CS_MPI_PATH=${MPI_HOME}/bin \
|
|
|
|
PTHREAD_LIBS=${PTHREAD_LIBS} TERM=${TERM} \
|
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/>
2007-06-17 23:04:54 +02:00
|
|
|
MPI_HOME=${MPI_HOME} MPI_LIBS="${MPI_LIBS}"
|
2012-07-07 17:15:56 +02:00
|
|
|
USE_LDCONFIG= yes
|
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/>
2007-06-17 23:04:54 +02:00
|
|
|
|
2009-01-26 18:52:53 +01:00
|
|
|
FORTRANLIBDIR= `${DIRNAME} \\`${FC} -print-libgcc-file-name\\``
|
|
|
|
FORTRANLIBDIR2= `${DIRNAME} \\`${FC} -print-libgcc-file-name\\``/../../../
|
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/>
2007-06-17 23:04:54 +02:00
|
|
|
|
2014-09-14 16:44:25 +02:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES BATCH
|
|
|
|
BATCH_DESC= Use Torque to submit batches
|
|
|
|
BATCH_CONFIGURE_WITH= batch=PBS
|
|
|
|
BATCH_LIB_DEPENDS= libtorque.so:${PORTSDIR}/sysutils/torque
|
2014-07-05 00:08:14 +02:00
|
|
|
|
2015-01-10 16:33:26 +01:00
|
|
|
OPTIONS_RADIO= BLAS
|
|
|
|
OPTIONS_RADIO_BLAS= REFERENCE ATLAS
|
|
|
|
OPTIONS_DEFAULT= REFERENCE
|
|
|
|
|
|
|
|
REFERENCE_DESC= Blas / Lapack
|
|
|
|
REFERENCE_USES= blaslapack:netlib
|
|
|
|
|
|
|
|
ATLAS_DESC= ATLAS
|
|
|
|
ATLAS_USES= blaslapack:atlas
|
|
|
|
|
2014-07-05 00:08:14 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2015-01-10 16:33:26 +01:00
|
|
|
.if ${PORT_OPTIONS:MREFERENCE}
|
|
|
|
CONFIGURE_ARGS+= --with-blas-type=BLAS
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-blas-type=ATLAS
|
|
|
|
.endif
|
|
|
|
|
2007-06-28 20:54:51 +02:00
|
|
|
.if defined(PACKAGE_BUILDING)
|
|
|
|
TERM= vt100 # Force for pointyhat to override su
|
|
|
|
.else
|
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/>
2007-06-17 23:04:54 +02:00
|
|
|
TERM?= vt100 # Default value needed for tput in jail or tinderbox
|
2007-06-28 20:54:51 +02:00
|
|
|
.endif
|
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/>
2007-06-17 23:04:54 +02:00
|
|
|
|
|
|
|
SUB_DIRS= data include src users
|
2008-01-01 17:45:44 +01:00
|
|
|
BIN_SCRIPTS= autovalid check_mesh compiler_version cree_sat cs.exe gracehst \
|
|
|
|
grp info_cs lance_install rang_mpi.sh
|
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/>
2007-06-17 23:04:54 +02:00
|
|
|
BIN_DATAS= Makefile SaturneGUI autovalid.xml cs_profile lance lance.help \
|
|
|
|
macros_FreeBSD.mk
|
|
|
|
|
|
|
|
.if defined(WITH_LAM)
|
|
|
|
MPI_HOME= ${LOCALBASE}
|
|
|
|
BUILD_DEPENDS+= ${MPI_HOME}/lib/liblam.a:${PORTSDIR}/net/lam
|
|
|
|
RUN_DEPENDS+= ${MPI_HOME}/bin/lamboot:${PORTSDIR}/net/lam
|
|
|
|
MPI_LIBS= -lmpi -llam
|
|
|
|
.elif defined(WITH_OPENMPI)
|
|
|
|
MPI_HOME= ${LOCALBASE}/mpi/openmpi
|
|
|
|
BUILD_DEPENDS+= ${MPI_HOME}/bin/mpicc:${PORTSDIR}/net/openmpi
|
|
|
|
RUN_DEPENDS+= ${MPI_HOME}/bin/mpirun:${PORTSDIR}/net/openmpi
|
|
|
|
MPI_LIBS= -lmpi -lorte -lopal
|
|
|
|
.else
|
2009-11-28 11:44:56 +01:00
|
|
|
MPI_HOME= ${LOCALBASE}
|
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/>
2007-06-17 23:04:54 +02:00
|
|
|
BUILD_DEPENDS+= ${MPI_HOME}/bin/mpicc:${PORTSDIR}/net/mpich2
|
|
|
|
RUN_DEPENDS+= ${MPI_HOME}/bin/mpirun:${PORTSDIR}/net/mpich2
|
2010-11-14 23:00:23 +01:00
|
|
|
MPI_LIBS= -lmpich -lmpl ${PTHREAD_LIBS}
|
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/>
2007-06-17 23:04:54 +02:00
|
|
|
.endif
|
|
|
|
|
2014-07-05 00:08:14 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2013-05-11 19:58:55 +02:00
|
|
|
USE_TEX= tex:build
|
2013-05-06 04:00:40 +02:00
|
|
|
BUILD_DEPENDS+= fig2dev:${PORTSDIR}/print/transfig
|
2012-07-07 17:15:56 +02:00
|
|
|
ALL_TARGET= all pdf
|
|
|
|
INSTALL_TARGET= install install-pdf
|
|
|
|
DOCS= AUTHORS COMPATIBILITY ChangeLog README
|
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/>
2007-06-17 23:04:54 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
RUN_DEPENDS+= xpdf:${PORTSDIR}/graphics/xpdf
|
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "By default ncs is built with MPICH2, but you can set WITH_LAM or WITH_OPENMPI"
|
|
|
|
@${ECHO_MSG} "if you prefer."
|
|
|
|
@${ECHO_MSG}
|
|
|
|
|
2012-07-07 17:15:56 +02:00
|
|
|
post-install:
|
2014-07-05 00:08:14 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2014-03-27 00:29:28 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${DOCS:C|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
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/>
2007-06-17 23:04:54 +02:00
|
|
|
.endif
|
2014-07-05 00:08:14 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2014-03-27 00:29:28 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
|
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/>
2007-06-17 23:04:54 +02:00
|
|
|
.endif
|
|
|
|
|
2015-01-10 16:33:26 +01:00
|
|
|
.include <bsd.port.mk>
|