Salome HOME
Update for version 2.2.7
[tools/install.git] / config_files / doxygen-1.3.7.sh
index 96175b95b7fdbfcdc450efb7601196fb055ee3da..39e39cc28c41b9619805faae559f740480a1dfa9 100755 (executable)
@@ -57,8 +57,60 @@ return $?
 
 install_source()
 {
-echo "The installation of doxygen 1.3.7 from sources is not provided! Use native doxygen."
-return 1
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/doxygen-1.3.7.tar.gz -C ${INSTALL_WORK}
+
+cd ${PRODUCT_WORK}
+makedir ${PRODUCT_DIR}
+# vsr: fix a bug on Mandrake-10.1: wrong qt library reference
+sed -e "s/-lqt/-lqt-mt/g" ./tmake/lib/linux-g++/tmake.conf > ./tmake/lib/linux-g++/tmake.conf.new
+mv ./tmake/lib/linux-g++/tmake.conf.new ./tmake/lib/linux-g++/tmake.conf
+# vsr: fix bug - configure fails on Red Hat 9 because of incorrect autodetect check for install tool
+# so it is necessary to put it directly
+f_install="--install "`which install`
+check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure --with-doxywizard --prefix ${PRODUCT_DIR} $f_install
+GCC=`which gcc`
+cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
+used gcc=$GCC
+EOF
+check_job ${PRODUCT_DIR}/MAKE.LOG make
+check_job ${PRODUCT_DIR}/MAKEINSTALL.LOG make install
+
+which epstopdf >/dev/null 2>&1;  ISFOUND=$?
+if [ ${ISFOUND} -eq 0 ] ; then  which makeindex >/dev/null 2>&1; ISFOUND=$?; fi
+if [ ${ISFOUND} -eq 0 ] ; then  which latex >/dev/null 2>&1; ISFOUND=$?; fi
+#if [ ${ISFOUND} -eq 0 ] ; then  which latex2html >/dev/null 2>&1; ISFOUND=$?; fi
+if [ ${ISFOUND} -eq 0 ] ; then  which pdflatex >/dev/null 2>&1; ISFOUND=$?; fi
+if [ ${ISFOUND} -eq 0 ] ; then  which pslatex >/dev/null 2>&1; ISFOUND=$?; fi
+#if [ ${ISFOUND} -eq 0 ] ; then  which pstoimg >/dev/null 2>&1; ISFOUND=$?; fi
+if [ ${ISFOUND} -eq 0 ] ; then
+    check_job ${PRODUCT_DIR}/MAKEDOCS.LOG make docs
+    check_job ${PRODUCT_DIR}/MAKEINSTALLDOCS.LOG make install_docs
+else
+    cat >> ${PRODUCT_DIR}/MAKEDOCS.LOG <<EOF
+Can't find \"epstopdf\" and \"latex\" or another executables on the computer.
+doxygen documentation will not be built!
+SALOME DOCUMENTATION ALSO CAN NOT BE BUILT!
+EOF
+#    check_job ${PRODUCT_DIR}/MAKEDOCS.LOG make docs
+#    rm -fr ${PRODUCT_WORK}
+#    echo -e "Can't find \"epstopdf\" and \"latex\" or another executables on the computer."
+#    echo -e "doxygen documentation will not be built!"
+#    echo -e "SALOME DOCUMENTATION ALSO CAN NOT BE BUILT!"
+#    echo -n "Would you like continue : (Y,N) [Y] : "
+#    read rep;
+#    rep=`echo $rep  | tr "[A-Z]" "[a-z]"`
+#    if test -z $rep || [ $rep != "y" ] ; then
+#      rm -fr ${PRODUCT_WORK}
+#      exit 1
+#    fi
+fi
+
+#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log
+rm -fr ${PRODUCT_WORK}
+print_env
 }
 
 install_binary()