python_root=`find_in_path python $PATH`;
python_root=`cd ${python_root}/..; pwd`
python_version=`python -c "import sys; print sys.version[:3]"`
-
-echo "`pwd` -> ./tools/build/jam_src/bin.linuxx86/bjam >> ${PRODUCT_DIR}/INSTALL.LOG"
-./tools/build/jam_src/bin.linuxx86/bjam "-sBOOST_ALL_DYN_LINK=1" \
+if test `uname -m` = "x86_64" ; then
+export binfolder=bin.linux
+else
+export binfolder=bin.linuxx86
+fi
+echo "`pwd` -> ./tools/build/jam_src/${binfolder}/bjam >> ${PRODUCT_DIR}/INSTALL.LOG"
+./tools/build/jam_src/${binfolder}/bjam "-sBOOST_ALL_DYN_LINK=1" \
"-sBUILD=release <runtime-link>dynamic <threading>multi" \
--prefix=${PRODUCT_DIR} --builddir=${PRODUCT_WORK} \
"-sPYTHON_VERSION=$python_version" --with-python-root=${python_root} \
ln -s libboost_${aLib}-gcc-mt-1_32.so libboost_${aLib}-mt.so
fi
done
-
+ if test `uname -m` = "x86_64" ; then
+ cd ${PRODUCT_DIR}; ln -sf lib lib64
+ fi
#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log
cd ${PRODUCT_DIR}; rm -fr ${PRODUCT_WORK}
check_jb tar xfz ${SOURCE_DIR}/Numeric-23.7.tar.gz -C ${INSTALL_WORK}
cd ${PRODUCT_WORK}
-
+ if test `uname -m` = "x86_64" ; then
+export CFLAGS=-m64
+export CXXFLAGS=-m64
+ fi
# check existence of lapack, f77blas, cblas, atlas, g2c libraries
check_lib_version liblapack.so $LD_LIBRARY_PATH:/usr/lib
lapack_nf=$?
check_job ${PRODUCT_DIR}/INSTALL.LOG python setup.py install --prefix=${PRODUCT_DIR}
+ if test `uname -m` = "x86_64" ; then
+ cd ${PRODUCT_DIR}; ln -sf lib64 lib
+ fi
+
#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log
cd ${PRODUCT_DIR}; rm -fr ${PRODUCT_WORK}
print_env
pyqt_sips=`cd $pyqt_sips/.. ; pwd`
# check configuration file
python_version="`python -c 'import sys; print sys.version[:3]'`"
+if test `uname -m` = "x86_64" ; then
+pyqt_cfg="`find_in_path pyqtconfig.py ${pyqtdir}:/usr/lib64/python${python_version}/site-packages`"
+else
pyqt_cfg="`find_in_path pyqtconfig.py ${pyqtdir}:/usr/lib/python${python_version}/site-packages`"
+fi
if [ -z "${pyqt_cfg}" ] ; then return 1 ; fi
# check library
+if test `uname -m` = "x86_64" ; then
+pyqt_lib="`find_in_path qt.so ${pyqtdir}:/usr/lib64/python${python_version}/site-packages`"
+else
pyqt_lib="`find_in_path qt.so ${pyqtdir}:/usr/lib/python${python_version}/site-packages`"
+fi
if [ -z "${pyqt_lib}" ] ; then return 1 ; fi
# check version
ver=`cd ${pyqt_cfg} && python -c "from pyqtconfig import Configuration; c=Configuration();print c.__getattr__('pyqt_version_str')" 2>/dev/null`
check_jb tar xfz ${SOURCE_DIR}/PyQt-3.14.1.tar.gz -C ${INSTALL_WORK}
cd ${PRODUCT_WORK}
+if test `uname -m` = "x86_64" ; then
+export CFLAGS=-m64 CXXFLAGS=-m64
+fi
+
sed -e 's%check_license()$%#check_license()%g' configure.py > configure.py.new
mv -f configure.py.new configure.py
chmod a+x "$sc"
fi
done
-
#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log
cd ${PRODUCT_DIR}; rm -fr ${PRODUCT_WORK}
print_env
makedir ${PRODUCT_DIR}
-check_jb tar xfz ${SOURCE_DIR}/Python-2.4.1.tar.gz -C ${INSTALL_WORK}
+if test `uname -m` = "x86_64" ; then
+export PYTHON_ARCHIVE_PREFIX="-lib64"
+export PYTHON_LIB_PREFIX="64"
+export CFLAGS=-m64
+export CXXFLAGS=-m64
+else
+export PYTHON_ARCHIVE_PREFIX=""
+fi
+
+check_jb tar xfz ${SOURCE_DIR}/Python-2.4.1${PYTHON_ARCHIVE_PREFIX}.tar.gz -C ${INSTALL_WORK}
+
+if test `uname -m` = "x86_64" ; then
+cp Python-2.4.1-lib64.patch ${PRODUCT_WORK}
+cd ${PRODUCT_WORK}
+patch -p 1 -i Python-2.4.1-lib64.patch
+rm -rf aclocal.m4
+aclocal >& /dev/null
+autoconf >& /dev/null
+aclocal >& /dev/null
+autoconf >& /dev/null
+else
cd ${PRODUCT_WORK}
+fi
+if test `uname -m` = "x86_64" ; then
+PYTHON_CONFIGURE_OPTIONS="--with-threads --with-cxx=`which g++` --enable-shared CFLAGS=-m64 CXXFLAGS=-m64"
+else
+PYTHON_CONFIGURE_OPTIONS="--with-threads --with-cxx=`which g++` --enable-shared"
+fi
check_job ${PRODUCT_DIR}/CONFIGURE.LOG \
- ./configure --prefix=${PRODUCT_DIR} --with-threads --with-cxx=`which g++` --enable-shared
+ ./configure --prefix=${PRODUCT_DIR} $PYTHON_CONFIGURE_OPTIONS
# vsr: force linking to libstdc++.so
sed -e 's%\(^LIBS=.*\)%\1 -lstdc++%g' Makefile > _Makefile
mv -f _Makefile Makefile
cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
used gcc=$GCC
EOF
-
check_job ${PRODUCT_DIR}/MAKE.LOG make
check_job ${PRODUCT_DIR}/MAKINSTALL.LOG make install
-(cd ${PRODUCT_DIR}/lib/python2.4/config; ln -fs ../../libpython2.4.so.1.0 libpython2.4.so)
+(cd ${PRODUCT_DIR}/lib${PYTHON_LIB_PREFIX}/python2.4/config; ln -fs ../../libpython2.4.so.1.0 libpython2.4.so)
cd ${PRODUCT_DIR}/bin
for sc in idle pydoc smtpd.py ; do
fi
done
+ if test `uname -m` = "x86_64" ; then
+ cd ${PRODUCT_DIR}; ln -sf lib64 lib
+ fi
+
#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log
cd ${PRODUCT_DIR}; rm -fr ${PRODUCT_WORK}
print_env
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
+if test `uname -m` = "x86_64" ; then
+export CFLAGS=-m64
+export CXXFLAGS=-m64
+fi
+
check_jb tar xfz ${SOURCE_DIR}/swig-1.3.24.tar.gz -C ${INSTALL_WORK}
cd ${PRODUCT_WORK}
makedir ${PRODUCT_DIR}
+
check_job ${PRODUCT_DIR}/CONFIGURE.LOG \
./configure --prefix=${PRODUCT_DIR}
GCC=`which gcc`
makedir ${PRODUCT_DIR}
check_jb tar xfz ${SOURCE_DIR}/cmake-1.6.6.tar.gz -C ${INSTALL_WORK}
-cd ${INSTALL_WORK}/cmake-1.6.6
+
+if test `uname -m` = "x86_64" ; then
+cp cmake-1.6.6.patch ${INSTALL_WORK}/cmake-1.6.6
+cd ${INSTALL_WORK}/cmake-1.6.6
+patch -p 1 -i cmake-1.6.6.patch
+else
+cd ${INSTALL_WORK}/cmake-1.6.6
+fi
+
check_job ${PRODUCT_DIR}/CONFIGUREcmake.LOG ./configure
cat >> ${PRODUCT_DIR}/MAKEcmake.LOG <<EOF
used gcc=$GCC
check_jb tar xfz ${SOURCE_DIR}/VTK-4.2.6.tar.gz -C ${INSTALL_WORK}
cd ${PRODUCT_WORK}
-
# apply a small patch for VTK (needed for gcc-3.4)
sed -e "s%seekg(self->GetFile()->tellg()%seekg(static_cast<long>(self->GetFile()->tellg())%g" IO/vtkBMPReader.cxx > IO/vtkBMPReader.cxx.orig
mv -f IO/vtkBMPReader.cxx.orig IO/vtkBMPReader.cxx
VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DVTK_USE_PARALLEL:BOOL=ON"
VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DVTK_USE_PATENTED:BOOL=OFF"
VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DVTK_USE_RENDERING:BOOL=ON"
+ if test `uname -m` = "x86_64" ; then
+VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DCMAKE_CXX_FLAGS:STRING=-m64"
+VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DCMAKE_C_FLAGS:STRING=-m64"
+ fi
+
### Wrap Python settings
if [ "${python_version}" != "" ]; then
VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DVTK_WRAP_PYTHON:BOOL=ON"
### if Mesa is pre-installed
if [ -n "$MESA_HOME" ]; then
VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DOPENGL_INCLUDE_DIR:STRING=${MESA_HOME}/include"
- VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DOPENGL_gl_LIBRARY:STRING=${MESA_HOME}/lib/libGL.so"
- VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DOPENGL_glu_LIBRARY:STRING=${MESA_HOME}/lib/libGLU.so"
+ if test `uname -m` = "x86_64" ; then
+ VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DOPENGL_gl_LIBRARY:STRING=${MESA_HOME}/lib64/libGL.so"
+ VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DOPENGL_glu_LIBRARY:STRING=${MESA_HOME}/lib64/libGLU.so"
+ else
+ VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DOPENGL_gl_LIBRARY:STRING=${MESA_HOME}/lib/libGL.so"
+ VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DOPENGL_glu_LIBRARY:STRING=${MESA_HOME}/lib/libGLU.so"
+ fi
VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DOPENGL_xmesa_INCLUDE_DIR:STRING=${MESA_HOME}/include"
fi
check_job ${PRODUCT_DIR}/MAKEINSTALL.LOG make install
+ if test `uname -m` = "x86_64" ; then
+cd ${PRODUCT_WORK}/Wrapping/Python
+sed -e "s%/lib/vtk%/lib64/vtk%" setup.py.in > _setup.py.in
+mv -f _setup.py.in setup.py.in
+chmod a+x setup.py.in
+else
cd ${PRODUCT_WORK}/Wrapping/Python
+ fi
check_job ${PRODUCT_DIR}/SETUPPYTHON.LOG python setup.py install --prefix=${PRODUCT_DIR}
#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log
sed -e 's%export\([[:blank:]]*\)LD_RUN_PATH=\$[{]\?LD_RUN_PATH[}]\?:\(.*\)%exporta\1LD_RUN_PATH \2%g' -e 's%export\([[:blank:]]*\)LD_RUN_PATH=\(.*\):\$[{]\?LD_RUN_PATH[}]\?%exportp\1LD_RUN_PATH \2%g' ${INSTALL_WORK}/_tmp1 > ${INSTALL_WORK}/_tmp2
# Setting "/usr/X11R6/lib" path in LD_LIBRARY_PATH for the libGL.so.1 file
+if test `uname -m` = "x86_64" ; then
+echo '# Setting /usr/X11R6/lib64 path in LD_LIBRARY_PATH for the libGL.so.1 file' >> ${INSTALL_WORK}/_tmp2
+echo 'export LD_LIBRARY_PATH=/usr/X11R6/lib64:${LD_LIBRARY_PATH}' >> ${INSTALL_WORK}/_tmp2
+else
echo '# Setting /usr/X11R6/lib path in LD_LIBRARY_PATH for the libGL.so.1 file' >> ${INSTALL_WORK}/_tmp2
echo 'export LD_LIBRARY_PATH=/usr/X11R6/lib:${LD_LIBRARY_PATH}' >> ${INSTALL_WORK}/_tmp2
+fi
cat ${INSTALL_WORK}/_tmp2 >> ${install_work}/_$SHRC
chmod a+x rst2html.py
ln -sf rst2html.py rst2html
+ if test `uname -m` = "x86_64" ; then
+ cd ${PRODUCT_DIR}; ln -sf lib64 lib
+ fi
+
rm -fr ${PRODUCT_WORK}
print_env
cd ${PRODUCT_WORK}
makedir ${PRODUCT_DIR}
+ if test `uname -m` = "x86_64" ; then
+check_job ${PRODUCT_DIR}/CONFIGURE.LOG configure --prefix=${PRODUCT_DIR} --with-expatlibdir=/usr/lib64 --with-tcl=${TCLHOME} --disable-rpath CFLAGS=-m64 CXXFLAGS=-m64
+ else
check_job ${PRODUCT_DIR}/CONFIGURE.LOG configure --prefix=${PRODUCT_DIR} --with-tcl=${TCLHOME} --disable-rpath
+ fi
GCC=`which gcc`
cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
used gcc=$GCC
{
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-
+if test `uname -m` = "x86_64" ; then
+HDF_CONFIGURE_OPTIONS="-disable-debug --enable-production --enable-threadsafe --enable-hdf5v1_2 --enable-stream-vfd --disable-hsizet --with-pthread=/usr/include,/usr/lib CFLAGS=-m64 CXXFLAGS=-m64"
+else
+HDF_CONFIGURE_OPTIONS="-disable-debug --enable-production --enable-threadsafe --enable-hdf5v1_2 --enable-stream-vfd --disable-hsizet --with-pthread=/usr/include,/usr/lib"
+fi
check_jb tar xfz ${SOURCE_DIR}/hdf5-1.6.4.tar.gz -C ${INSTALL_WORK}
cd ${PRODUCT_WORK}
makedir ${PRODUCT_DIR}
check_job ${PRODUCT_DIR}/CONFIGURE.LOG \
- ./configure --prefix=${PRODUCT_DIR} --disable-debug --enable-production --enable-threadsafe --enable-hdf5v1_2 \
- --enable-stream-vfd --disable-hsizet --with-pthread=/usr/include,/usr/lib
+ ./configure --prefix=${PRODUCT_DIR} $HDF_CONFIGURE_OPTIONS
GCC=`which gcc`
cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
used gcc=$GCC
if [ $is_mandriva == 0 ] ; then
check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure --prefix=${PRODUCT_DIR}
else
+ if test `uname -m` = "x86_64" ; then
+ echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} FFLAGS='-g -O2 -ffixed-line-length-none' CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG"
+ ./configure --prefix=${PRODUCT_DIR} FFLAGS="-g -O2 -ffixed-line-length-none" CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${INSTALL_WORK}/errlog
+ else
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> ${INSTALL_WORK}/errlog
+ fi
if [ "$?" -ne "0" ] ; then
cat ${PRODUCT_DIR}/CONFIGURE.LOG
cat ${INSTALL_WORK}/errlog >&2
check_jb tar xfz ${SOURCE_DIR}/netgen-4.5.tar.gz -C ${INSTALL_WORK}
+if test `uname -m` = "x86_64" ; then
+cp netgen-4.5.patch ${INSTALL_WORK}
+cd ${INSTALL_WORK}
+patch -p 0 -i netgen-4.5.patch
+fi
+
export MACHINE=LINUX
# apply general patch for SALOME
print_env()
{
+
+if test `uname -m` = "x86_64" ; then
+export OMNI_LIB_PREFIX="64"
+fi
+
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
export OMNIORBDIR=\${INSTALL_ROOT}/${PRODUCT}
export OMNIORB_CONFIG=\${OMNIORBDIR}/.omniORB.cfg
-export PYTHONPATH=\${OMNIORBDIR}/lib:\${OMNIORBDIR}/lib/python\${PYTHON_VERSION}/site-packages:\${PYTHONPATH}
+export PYTHONPATH=\${OMNIORBDIR}/lib\${OMNI_LIB_PREFIX}:\${OMNIORBDIR}/lib\${OMNI_LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages:\${PYTHONPATH}
export PATH=\$OMNIORBDIR/bin:\$PATH
export LD_LIBRARY_PATH=\$OMNIORBDIR/lib:\$LD_LIBRARY_PATH
##
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
+
makedir ${PRODUCT_DIR}
check_jb tar xfz ${SOURCE_DIR}/omniORB-4.0.7.tar.gz -C ${INSTALL_WORK}
check_jb tar xfz ${SOURCE_DIR}/omniORBpy-2.7.tar.gz -C ${INSTALL_WORK}
check_jb tar xfz ${SOURCE_DIR}/omniNotify-2.1.tar.gz -C ${INSTALL_WORK}
+if test `uname -m` = "x86_64" ; then
+cp omniORB-4.0.7.patch ${INSTALL_WORK}/omniORB-4.0.7
+cp omniORBpy-2.7.patch ${INSTALL_WORK}/omniORBpy-2.7
+cp omniNotify-2.1.patch ${INSTALL_WORK}/omniNotify
+cd ${INSTALL_WORK}/omniORB-4.0.7
+patch -p 1 -i omniORB-4.0.7.patch
+cd ${INSTALL_WORK}/omniORBpy-2.7
+patch -p 1 -i omniORBpy-2.7.patch
+cd ${INSTALL_WORK}/omniNotify
+patch -p 1 -i omniNotify-2.1.patch
+fi
+
# install omniORB
cd ${INSTALL_WORK}/omniORB-4.0.7
mkdir build
# install omniNotify
cd ${INSTALL_WORK}/omniNotify
+
mkdir build
cd build
mv -f _omniidlrun.py omniidlrun.py
chmod a+x omniidlrun.py
+if test `uname -m` = "x86_64" ; then
+cd ${PRODUCT_DIR}; ln -s lib lib64
+fi
+
#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log
cd ${PRODUCT_DIR}
rm -fr ${INSTALL_WORK}/omniORB-4.0.7
# looks for the native product and collects it's environment (used by make_env())
try_native(){
+
qtdir=""
-if [ -d /usr/share/qt3/lib ] ; then
- qtdir="`find_in_path libqt-mt.so.3.3 /usr/share/qt3/lib`"
+ if test `uname -m` = "x86_64" ; then
+ export QT_LD_PREFIX='64'
+ else
+ QT_LD_PREFIX=''
+ fi
+
+if [ -d /usr/share/qt3/lib${QT_LD_PREFIX} ] ; then
+ qtdir="`find_in_path libqt-mt.so.3.3 /usr/share/qt3/lib\${QT_LD_PREFIX}`"
fi
-if [ -z "${qtdir}" ] && [ -d /usr/lib/qt3/lib ] ; then
- qtdir="`find_in_path libqt-mt.so.3.3 /usr/lib/qt3/lib`"
+if [ -z "${qtdir}" ] && [ -d /usr/lib/qt3/lib${QT_LD_PREFIX} ] ; then
+ qtdir="`find_in_path libqt-mt.so.3.3 /usr/lib/qt3/lib${QT_LD_PREFIX}`"
fi
if [ -z "${qtdir}" ] ; then
- qtdir="`find_in_path libqt-mt.so.3.3 /usr/lib`"
+ qtdir="`find_in_path libqt-mt.so.3.3 /usr/lib${QT_LD_PREFIX}`"
fi
if [ -z "${qtdir}" ] ; then
qtdir="`find_in_path libqt-mt.so.3.3 ${LD_LIBRARY_PATH}`"
if [ -n "${moc}" ] && [ -n "${uic}" ] ; then
tmp="\${QTDIR}/bin ${qtdir}/bin \${PATH} ${PATH}";
path=`sort_path ${tmp}`
- tmp="\${QTDIR}/lib ${qtdir}/lib \${LD_LIBRARY_PATH} ${LD_LIBRARY_PATH}";
+ tmp="\${QTDIR}/lib${QT_LD_PREFIX} ${qtdir}/lib${QT_LD_PREFIX} \${LD_LIBRARY_PATH} ${LD_LIBRARY_PATH}";
ld_library_path=`sort_path ${tmp}`
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
makedir ${PRODUCT_DIR}
check_jb tar xfz ${SOURCE_DIR}/qt-3.3.4.tar.gz -C ${INSTALL_WORK}
+
+if test `uname -m` = "x86_64" ; then
+cp qt-3.3.4.patch ${PRODUCT_WORK}
cd ${PRODUCT_WORK}
+patch -p 1 -i qt-3.3.4.patch
+else
+cd ${PRODUCT_WORK}
+fi
mv -f configure configure-orig
sed -e "s%read acceptance%acceptance=yes%" configure-orig > configure
export LD_LIBRARY_PATH=${QTDIR}/lib:$LD_LIBRARY_PATH
# basic flags
-QT_FLAGS="-release -thread -shared -qt-gif -platform linux-g++"
+ if test `uname -m` = "x86_64" ; then
+ QT_FLAGS="-release -thread -shared -qt-gif -platform linux-g++-64"
+ else
+ QT_FLAGS="-release -thread -shared -qt-gif -platform linux-g++"
+ fi
# use system graphics libraries
QT_FLAGS=$QT_FLAGS" -system-libjpeg -system-libpng -system-libmng -qt-imgfmt-jpeg -qt-imgfmt-png -qt-imgfmt-mng -lpng -lmng -ljpeg"
# prefix
export INSTALL_ROOT=""
check_job ${PRODUCT_DIR}/MAKE.LOG make
check_job ${PRODUCT_DIR}/MAKEINSTALL.LOG make install
+
+if test `uname -m` = "x86_64" ; then
+ cd ${PRODUCT_DIR}; ln -sf lib lib64
+fi
+
export INSTALL_ROOT=$INSTALL_ROOT_BACKUP
for b in `ls ${PRODUCT_WORK}/bin`; do
# looks for the native product and collects it's environment (used by make_env())
try_native(){
+if test `uname -m` = "x86_64" ; then
+qwthome="`find_in_path libqwt.so ${LD_LIBRARY_PATH}:/usr/lib64:/usr/local/lib64`"
+else
qwthome="`find_in_path libqwt.so ${LD_LIBRARY_PATH}:/usr/lib:/usr/local/lib`"
+fi
if [ -n "${qwthome}" ] ; then
qwtroot=`cd ${qwthome}/..; pwd`
qwtinc="`find_in_path qwt_global.h ${qwtroot}/include:${qwtroot}/include/qwt:${QTDIR}/include/qwt:/usr/lib/qt3/include/qwt:/usr/local/lib/qt3/include/qwt`"
sipdir="`find_in_path sip ${PATH}:/usr/bin`"
if [ -n "${sipdir}" ] ; then
python_version="`python -c 'import sys; print sys.version[:3]'`"
+if test `uname -m` = "x86_64" ; then
+ sippython="`find_in_path sip.so ${PYTHONPATH}:/usr/lib64/python${python_version}/site-packages`"
+else
sippython="`find_in_path sip.so ${PYTHONPATH}:/usr/lib/python${python_version}/site-packages`"
+fi
if [ -n "${sippython}" ]; then
ver=`${sipdir}/sip -V | awk '{print $1}'`
maj_ver=`echo $ver | awk -F. '{if(NF>0) print $1; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'`
makedir ${PRODUCT_DIR}
check_jb tar xfz ${SOURCE_DIR}/sip-4.2.1.tar.gz -C ${INSTALL_WORK}
-cd ${PRODUCT_WORK}
+
+ if test `uname -m` = "x86_64" ; then
+ cp sip-4.2.1.patch ${PRODUCT_WORK}
+ cd ${PRODUCT_WORK}
+ patch -p 1 -i sip-4.2.1.patch
+ else
+ cd ${PRODUCT_WORK}
+ fi
+
+ if test `uname -m` = "x86_64" ; then
+ SIP_CONFIGURE_OPTIONS="-b ${PRODUCT_DIR} -d ${PRODUCT_DIR} -e ${PRODUCT_DIR} -v ${PRODUCT_DIR} -l qt-mt -p linux-g++-64"
+ else
+ SIP_CONFIGURE_OPTIONS="-b ${PRODUCT_DIR} -d ${PRODUCT_DIR} -e ${PRODUCT_DIR} -v ${PRODUCT_DIR} -l qt-mt"
+ fi
check_job ${PRODUCT_DIR}/CONFIGURE.LOG \
- python configure.py -b ${PRODUCT_DIR} -d ${PRODUCT_DIR} -e ${PRODUCT_DIR} -v ${PRODUCT_DIR} -l qt-mt
+ python configure.py $SIP_CONFIGURE_OPTIONS
GCC=`which gcc`
cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
used gcc=$GCC
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-makedir ${PRODUCT_DIR}
+if test `uname -m` = "x86_64" ; then
+export CFLAGS=-m64
+fi
+makedir ${PRODUCT_DIR}
check_jb tar xfz ${SOURCE_DIR}/tcl8.4.5.tar.gz -C ${INSTALL_WORK}
cd ${INSTALL_WORK}/tcl8.4.5/unix
cat >> ${PRODUCT_DIR}/CONFIGURE.LOG <<EOF