if [ "${WSO2_ROOT_DIR}" != "" ] ; then
sed -i "s%\([^/]*\)[^;]*/wso2-wsf-cpp-[0-9.]\+%\1${WSO2_ROOT_DIR}%g" $1
fi
- if [ "$MESHGEMS{_ROOT_DIR}" != "" ] ; then
+ if [ "${MESHGEMS_ROOT_DIR}" != "" ] ; then
sed -i "s%\([^/]*\)[^;]*/MeshGems-[0-9.]\+%\1${MESHGEMS_ROOT_DIR}%g" $1
fi
+ if [ "${METIS_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/metis-[0-9.]\+%\1${METIS_ROOT_DIR}%g" $1
+ fi
+ if [ "${SCOTCH_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/scotch-[0-9.]\+%\1${SCOTCH_ROOT_DIR}%g" $1
+ fi
local sm
local smvar
for sm in LIBBATCH SIMANIO KERNEL GUI GEOM MED SMESH PARAVIS YACS HEXABLOCK HOMARD JOBMANAGER \
### modifing la files
if [ -f ${PRODUCT_DIR}/lib/libnglib.la ] ; then
-
- cd ${PRODUCT_DIR}/lib
-
- freetypedir=`printenv FREETYPE_ROOT_DIR`
- gl2psdir=`printenv GL2PS_ROOT_DIR`
- freeimagedir=`printenv FREEIMAGE_ROOT_DIR`
- tbbbasedir=`printenv TBB_ROOT_DIR`
-
- TBBKERNEL='cc4.1.0_libc2.4_kernel2.6.16.21'
- if test `uname -m` = "x86_64" ; then
- export TBBMODE="intel64/${TBBKERNEL}"
- else
- export TBBMODE="ia32/${TBBKERNEL}"
+ if [ "${FREETYPE_ROOT_DIR}" != "" ] ; then
+ sed -i "s%-L[^[:space:]]\+/freetype-[0-9.]\+/lib%-L${FREETYPE_ROOT_DIR}/lib%g;s%[^[:space:]]\+/libfreetype.la%-lfreetype%g" ${PRODUCT_DIR}/lib/libnglib.la
fi
- tbbdir=${tbbbasedir}/lib/${TBBMODE}
-
- if [ -n "${freetypedir}" ] && [ -d "${freetypedir}" ] ; then
- sed -i "s%\(.*\)\([[:space:]].*-L.*/freetype-[0-9]\.[0-9]\.[0-9]/lib[[:space:]]\)\(.*\)%\1 -L${freetypedir}/lib \3%g;s%\(.*\)\([[:space:]].*libfreetype.la\)\(.*\)%\1 -lfreetype \3%g" libnglib.la
+ if [ "${GL2PS_ROOT_DIR}" != "" ] ; then
+ sed -i "s%-L[^[:space:]]\+/gl2ps-[0-9.]\+/lib%-L${GL2PS_ROOT_DIR}/lib%g" ${PRODUCT_DIR}/lib/libnglib.la
fi
- if [ -n "${gl2psdir}" ] && [ -d "${gl2psdir}" ] ; then
- sed -i "s%\(.*\)\([[:space:]].*-L.*/gl2ps-[0-9]\.[0-9]\.[0-9]/lib[[:space:]]\)\(.*\)%\1 -L${gl2psdir}/lib \3%g" libnglib.la
+ if [ "${FREEIMAGE_ROOT_DIR}" != "" ] ; then
+ sed -i "s%-L[^[:space:]]\+/freeimage-[0-9.]\+/lib%-L${FREEIMAGE_ROOT_DIR}/lib%g" ${PRODUCT_DIR}/lib/libnglib.la
fi
- if [ -n "${freeimagedir}" ] && [ -d "${freeimagedir}" ] ; then
- sed -i "s%\(.*\)\([[:space:]].*-L.*/freeimage[^[:space:]]*/lib[[:space:]]\)\(.*\)%\1 -L${freeimagedir}/lib \3%g" libnglib.la
+ if [ "${TBB_ROOT_DIR}" != "" ] ; then
+ if test `uname -m` = "x86_64" ; then
+ tbbdir=${TBB_ROOT_DIR}/lib/intel64/cc4.1.0_libc2.4_kernel2.6.16.21
+ else
+ tbbdir=${TBB_ROOT_DIR}/lib/ia32/cc4.1.0_libc2.4_kernel2.6.16.21
+ fi
+ sed -i "s%-L[^[:space:]]\+/tbb[^[:space:]]*/lib[^[:space:]]*%-L${tbbdir}%g" ${PRODUCT_DIR}/lib/libnglib.la
fi
- if [ -n "${tbbdir}" ] && [ -d "${tbbdir}" ] ; then
- sed -i "s%\(.*\)\([[:space:]].*-L.*/tbb[^[:space:]]*/lib[^[:space:]]*\)\(.*\)%\1 -L${tbbdir} \3%g" libnglib.la
+ if [ "${CAS_ROOT_DIR}" != "" ] ; then
+ sed -i "s%-L[^[:space:]]\+/\(OCCT\|CAS\)[^[:space:]]*/lib\?%-L${CAS_ROOT_DIR}/lib%g;s%[^[:space:]]\+/\(OCCT\|CAS\)[^[:space:]]*/lib/lib\?%${CAS_ROOT_DIR}/lib/lib%g" ${PRODUCT_DIR}/lib/libnglib.la
fi
-
- sed -i "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g;s%[[:space:]]-L[^[:space:]]*\(OCCT\|CAS\)[^[:space:]]*/lib\?% -L${CAS_ROOT_DIR}/lib%g;s%[[:space:]][^[:space:]]*\(OCCT\|CAS\)[^[:space:]]*/lib/lib\?% ${CAS_ROOT_DIR}/lib/lib%g" libnglib.la
+ sed -i "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" ${PRODUCT_DIR}/lib/libnglib.la
fi
# to generate environment script for sources