5 # check existance of netgen
6 # unfortunarely we can't find anything about netgen version
7 if [ -n "$NETGENROOT" ]; then
15 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
16 #$DELIM ${PRODUCT_TYPE} $DELIM
17 export NETGENHOME=\${INSTALL_ROOT}/${PRODUCT}
20 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
21 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
24 # looks for the native product and collects it's environment (used by make_env())
27 if [ $? -eq 0 ] ; then
28 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
29 #$DELIM ${PRODUCT_TYPE} $DELIM
30 export NETGENHOME=\${NETGENROOT}
33 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
40 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
46 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
47 source ${INSTALL_WORK}/$SHRC
49 makedir ${PRODUCT_DIR}
51 check_jb tar xfz ${SOURCE_DIR}/netgen-4.3.tar.gz -C ${INSTALL_WORK}
55 for directory in csg general geom2d gprim interface linalg meshing opti stlgeom ; do
56 cd ${PRODUCT_WORK}/libsrc/${directory}
57 check_job ${PRODUCT_DIR}/MAKE.LOG make
60 mkdir -p ${PRODUCT_DIR}/lib/LINUX
61 cp -f ${PRODUCT_WORK}/lib/LINUX/* ${PRODUCT_DIR}/lib/LINUX
62 mkdir -p ${PRODUCT_DIR}/include
63 cp -f ${PRODUCT_WORK}/libsrc/interface/nglib.h ${PRODUCT_DIR}/include
65 #du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log
66 cd ${PRODUCT_DIR} ; rm -fr ${PRODUCT_WORK}
72 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
73 source ${INSTALL_WORK}/$SHRC
75 check_jb tar xfz ${SOURCE_DIR}/netgen-4.3.tar.gz -C ${INSTALL_ROOT}
81 export INSTALL_WORK=$2;
83 export INSTALL_ROOT=$4;
84 export PRODUCT_SEQUENCE=$5;
85 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="netgen" ; fi
86 export PRODUCT="netgen-4.3"
87 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
88 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}