####################################################################################
#
-# ghs3d &blsurf versions
+# products versions
#
+MESHGEMS_VERSION=1.0
+HEXOTIC_VERSION=1.0
if test `uname -m` = "x86_64" ; then
-GHS3D41_VERSION=4.1_64
-GHS3D42_VERSION=4.2_64
-BLSURF_VERSION=3.1_64
-HEXOTIC_VERSION=1.0_64
-else
-GHS3D41_VERSION=4.1_32
-GHS3D42_VERSION=4.2_32
-BLSURF_VERSION=3.1_32
-HEXOTIC_VERSION=1.0_32
+ PLT_SUFFIX="_64"
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
export DISTENE_HOME=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
-export BLSURFHOME=\${DISTENE_HOME}/Tools/BLSurf-${BLSURF_VERSION}
-export HEXOTICHOME=\${DISTENE_HOME}/Tools/Hexotic-V${HEXOTIC_VERSION}
-export LD_LIBRARY_PATH=\${BLSURFHOME}/lib:\${LD_LIBRARY_PATH}
-export PATH=\${HEXOTICHOME}/bin:\${DISTENE_HOME}/Tools/TetMesh-GHS3D${GHS3D41_VERSION}:\${DISTENE_HOME}/Tools/TetMesh-GHS3D${GHS3D42_VERSION}:\${PATH}
+export MESHGEMSHOME=\${DISTENE_HOME}/MeshGems-${MESHGEMS_VERSION}/Products
+export LD_LIBRARY_PATH=\${MESHGEMSHOME}/lib/Linux${PLT_SUFFIX}:\${LD_LIBRARY_PATH}
+export PATH=\${MESHGEMSHOME}/bin/Linux${PLT_SUFFIX}:\${PATH}
+export HEXOTICHOME=\${DISTENE_HOME}/Hexotic-${HEXOTIC_VERSION}
+export PATH=\${HEXOTICHOME}/bin/Linux${PLT_SUFFIX}:\${PATH}
##
EOF
(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
#
# Open CASCADE Technology version
#
-OCCT_VERSION=6.5.3
+OCCT_VERSION=6.5.4
check_version()
{
str_to_replace="-L${gllibdir} -lGL"
fi
- sed -e "s%-lGL\b%%g" \
- -e "s%[^[:space:]]*libGL.la[[:space:]]%%g" \
- -e "s%^dependency_libs='\(.*\)%dependency_libs='${str_to_replace} \1%" \
- libTKOpenGl.la > libTKOpenGl.la.new
- mv -f libTKOpenGl.la.new libTKOpenGl.la
+ la_files=`find . -name "*.la"`
+ for la_file in ${la_files} XXX ; do
+ if [ "${la_file}" = "XXX" ] ; then continue; fi
+ grep -e "libGL.la" ${la_file} >& /dev/null || grep -e "-lGL\b" ${la_file} >& /dev/null &&
+ sed -e "s%-lGL\b%%g" \
+ -e "s%[^[:space:]']*libGL.la[[:space:]]%%g" \
+ -e "s%^dependency_libs='\(.*\)%dependency_libs='${str_to_replace} \1%" \
+ ${la_file} > ${la_file}.new &&
+ mv -f ${la_file}.new ${la_file}
+ done
fi
#du -sk ${PRODUCT_SRC_DIR} > ${PRODUCT_DIR}/size.log
export PATH=\${PARAVIS_ROOT_DIR}/bin/salome:\${PATH}
export LD_LIBRARY_PATH=\${PARAVIS_ROOT_DIR}/lib/salome:\${LD_LIBRARY_PATH}
export PYTHONPATH=\${PARAVIS_ROOT_DIR}/bin/salome:\${PARAVIS_ROOT_DIR}/lib/salome:\${PARAVIS_ROOT_DIR}/lib/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
- export PV_PLUGIN_PATH=\${PARAVIS_ROOT_DIR}/lib/paraview:\${PV_PLUGIN_PATH}
+ export PV_PLUGIN_PATH="\${PARAVIS_ROOT_DIR}/lib/paraview;\${PV_PLUGIN_PATH}"
fi
fi
##
cd ${PRODUCT_SRC_DIR}
export PYTHON_ARCHIVE_PREFIX=""
-PYTHON_CONFIGURE_OPTIONS="--with-threads --with-cxx=`which g++` --enable-shared --without-test --with-libs=-lstdc++"
+PYTHON_CONFIGURE_OPTIONS="--with-threads --with-cxx=`which g++` --enable-shared --without-test --with-libs=-lstdc++ --without-pymalloc"
### --with-pydebug ### (for debug)
tcl_dir=`where_tcl`
paraviewdir=`printenv PVHOME`/lib
# qt dir
qtdir=`printenv QTDIR`/lib
+# distene meshgems dir
+if test `uname -m` = "x86_64" ; then
+ mgemsdir=`printenv MESHGEMSHOME`/lib/Linux_64
+else
+ mgemsdir=`printenv MESHGEMSHOME`/lib/Linux
+fi
for l in X ${la_files}; do
sed -i "s%[[:space:]]\(-L\)\?[^[:space:]]*ParaView-[0-9]\.[0-9]\+\.[0-9]/lib% \1${paraviewdir}%g" $l
fi
+ # . process DISTENE MeshGems dependencies
+ if [ -n "${mgemsdir}" ] && [ -d "${mgemsdir}" ] ; then
+ sed -i "s%[[:space:]]\(-L\)\?[^[:space:]]*MeshGems-[0-9.]\+/Products/lib/Linux\(_64\)\?% \1${mgemsdir}%g" $l
+ fi
+
fi
done
#
# freetype version
#
-FREETYPE_VERSION=2.3.7
+FREETYPE_VERSION=2.4.10
check_version()
{
check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
### modifing la files
-cd ${PRODUCT_DIR}/lib
-sed -i "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g;" libfreetype.la
+if [ -f ${PRODUCT_DIR}/lib/libfreetype.la ] ; then
+ ( cd ${PRODUCT_DIR}/lib && sed -i "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g;" libfreetype.la )
+fi
# modify pkgconfig
if [ -d ${PRODUCT_DIR}/lib/pkgconfig ] ; then
#
# ftgl version
#
-FTGL_VERSION=2.1.2
+FTGL_VERSION=2.1.3
check_version()
{
# unpack
check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INST_ROOT}
+# patch for problem with generation of latex documentation on some platforms:
+patch_for_latex=1
+if [ "${patch_for_latex}" = "1" ] ; then
+ ( cd ${PRODUCT_SRC_DIR}/docs && sed -i "s%pdfdoc_DATA =%pdfdoc_DATA = #%g" Makefile.in )
+fi
+
# to generate environment scripts
try_preinstalled
}
# build sources
test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
-cd ${PRODUCT_SRC_DIR}/unix
+cd ${PRODUCT_SRC_DIR}
FTGL_CONFIGURE_OPTIONS=""
FTGL_CONFIGURE_OPTIONS="${FTGL_CONFIGURE_OPTIONS} --enable-shared=yes --prefix=${PRODUCT_DIR}"
-FTGL_CONFIGURE_OPTIONS="${FTGL_CONFIGURE_OPTIONS} --with-freetype-prefix=${FREETYPEDIR}"
+FTGL_CONFIGURE_OPTIONS="${FTGL_CONFIGURE_OPTIONS} --with-ft-prefix=${FREETYPEDIR}"
FTGL_CONFIGURE_OPTIONS="${FTGL_CONFIGURE_OPTIONS} --with-gl-inc=/usr/include"
if test `uname -m` = "x86_64" ; then
check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
### modifing la files
-cd ${PRODUCT_DIR}/lib
-sed -i "s%\(.*\)\([[:space:]].*libfreetype.la\)\(.*\)%\1 -lfreetype\3%g;s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" libftgl.la
-sed -i "s%\(.*\)\([[:space:]].*-L.*/freetype-[0-9]\.[0-9]\.[0-9]/lib[[:space:]]\)\(.*\)%\1 -L${FREETYPEDIR}/lib \3%g" libftgl.la
+if [ -f ${PRODUCT_DIR}/lib/libftgl.la ] ; then
+ cd ${PRODUCT_DIR}/lib
+ sed -i "s%\(.*\)\([[:space:]].*libfreetype.la\)\(.*\)%\1 -lfreetype\3%g;s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" libftgl.la
+ sed -i "s%\(.*\)\([[:space:]].*-L.*/freetype-[0-9]\.[0-9]\.[0-9]/lib[[:space:]]\)\(.*\)%\1 -L${FREETYPEDIR}/lib \3%g" libftgl.la
+fi
# modify pkgconfig
if [ -d ${PRODUCT_DIR}/lib/pkgconfig ] ; then
# HDF5 version
#
HDF5_VERSION=1.8.8
+#
+# Default API version for hdf5: 1.6
+#
+V16_COMPATIBILITY=yes
check_version()
{
#
# homard version
#
-HOMARD_VERSION=10.4
+HOMARD_VERSION=10.5
#
# homard's bin directory (platform)
#
####################################################################################
-LIBBATCH_VERSION=1.5.0
+LIBBATCH_VERSION=1.6.0
check_version(){
# No way to check version!
#
# med library version
#
-MED_VERSION=3.0.5
+MED_VERSION=3.0.6
check_version()
{
cd ${PRODUCT_SRC_DIR}
test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
+# --disable-mesgerr
if test `uname -m` = "x86_64" ; then
- echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} --disable-mesgerr FFLAGS='-g -O2 -fPIC' CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG"
- ./configure --prefix=${PRODUCT_DIR} --disable-mesgerr FFLAGS="-g -O2 -fPIC" CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${PRODUCT_SRC_DIR}/errlog
+ echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} FFLAGS='-g -O2 -ffixed-line-length-none -fPIC' CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG"
+ ./configure --prefix=${PRODUCT_DIR} FFLAGS="-g -O2 -ffixed-line-length-none -fPIC" CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${PRODUCT_SRC_DIR}/errlog
else
- echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} --disable-mesgerr FFLAGS='-g -O2' >> ${PRODUCT_DIR}/CONFIGURE.LOG"
- ./configure --prefix=${PRODUCT_DIR} --disable-mesgerr FFLAGS="-g -O2" >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${PRODUCT_SRC_DIR}/errlog
+ echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} FFLAGS='-g -O2 -ffixed-line-length-none' >> ${PRODUCT_DIR}/CONFIGURE.LOG"
+ ./configure --prefix=${PRODUCT_DIR} FFLAGS="-g -O2 -ffixed-line-length-none" >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${PRODUCT_SRC_DIR}/errlog
fi
if [ "$?" -ne "0" ] ; then
cat ${PRODUCT_DIR}/CONFIGURE.LOG
cd ${PRODUCT_DIR}/lib
### patch badly created libmedimport.la
-### this pb should be fixed in med 3.0.5 or newer version
-sed -i "s%\(.*\)\([[:space:]].*-L../../src/\)\(.*\)%\1\3%g" libmedimport.la
+### fixed in med 3.0.6
+need_patch_la=0
+if [ "${need_patch_la}" = "1" ] ; then
+ sed -i "s%\(.*\)\([[:space:]].*-L../../src/\)\(.*\)%\1\3%g" libmedimport.la
+fi
cd ${PRODUCT_DIR};
if test `uname -m` = "x86_64" ; then
./configure ${NETGEN_CONFIGURE_OPTIONS} CXXFLAGS='-O2 -m64' >> ${PRODUCT_DIR}/CONFIGURE.LOG
else
- ./configure ${NETGEN_CONFIGURE_OPTIONS} CXXFLAGS=-O2 >> ${PRODUCT_DIR}/CONFIGURE.LOG
+ ./configure ${NETGEN_CONFIGURE_OPTIONS} CXXFLAGS=-O0 >> ${PRODUCT_DIR}/CONFIGURE.LOG
fi
# compile
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
export OMNIORBDIR=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
-export OMNIORB_CONFIG=\${OMNIORBDIR}/.omniORB.cfg
export PYTHONPATH=\${OMNIORBDIR}/lib:\${OMNIORBDIR}/lib/python\${PYTHON_VERSION}/site-packages:\${PYTHONPATH}
export PATH=\$OMNIORBDIR/bin:\$PATH
export LD_LIBRARY_PATH=\$OMNIORBDIR/lib:\$LD_LIBRARY_PATH
##
EOF
-if [ $PROCEDURE != "try_preinstalled" ] && [ -w ${PRODUCT_DIR} ] ; then
- cat > ${PRODUCT_DIR}/.omniORB.cfg <<EOF
-InitRef = NameService=corbaname::`hostname`:2810
-EOF
-fi
+#if [ $PROCEDURE != "try_preinstalled" ] && [ -w ${PRODUCT_DIR} ] ; then
+# cat > ${PRODUCT_DIR}/.omniORB.cfg <<EOF
+#InitRef = NameService=corbaname::`hostname`:2810
+#EOF
+#fi
(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
}
#
# xdata version
#
-XDATA_VERSION=0.9.3
+XDATA_VERSION=0.9.6
check_version(){
# No way to check version!