Commit 945693d3 authored by Jussi Lindgren's avatar Jussi Lindgren

Build: Cleanup of the linux installer

parent 3d3f8aed
#!/bin/bash
ov_gnu_mirror=ftp://ftp.cw.net/pub/gnu
ov_sourceforge_mirror=http://sourceforge.net/projects
ov_freedesktop_mirror=http://xorg.freedesktop.org
ov_gnome_mirror=ftp://ftp.gnome.org/pub/GNOME
ov_should_skip_download=true
ov_should_backup_after_install=false
ov_native_package_installed=false
ov_native_package_forced=true
############################
## ##
## useful tools ##
## useful tools ##
## ##
############################
......@@ -312,11 +306,6 @@ else
popd 2> /dev/null
fi;
if [ "$2" == "" ]; then
ov_environment_configuration_script=$ov_target_folder/environment-configuration-script
else
ov_environment_configuration_script=$ov_target_folder/$2
fi;
#########################
## ##
......@@ -325,7 +314,6 @@ fi;
#########################
echo "Setting target folder to [$ov_target_folder]..."
echo "Setting environment configuration script to [$ov_environment_configuration_script]..."
echo ""
##############################################
......@@ -370,14 +358,16 @@ if [[ ! -e "$ov_target_folder_hit/no-native-packages.hit" ]]; then
ov_native_package_installed=true
ov_native_package_log_file="$ov_target_folder_log/native-packages.log"
ov_ubuntu_version=`lsb_release -r -s 2>/dev/null`
if [[ `expr $ov_ubuntu_version \>= 13.10` == 1 ]]; then
if [[ `expr $ov_ubuntu_version \>= 14.04` == 1 ]]; then
# at the time of writing this, there was a conflict between libogre-dev and libboost-thread-dev dependencies in 13.10 and 14.04
echo " Ubuntu $ov_ubuntu_version detected, suggesting specific set of packages..."
ov_lib_ogre_dev=libogre-1.8-dev
ov_lib_libboost_chrono_dev=libboost-chrono1.54-dev
else
ov_lib_ogre_dev=libogre-dev
ov_lib_libboost_chrono_dev=
fi;
ov_ubuntu_packages="subversion doxygen make automake autoconf cmake unzip gcc g++ libgtk2.0-dev libglade2-dev gfortran libgsl0-dev libexpat1-dev libreadline-dev libzzip-dev libtool libxaw7-dev libpcre3-dev libfreeimage-dev libglu1-mesa-dev libalut-dev libvorbis-dev libncurses5-dev python-dev python-numpy libeigen3-dev $ov_lib_ogre_dev libcegui-mk2-dev libois-dev libboost-dev libboost-thread-dev liblua5.1-0-dev libboost-regex-dev libboost-filesystem-dev libitpp-dev sqlite libsqlite0-dev libfftw3-dev"
ov_ubuntu_packages="wget doxygen make automake autoconf cmake unzip gcc g++ libgtk2.0-dev libglade2-dev gfortran libgsl0-dev libexpat1-dev libreadline-dev libzzip-dev libtool libxaw7-dev libpcre3-dev libfreeimage-dev libglu1-mesa-dev libalut-dev libvorbis-dev libncurses5-dev python-dev python-numpy libeigen3-dev $ov_lib_ogre_dev libcegui-mk2-dev libois-dev libboost-dev libboost-thread-dev liblua5.1-0-dev libboost-regex-dev libboost-filesystem-dev $ov_lib_libboost_chrono_dev libitpp-dev sqlite libsqlite0-dev libfftw3-dev"
for package in $ov_ubuntu_packages; do
ov_dpkg_output=`dpkg -l $package 2>&1 | grep "^ii"`
......@@ -394,320 +384,52 @@ if [[ ! -e "$ov_target_folder_hit/no-native-packages.hit" ]]; then
if [[ $ov_native_package_installed == false ]]; then
echo " You are currently running a Debian/Ubuntu based distribution"
echo ""
echo " It is possible to install native packages in order to avoid some potential"
echo " errors / save time. Such installation requires root access. If you want"
echo " to continue with native packages, answer 'yes' (recommanded)"
echo " Root access is required to install needed packages."
echo ""
if [[ -e "$ov_target_folder_hit/native-packages.hit" || $ov_native_package_forced == true ]]; then
echo " Do you want to install native packages (y) ? automatically selected yes"
ov_answer=yes
else
echo -n " Do you want to install native packages (y) ?"
read ov_answer
fi;
echo " Installing native packages on background..."
if [[ $ov_answer == "yes" || $ov_answer == "y" || $ov_answer == "" ]]; then
echo " Installing native packages on background..."
sudo -k # revokes root privilege
sudo apt-get --assume-yes install $ov_ubuntu_packages > $ov_native_package_log_file 2>&1
ov_apt_get_output=$?
sudo -k # revokes root privilege
if [[ $ov_apt_get_output == 100 ]]; then
echoerr "error: error in native package installation"
cat "$ov_native_package_log_file"
exit 100
else
echo " Installing native packages on background... done."
ov_should_hit_native=true
ov_native_package_installed=true
fi;
else
echo " All right, we will compile everything..."
fi;
else
if [[ -e "$ov_target_folder_hit/native-packages.hit" ]]; then
echo " You are currently running Ubuntu and all required native packages were"
echo " installed previously, continuing..."
sudo -k # revokes root privilege
sudo apt-get --assume-yes install $ov_ubuntu_packages > $ov_native_package_log_file 2>&1
ov_apt_get_output=$?
sudo -k # revokes root privilege
if [[ $ov_apt_get_output == 100 ]]; then
echoerr "error: error in native package installation"
cat "$ov_native_package_log_file"
exit 100
else
echo " Installing native packages on background... done."
ov_should_hit_native=true
ov_native_package_installed=true
else
echo " You are currently running Debian/Ubuntu based distribution and all necessary"
echo " native dependencies are already installed."
echo ""
echo " It is possible to install use those native packages in order to avoid some potential"
echo " errors / save time. Such installation requires root access. If you want"
echo " to continue with native packages, answer 'yes' (recommanded)"
echo ""
if [[ $ov_native_package_forced == true ]]; then
echo " Do you want to use native packages (y) ? automatically selected yes"
ov_should_hit_native=true
ov_native_package_installed=true
else
echo -n " Do you want to use native packages (y) ?"
read ov_answer
if [[ $ov_answer == "yes" || $ov_answer == "y" || $ov_answer == "" ]]; then
ov_should_hit_native=true
ov_native_package_installed=true
fi;
fi;
fi;
fi;
if [[ $ov_should_hit_native == true ]]; then
ov_hit_package "native-packages"
ov_hit_package "pkgconfig"
ov_hit_package "cmake"
ov_hit_package "expat"
ov_hit_package "libxml"
ov_hit_package "gettext"
ov_hit_package "pthreadstubs"
ov_hit_package "zlib"
ov_hit_package "libpng"
ov_hit_package "freetype"
ov_hit_package "fontconfig"
ov_hit_package "libtool"
ov_hit_package "libxproto"
ov_hit_package "libxextproto"
ov_hit_package "libxtrans"
ov_hit_package "libxslt"
ov_hit_package "libxau"
ov_hit_package "libxcbproto"
ov_hit_package "libxcb"
ov_hit_package "libkbproto"
ov_hit_package "libinputproto"
ov_hit_package "libxdmcp"
ov_hit_package "libx11"
ov_hit_package "libxext"
ov_hit_package "renderproto"
ov_hit_package "libxdmcp"
ov_hit_package "libxrender"
ov_hit_package "libice"
ov_hit_package "libsm"
ov_hit_package "libxt"
ov_hit_package "libxmu"
ov_hit_package "libxpm"
ov_hit_package "libxaw"
ov_hit_package "libxf86vidmodeproto"
ov_hit_package "libXxf86vm"
ov_hit_package "librandrproto"
ov_hit_package "libXrandr"
ov_hit_package "mesa"
ov_hit_package "glib"
ov_hit_package "pixman"
ov_hit_package "cairo"
ov_hit_package "pango"
ov_hit_package "atk"
ov_hit_package "gtk"
ov_hit_package "clearlooks"
ov_hit_package "libglade"
ov_hit_package "glade"
ov_hit_package "boost"
ov_hit_package "itpp_external"
ov_hit_package "itpp"
ov_hit_package "gfortran"
ov_hit_package "gsl"
ov_hit_package "freeimage"
ov_hit_package "ois"
ov_hit_package "zziplib"
ov_hit_package "cg"
ov_hit_package "ogre"
ov_hit_package "cegui"
ov_hit_package "lua"
# mkdir "$ov_target_folder_lib/OGRE" 2> /dev/null
# rm "$ov_target_folder_lib/OGRE/Plugins.cfg" 2> /dev/null
# echo "# Define plugin folder" >> "$ov_target_folder_lib/OGRE/Plugins.cfg"
# echo "PluginFolder=/usr/lib/OGRE" >> "$ov_target_folder_lib/OGRE/Plugins.cfg"
# echo "" >> "$ov_target_folder_lib/OGRE/Plugins.cfg"
# echo "# Define plugins" >> "$ov_target_folder_lib/OGRE/Plugins.cfg"
# echo "Plugin=RenderSystem_GL" >> "$ov_target_folder_lib/OGRE/Plugins.cfg"
# echo "Plugin=Plugin_ParticleFX" >> "$ov_target_folder_lib/OGRE/Plugins.cfg"
# echo "Plugin=Plugin_BSPSceneManager" >> "$ov_target_folder_lib/OGRE/Plugins.cfg"
# echo "Plugin=Plugin_OctreeSceneManager" >> "$ov_target_folder_lib/OGRE/Plugins.cfg"
# echo "#Plugin=Plugin_CgProgramManager" >> "$ov_target_folder_lib/OGRE/Plugins.cfg"
else
ov_hit_package "no-native-packages"
echo " Natively available packages seem to have been installed already."
fi;
# these sometimes non-native packages are available on Ubuntu, so no need to compile these
ov_hit_package "itpp_external"
ov_hit_package "itpp"
fi;
if [[ -e /etc/fedora-release ]]; then
ov_native_package_installed=true
ov_native_package_log_file="$ov_target_folder_log/native-packages.log"
ov_fedora_packages="wget subversion doxygen make automake autoconf cmake unzip gcc gcc-c++ gtk2-devel libglade2-devel gcc-gfortran expat-devel zziplib-devel libtool libXaw-devel python-devel numpy pcre-devel readline-devel freeimage-devel mesa-libGLU-devel freealut-devel libvorbis-devel bzip2 eigen3-devel ogre-devel ois-devel cegui-devel boost-regex boost boost-filesystem boost-math boost-thread lua-devel freetype sqlite sqlite-devel fftw-devel"
# for package in $ov_ubuntu_packages; do
# ov_dpkg_output=`dpkg -l $package 2>&1 | grep "^ii"`
# ov_dpkg_retcode=$?
#
# if [[ $ov_dpkg_retcode != 0 ]]; then
# ov_native_package_installed=false
# fi;
# if [[ "$ov_dpkg_output" == "" ]]; then
# ov_native_package_installed=false
# fi;
# done;
ov_native_package_installed=false
ov_fedora_packages="wget doxygen make automake autoconf cmake unzip gcc gcc-c++ gtk2-devel libglade2-devel gcc-gfortran expat-devel zziplib-devel libtool libXaw-devel python-devel numpy pcre-devel readline-devel freeimage-devel mesa-libGLU-devel freealut-devel libvorbis-devel bzip2 eigen3-devel ogre-devel ois-devel cegui-devel boost-regex boost boost-filesystem boost-math boost-thread lua-devel freetype sqlite sqlite-devel fftw-devel"
if [[ $ov_native_package_installed == false ]]; then
echo " You are currently running Fedora"
echo ""
echo " It is possible to install native packages in order to avoid some potential"
echo " errors / save time. Such installation requires root access. If you want"
echo " to continue with native packages, answer 'yes' (recommanded)"
echo ""
if [[ -e "$ov_target_folder_hit/native-packages.hit" || $ov_native_package_forced == true ]]; then
echo " Do you want to install native packages (y) ? automatically selected yes"
ov_answer=yes
else
echo -n " Do you want to install native packages (y) ?"
read ov_answer
fi;
if [[ $ov_answer == "yes" || $ov_answer == "y" || $ov_answer == "" ]]; then
echo " Installing native packages on background..."
echo " You are currently running Fedora"
echo ""
echo " Root access is required to install needed packages. "
echo ""
su -c "yum -y install $ov_fedora_packages " 2>&1 | tee $ov_native_package_log_file
echo " Installing native packages on background..."
echo " Installing native packages on background... done."
su -c "yum -y install $ov_fedora_packages " 2>&1 | tee $ov_native_package_log_file
ov_should_hit_native=true
ov_native_package_installed=true
else
echo " All right, we will compile everything..."
fi;
else
if [[ -e "$ov_target_folder_hit/native-packages.hit" ]]; then
echo " You are currently running Fedora and all required native packages were"
echo " installed previously, continuing..."
ov_should_hit_native=true
ov_native_package_installed=true
else
echo " You are currently running Fedora and all necessary native dependencies are"
echo " already installed."
echo ""
echo " It is possible to install use those native packages in order to avoid some potential"
echo " errors / save time. Such installation requires root access. If you want"
echo " to continue with native packages, answer 'yes' (recommanded)"
echo ""
if [[ $ov_native_package_forced == true ]]; then
echo " Do you want to use native packages (y) ? automatically selected yes"
ov_should_hit_native=true
ov_native_package_installed=true
else
echo -n " Do you want to use native packages (y) ?"
read ov_answer
if [[ $ov_answer == "yes" || $ov_answer == "y" || $ov_answer == "" ]]; then
ov_should_hit_native=true
ov_native_package_installed=true
fi;
fi;
fi;
fi;
if [[ $ov_should_hit_native == true ]]; then
ov_hit_package "native-packages"
ov_hit_package "pkgconfig"
ov_hit_package "cmake"
ov_hit_package "expat"
ov_hit_package "libxml"
ov_hit_package "gettext"
ov_hit_package "pthreadstubs"
ov_hit_package "zlib"
ov_hit_package "libpng"
ov_hit_package "freetype"
ov_hit_package "fontconfig"
ov_hit_package "libtool"
ov_hit_package "libxproto"
ov_hit_package "libxextproto"
ov_hit_package "libxtrans"
ov_hit_package "libxslt"
ov_hit_package "libxau"
ov_hit_package "libxcbproto"
ov_hit_package "libxcb"
ov_hit_package "libkbproto"
ov_hit_package "libinputproto"
ov_hit_package "libxdmcp"
ov_hit_package "libx11"
ov_hit_package "libxext"
ov_hit_package "renderproto"
ov_hit_package "libxdmcp"
ov_hit_package "libxrender"
ov_hit_package "libice"
ov_hit_package "libsm"
ov_hit_package "libxt"
ov_hit_package "libxmu"
ov_hit_package "libxpm"
ov_hit_package "libxaw"
ov_hit_package "libxf86vidmodeproto"
ov_hit_package "libXxf86vm"
ov_hit_package "librandrproto"
ov_hit_package "libXrandr"
ov_hit_package "mesa"
ov_hit_package "glib"
ov_hit_package "pixman"
ov_hit_package "cairo"
ov_hit_package "pango"
ov_hit_package "atk"
ov_hit_package "gtk"
ov_hit_package "clearlooks"
ov_hit_package "libglade"
ov_hit_package "glade"
ov_hit_package "boost"
ov_hit_package "lua"
# No itpp on Fedora 17
# ov_hit_package "itpp_external"
# ov_hit_package "itpp"
ov_hit_package "gcc-gfortran"
ov_hit_package "gsl"
ov_hit_package "freeimage"
ov_hit_package "ois"
ov_hit_package "zziplib"
ov_hit_package "cg"
ov_hit_package "ogre"
ov_hit_package "cegui"
echo " Installing native packages on background... done."
# mkdir "$ov_target_folder_lib/OGRE" 2> /dev/null
# rm "$ov_target_folder_lib/OGRE/Plugins.cfg" 2> /dev/null
# echo "# Define plugin folder" >> "$ov_target_folder_lib/OGRE/Plugins.cfg"
# echo "PluginFolder=/usr/lib/OGRE" >> "$ov_target_folder_lib/OGRE/Plugins.cfg"
# echo "" >> "$ov_target_folder_lib/OGRE/Plugins.cfg"
# echo "# Define plugins" >> "$ov_target_folder_lib/OGRE/Plugins.cfg"
# echo "Plugin=RenderSystem_GL" >> "$ov_target_folder_lib/OGRE/Plugins.cfg"
# echo "Plugin=Plugin_ParticleFX" >> "$ov_target_folder_lib/OGRE/Plugins.cfg"
# echo "Plugin=Plugin_BSPSceneManager" >> "$ov_target_folder_lib/OGRE/Plugins.cfg"
# echo "Plugin=Plugin_OctreeSceneManager" >> "$ov_target_folder_lib/OGRE/Plugins.cfg"
# echo "#Plugin=Plugin_CgProgramManager" >> "$ov_target_folder_lib/OGRE/Plugins.cfg"
else
ov_hit_package "no-native-packages"
fi;
fi;
echo ""
......@@ -777,95 +499,13 @@ echo ""
ov_machine=`$ov_uname -m`
####################################
## ##
## installation script excution ##
## ##
####################################
if [[ $ov_native_package_installed == false ]]; then
#####################################
## ##
## installation script execution ##
## ##
#####################################
echo "Checking gl/glu/glx dev files..."
echo "
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glx.h>
int main(int argc, char** argv)
{
return 0;
}" > test_gl.cpp
$ov_gcc -c test_gl.cpp -o test_gl.o 2>/dev/null
ov_has_gl=$?
rm test_gl.cpp 2>/dev/null
rm test_gl.o 2>/dev/null
if [[ $ov_has_gl -eq 0 ]]; then
echo ""
echo " Looks like you already have gl/glu/glx dev files... that would be great."
echo " Or you installed the mesa software rendering version thanks to this script... that would simply be ok :)"
echo ""
else
echo ""
echoerr "error: Looks like you don't have gl/glu/glx dev files installed."
echo " I recommand you use your distro package system to install it and get them for your video card."
echo " Alternatively, I could build software rendering version of mesa for you but you won't have 3D acceleration."
echo ""
echo " If you want to install gl/glu/glx dev files for your distro outside of this script, press CTRL+C now."
echo " After you actually installed them, you will be able to continue the dependencies installation by relaunching this script."
echo ""
echo " If you want to install software rendering version of mesa within this script, answer 'continue'"
echo ""
echo -n " What is your choice (break) ? "
read ov_answer
if [[ $ov_answer == "continue" ]]; then
echo ""
echo " All right, you won't have 3D acceleration, and you've been warned !"
echo ""
else
echo ""
echo " You did not answer 'continue'."
echo " You did the right choice, see you soon."
exit
fi;
fi;
fi;
##############################################
## ##
## interesting variables for each package ##
## ##
##############################################
#
# ov_package_url_[packagename]=
# ov_package_archive_[packagename]=
#
# ov_package_additional_configure_flags_[packagename]=
#
# ov_package_download_hook_[packagename]=
# ov_package_pre_download_hook_[packagename]=
# ov_package_post_download_hook_[packagename]=
#
# ov_package_checkout_hook_[packagename]=
# ov_package_pre_checkout_hook_[packagename]=
# ov_package_post_checkout_hook_[packagename]=
#
# ov_package_uncompress_hook_[packagename]=
# ov_package_pre_uncompress_hook_[packagename]=
# ov_package_post_uncompress_hook_[packagename]=
#
# ov_package_configure_hook_[packagename]=
# ov_package_pre_configure_hook_[packagename]=
# ov_package_post_configure_hook_[packagename]=
#
# ov_package_make_hook_[packagename]=
# ov_package_pre_make_hook_[packagename]=
# ov_package_post_make_hook_[packagename]=
#
# ov_package_install_hook_[packagename]=
# ov_package_pre_install_hook_[packagename]=
# ov_package_post_install_hook_[packagename]=
#
##############################################
## ##
## initializes some environment variables ##
......@@ -873,93 +513,16 @@ fi;
## ##
##############################################
# package management related packages
ov_package_url_pkgconfig=http://pkgconfig.freedesktop.org/releases/pkg-config-0.22.tar.gz
# base libraries
# http://sourceforge.net/projects
ov_package_url_boost=$ov_sourceforge_mirror/boost/files/boost/1.49.0/boost_1_49_0.tar.bz2
ov_package_url_expat=$ov_sourceforge_mirror/expat/files/expat/2.0.0/expat-2.0.0.tar.gz
ov_package_url_libxml=ftp://xmlsoft.org/libxml2/old/libxml2-sources-2.6.31.tar.gz
ov_package_url_gettext=$ov_gnu_mirror/gettext/gettext-0.16.1.tar.gz
ov_package_url_pthreadstubs=$ov_freedesktop_mirror/releases/individual/lib/libpthread-stubs-0.1.tar.bz2
ov_package_url_zlib=$ov_sourceforge_mirror/libpng/files/zlib/1.2.3/zlib-1.2.3.tar.gz
ov_package_url_libpng=$ov_sourceforge_mirror/libpng/files/libpng12/1.2.44/libpng-1.2.44.tar.bz2
ov_package_url_freetype=$ov_sourceforge_mirror/freetype/files/freetype2/2.3.4/freetype-2.3.4.tar.bz2
ov_package_url_fontconfig=$ov_freedesktop_mirror/releases/X11R7.2/src/extras/fontconfig-2.4.2.tar.gz
ov_package_url_libtool=$ov_gnu_mirror/libtool/libtool-1.5.22.tar.gz
# base graphic libraries
ov_package_url_libxproto=$ov_freedesktop_mirror/releases/individual/proto/xproto-7.0.10.tar.bz2
ov_package_url_libxextproto=$ov_freedesktop_mirror/releases/individual/proto/xextproto-7.0.2.tar.bz2
ov_package_url_libxtrans=$ov_freedesktop_mirror/releases/individual/lib/xtrans-1.0.3.tar.bz2
ov_package_url_libxslt=$ov_gnome_mirror/sources/libxslt/1.1/libxslt-1.1.20.tar.bz2
ov_package_url_libxau=$ov_freedesktop_mirror/releases/individual/lib/libXau-1.0.3.tar.bz2
ov_package_url_libxcbproto=http://xcb.freedesktop.org/dist/xcb-proto-1.0.tar.bz2
ov_package_url_libxcb=http://xcb.freedesktop.org/dist/libxcb-1.0.tar.bz2
ov_package_url_libkbproto=$ov_freedesktop_mirror/releases/individual/proto/kbproto-1.0.3.tar.bz2
ov_package_url_libinputproto=$ov_freedesktop_mirror/releases/individual/proto/inputproto-1.4.tar.bz2
ov_package_url_libxdmcp=$ov_freedesktop_mirror/releases/individual/lib/libXdmcp-1.0.2.tar.bz2
ov_package_url_libx11=$ov_freedesktop_mirror/releases/individual/lib/libX11-1.1.1.tar.bz2
ov_package_url_libxext=$ov_freedesktop_mirror/releases/individual/lib/libXext-1.0.3.tar.bz2
ov_package_url_renderproto=$ov_freedesktop_mirror/releases/individual/proto/renderproto-0.9.2.tar.bz2
ov_package_url_libxdmcp=$ov_freedesktop_mirror/releases/individual/lib/libXdmcp-1.0.2.tar.bz2
ov_package_url_libxrender=$ov_freedesktop_mirror/archive/individual/lib/libXrender-0.9.2.tar.gz
ov_package_url_libice=$ov_freedesktop_mirror/releases/individual/lib/libICE-1.0.4.tar.bz2
ov_package_url_libsm=$ov_freedesktop_mirror/releases/individual/lib/libSM-1.0.3.tar.bz2
ov_package_url_libxt=$ov_freedesktop_mirror/releases/individual/lib/libXt-1.0.5.tar.bz2
ov_package_url_libxmu=$ov_freedesktop_mirror/releases/individual/lib/libXmu-1.0.4.tar.bz2
ov_package_url_libxpm=$ov_freedesktop_mirror/releases/individual/lib/libXpm-3.5.7.tar.bz2
ov_package_url_libxaw=$ov_freedesktop_mirror/releases/individual/lib/libXaw-1.0.4.tar.bz2
ov_package_url_libxf86vidmodeproto=$ov_freedesktop_mirror/releases/individual/proto/xf86vidmodeproto-2.2.2.tar.bz2
ov_package_url_libXxf86vm=$ov_freedesktop_mirror/releases/individual/lib/libXxf86vm-1.0.1.tar.bz2
ov_package_url_librandrproto=$ov_freedesktop_mirror/releases/individual/proto/randrproto-1.2.1.tar.bz2
ov_package_url_libXrandr=$ov_freedesktop_mirror/releases/individual/lib/libXrandr-1.2.2.tar.bz2
ov_package_url_mesa=$ov_sourceforge_mirror/mesa3d/files/MesaLib/7.2/MesaLib-7.2.tar.bz2
# GTK+ related packages
ov_package_url_glib=$ov_gnome_mirror/sources/glib/2.17/glib-2.17.3.tar.bz2
ov_package_url_pixman=http://www.cairographics.org/releases/pixman-0.11.6.tar.gz
ov_package_url_cairo=http://cairographics.org/releases/cairo-1.6.4.tar.gz
ov_package_url_pango=$ov_gnome_mirror/sources/pango/1.21/pango-1.21.3.tar.bz2
ov_package_url_atk=$ov_gnome_mirror/sources/atk/1.22/atk-1.22.0.tar.bz2
ov_package_url_gtk=$ov_gnome_mirror/sources/gtk+/2.12/gtk+-2.12.11.tar.bz2
ov_package_url_clearlooks=$ov_sourceforge_mirror/clearlooks/files/clearlooks/clearlooks%200.6.2/clearlooks-0.6.2.tar.bz2
ov_package_url_libglade=$ov_gnome_mirror/sources/libglade/2.6/libglade-2.6.3.tar.bz2
ov_package_url_glade=$ov_gnome_mirror/sources/glade3/3.5/glade3-3.5.2.tar.bz2
# Computation and signal processing packages
ov_package_url_itpp_external=http://openvibe.inria.fr/dependencies/linux-x86/itpp-external-3.0.0.tar.bz2
ov_package_url_itpp=http://openvibe.inria.fr/dependencies/linux-x86/itpp-4.0.7.tar.bz2
ov_package_url_gsl=$ov_gnu_mirror/gsl/gsl-1.9.tar.gz
# Some GFX related packages
ov_package_url_cmake=http://www.cmake.org/files/v2.8/cmake-2.8.7.tar.gz
ov_package_url_freeimage=$ov_sourceforge_mirror/freeimage/files/Source%20Distribution/3.11.0/FreeImage3110.zip
ov_package_url_ois=$ov_sourceforge_mirror/wgois/files/Source%20Release/1.2/ois_1.2.0.tar.gz
ov_package_url_zziplib=$ov_sourceforge_mirror/zziplib/files/zziplib10/0.10.82/zziplib-0.10.82.tar.bz2
if [ "$ov_machine" == "x86_64" ]; then
ov_package_url_cg=http://developer.download.nvidia.com/cg/Cg_2.0/2.0.0012/Cg-2.0_Jan2008_x86_64.tar.gz
else
ov_package_url_cg=http://developer.download.nvidia.com/cg/Cg_2.0/2.0.0012/Cg-2.0_Jan2008_x86.tar.gz
fi;
ov_package_url_cegui=$ov_sourceforge_mirror/crayzedsgui/files/CEGUI%20Mk-2/0.7.1/CEGUI-0.7.1.tar.gz
ov_package_url_ogre=$ov_sourceforge_mirror/ogre/files/ogre/1.7/ogre_src_v1-7-3.tar.bz2
# ov_package_url_vrpn=ftp://ftp.cs.unc.edu/pub/packages/GRIP/vrpn/old_versions/vrpn_07_26.zip
ov_package_url_vrpn=http://openvibe.inria.fr/dependencies/linux-x86/vrpn_07_31-ov.zip
# LabStreamingLayer
ov_package_url_liblsl=http://openvibe.inria.fr/dependencies/linux-x86/liblsl-1.04-src.tar.bz2
# Scripting packages
ov_package_url_readline=$ov_gnu_mirror/readline/readline-5.2.tar.gz
ov_package_url_ncurses=$ov_gnu_mirror/ncurses/ncurses-5.7.tar.gz
ov_package_url_lua=http://www.lua.org/ftp/lua-5.1.4.tar.gz
ov_package_url_swig=http://prdownloads.sourceforge.net/swig/swig-1.3.36.tar.gz
ov_package_url_presage=$ov_sourceforge_mirror/presage/files/presage/0.8.9/presage-0.8.9.tar.gz
ov_package_url_glfw=http://openvibe.inria.fr/dependencies/linux-x86/glfw-3.0.4.zip
##############################################
## ##
## initializes some environment variables ##
......@@ -967,156 +530,22 @@ ov_package_url_glfw=http://openvibe.inria.fr/dependencies/linux-x86/glfw-3.0.4.z
## ##
##############################################
# package management related packages
ov_package_archive_pkgconfig=`echo "$ov_package_url_pkgconfig" | $ov_sed 's#.*/##g'`
# base libraries
ov_package_archive_boost=`echo "$ov_package_url_boost" | $ov_sed 's#.*/##g'`
ov_package_archive_expat=`echo "$ov_package_url_expat" | $ov_sed 's#.*/##g'`
ov_package_archive_libxml=`echo "$ov_package_url_libxml" | $ov_sed 's#.*/##g'`
ov_package_archive_gettext=`echo "$ov_package_url_gettext" | $ov_sed 's#.*/##g'`
ov_package_archive_pthreadstubs=`echo "$ov_package_url_pthreadstubs" | $ov_sed 's#.*/##g'`
ov_package_archive_zlib=`echo "$ov_package_url_zlib" | $ov_sed 's#.*/##g'`
ov_package_archive_libpng=`echo "$ov_package_url_libpng" | $ov_sed 's#.*/##g'`
ov_package_archive_freetype=`echo "$ov_package_url_freetype" | $ov_sed 's#.*/##g'`
ov_package_archive_fontconfig=`echo "$ov_package_url_fontconfig" | $ov_sed 's#.*/##g'`
ov_package_archive_libtool=`echo "$ov_package_url_libtool" | $ov_sed 's#.*/##g'`
# base graphic libraries
ov_package_archive_libxproto=`echo "$ov_package_url_libxproto" | $ov_sed 's#.*/##g'`
ov_package_archive_libxextproto=`echo "$ov_package_url_libxextproto" | $ov_sed 's#.*/##g'`
ov_package_archive_libxtrans=`echo "$ov_package_url_libxtrans" | $ov_sed 's#.*/##g'`
ov_package_archive_libxslt=`echo "$ov_package_url_libxslt" | $ov_sed 's#.*/##g'`
ov_package_archive_libxau=`echo "$ov_package_url_libxau" | $ov_sed 's#.*/##g'`
ov_package_archive_libxcbproto=`echo "$ov_package_url_libxcbproto" | $ov_sed 's#.*/##g'`
ov_package_archive_libxcb=`echo "$ov_package_url_libxcb" | $ov_sed 's#.*/##g'`
ov_package_archive_libkbproto=`echo "$ov_package_url_libkbproto" | $ov_sed 's#.*/##g'`
ov_package_archive_libinputproto=`echo "$ov_package_url_libinputproto" | $ov_sed 's#.*/##g'`
ov_package_archive_libxdmcp=`echo "$ov_package_url_libxdmcp" | $ov_sed 's#.*/##g'`
ov_package_archive_libx11=`echo "$ov_package_url_libx11" | $ov_sed 's#.*/##g'`
ov_package_archive_libxext=`echo "$ov_package_url_libxext" | $ov_sed 's#.*/##g'`
ov_package_archive_renderproto=`echo "$ov_package_url_renderproto" | $ov_sed 's#.*/##g'`
ov_package_archive_libxdmcp=`echo "$ov_package_url_libxdmcp" | $ov_sed 's#.*/##g'`
ov_package_archive_libxrender=`echo "$ov_package_url_libxrender" | $ov_sed 's#.*/##g'`
ov_package_archive_libice=`echo "$ov_package_url_libice" | $ov_sed 's#.*/##g'`
ov_package_archive_libsm=`echo "$ov_package_url_libsm" | $ov_sed 's#.*/##g'`
ov_package_archive_libxt=`echo "$ov_package_url_libxt" | $ov_sed 's#.*/##g'`
ov_package_archive_libxmu=`echo "$ov_package_url_libxmu" | $ov_sed 's#.*/##g'`
ov_package_archive_libxpm=`echo "$ov_package_url_libxpm" | $ov_sed 's#.*/##g'`
ov_package_archive_libxaw=`echo "$ov_package_url_libxaw" | $ov_sed 's#.*/##g'`
ov_package_archive_libxf86vidmodeproto=`echo "$ov_package_url_libxf86vidmodeproto" | $ov_sed 's#.*/##g'`
ov_package_archive_libXxf86vm=`echo "$ov_package_url_libXxf86vm" | $ov_sed 's#.*/##g'`
ov_package_archive_librandrproto=`echo "$ov_package_url_librandrproto" | $ov_sed 's#.*/##g'`
ov_package_archive_libXrandr=`echo "$ov_package_url_libXrandr" | $ov_sed 's#.*/##g'`
ov_package_archive_mesa=`echo "$ov_package_url_mesa" | $ov_sed 's#.*/##g'`
# GTK+ related packages
ov_package_archive_glib=`echo "$ov_package_url_glib" | $ov_sed 's#.*/##g'`
ov_package_archive_pixman=`echo "$ov_package_url_pixman" | $ov_sed 's#.*/##g'`
ov_package_archive_cairo=`echo "$ov_package_url_cairo" | $ov_sed 's#.*/##g'`
ov_package_archive_pango=`echo "$ov_package_url_pango" | $ov_sed 's#.*/##g'`
ov_package_archive_atk=`echo "$ov_package_url_atk" | $ov_sed 's#.*/##g'`
ov_package_archive_gtk=`echo "$ov_package_url_gtk" | $ov_sed 's#.*/##g'`
ov_package_archive_clearlooks=`echo "$ov_package_url_clearlooks" | $ov_sed 's#.*/##g'`
ov_package_archive_libglade=`echo "$ov_package_url_libglade" | $ov_sed 's#.*/##g'`
ov_package_archive_glade=`echo "$ov_package_url_glade" | $ov_sed 's#.*/##g'`
# Computation and signal processing packages
ov_package_archive_itpp_external=`echo "$ov_package_url_itpp_external" | $ov_sed 's#.*/##g'`
ov_package_archive_itpp=`echo "$ov_package_url_itpp" | $ov_sed 's#.*/##g'`
ov_package_archive_gsl=`echo "$ov_package_url_gsl" | $ov_sed 's#.*/##g'`
# GFX related packages
ov_package_archive_cmake=`echo "$ov_package_url_cmake" | $ov_sed 's#.*/##g'`
ov_package_archive_freeimage=`echo "$ov_package_url_freeimage" | $ov_sed 's#.*/##g'`
ov_package_archive_ois=`echo "$ov_package_url_ois" | $ov_sed 's#.*/##g'`
ov_package_archive_zziplib=`echo "$ov_package_url_zziplib" git repo-config core.sharedRepository true| $ov_sed 's#.*/##g'`
ov_package_archive_cg=`echo "$ov_package_url_cg" | $ov_sed 's#.*/##g'`
ov_package_archive_cegui=`echo "$ov_package_url_cegui" | $ov_sed 's#.*/##g'`
ov_package_archive_ogre=`echo "$ov_package_url_ogre" | $ov_sed 's#.*/##g'`
ov_package_archive_vrpn=`echo "$ov_package_url_vrpn" | $ov_sed 's#.*/##g'`
# LabStreamingLayer
ov_package_archive_liblsl=`echo "$ov_package_url_liblsl" | $ov_sed 's#.*/##g'`
# Scripting packages
ov_package_archive_readline=`echo "$ov_package_url_readline" | $ov_sed 's#.*/##g'`
ov_package_archive_ncurses=`echo "$ov_package_url_ncurses" | $ov_sed 's#.*/##g'`
ov_package_archive_lua=`echo "$ov_package_url_lua" | $ov_sed 's#.*/##g'`
ov_package_archive_swig=`echo "$ov_package_url_swig" | $ov_sed 's#.*/##g'`
#Presage
ov_package_archive_presage=`echo "$ov_package_url_presage" | $ov_sed 's#.*/##g'`
ov_package_archive_glfw=`echo "$ov_package_url_glfw" | $ov_sed 's#.*/##g'`