-!/bin/bash -noprofile
+#!/bin/bash -noprofile
####################################################################################
# File : OCCT-6.5.2.sh
is_mandriva2007=0
is_mandriva2008=0
is_debian40=0
+is_debian50=0
+is_debian60=0
if [ -e /etc/issue ] ; then
grep -e "Mandriva Linux release 2008.0" /etc/issue > /dev/null
if test `uname -m` = "x86_64" ; then
flags="$flags --with-xmu-library=/usr/lib64"
else
- flags="$flags --with-xmu-library=/usr/X11R6/lib"
+ flags="$flags --with-xmu-library=/usr/lib"
fi
- flags="$flags LDFLAGS=-lpthread"
glincdir="`where_gl_includes`"
if [ $? -eq 0 ] ; then flags="$flags --with-gl-include=$glincdir"; fi
gllibdir="`where_gl_libs`"
if [ $? -eq 0 ] ; then flags="$flags --with-tcl=$tcldir"; fi
tkdir="`where_tk`"
if [ $? -eq 0 ] ; then flags="$flags --with-tk=$tkdir"; fi
-dpsdir="`where_dps`"
-if [ $? -eq 0 ] ; then flags="$flags --with-dps-include=$dpsdir/include --with-dps-library=$dpsdir/lib"; fi
-flags="$flags --disable-wrappers --disable-wok --disable-debug --enable-production"
+
+flags="$flags --with-tbb-include=${TBBHOME}/include"
+
+if test `uname -m` = "x86_64" ; then
+ flags="$flags --with-tbb-library=${TBBHOME}/intel64/cc4.1.0_libc2.4_kernel2.6.16.21"
+else
+ flags="$flags --with-tbb-library=${TBBHOME}/ia32/cc4.1.0_libc2.4_kernel2.6.16.21"
+fi
+
+flags="$flags --with-freetype=${FREETYPEDIR}"
+flags="$flags --with-ftgl=${FTGLDIR}"
+flags="$flags --with-freeimage=${FREEIMAGEDIR}"
+flags="$flags --with-gl2ps=${GL2PSHOME}"
+
+flags="$flags --disable-debug --enable-production"
export CASROOT=${PRODUCT_SRC_DIR}