Changeset View
Changeset View
Standalone View
Standalone View
build_files/build_environment/install_deps.sh
| Show First 20 Lines • Show All 806 Lines • ▼ Show 20 Lines | |||||
| #### Show Dependencies #### | #### Show Dependencies #### | ||||
| # Need those to be after we defined versions... | # Need those to be after we defined versions... | ||||
| DEPS_COMMON_INFO="\"COMMON DEPENDENCIES: | DEPS_COMMON_INFO="\"COMMON DEPENDENCIES: | ||||
| Those libraries should be available as packages in all recent distributions (optional ones are [between brackets]): | Those libraries should be available as packages in all recent distributions (optional ones are [between brackets]): | ||||
| * Basics of dev environment (cmake, gcc, svn , git, ...). | * Basics of dev environment (cmake, gcc, svn , git, ...). | ||||
| * libjpeg, libpng, libtiff, [libopenjpeg], [libopenal]. | * libjpeg, libpng, libtiff, [openjpeg2], [libopenal]. | ||||
| * libx11, libxcursor, libxi, libxrandr, libxinerama (and other libx... as needed). | * libx11, libxcursor, libxi, libxrandr, libxinerama (and other libx... as needed). | ||||
| * libsqlite3, libbz2, libssl, libfftw3, libxml2, libtinyxml, yasm, libyaml-cpp. | * libsqlite3, libbz2, libssl, libfftw3, libxml2, libtinyxml, yasm, libyaml-cpp. | ||||
| * libsdl1.2, libglew, [libglewmx].\"" | * libsdl1.2, libglew, [libglewmx].\"" | ||||
| DEPS_SPECIFIC_INFO="\"BUILDABLE DEPENDENCIES: | DEPS_SPECIFIC_INFO="\"BUILDABLE DEPENDENCIES: | ||||
| The following libraries will probably not all be available as packages in your distribution | The following libraries will probably not all be available as packages in your distribution | ||||
| (install_deps will by default try to install packages, and fall back to building missing ones). | (install_deps will by default try to install packages, and fall back to building missing ones). | ||||
| ▲ Show 20 Lines • Show All 1,796 Lines • ▼ Show 20 Lines | _packages="gawk cmake cmake-curses-gui build-essential libjpeg-dev libpng-dev libtiff-dev \ | ||||
| libsdl1.2-dev libfftw3-dev patch bzip2 libxml2-dev libtinyxml-dev libjemalloc-dev" | libsdl1.2-dev libfftw3-dev patch bzip2 libxml2-dev libtinyxml-dev libjemalloc-dev" | ||||
| # libglewmx-dev (broken in deb testing currently...) | # libglewmx-dev (broken in deb testing currently...) | ||||
| VORBIS_USE=true | VORBIS_USE=true | ||||
| OGG_USE=true | OGG_USE=true | ||||
| THEORA_USE=true | THEORA_USE=true | ||||
| PRINT "" | PRINT "" | ||||
| # New Ubuntu crap (17.04 and more) have no openjpeg lib! | # We need openjp2, libopenjpeg is an old version | ||||
| OPENJPEG_DEV="libopenjpeg-dev" | OPENJPEG_DEV="libopenjp2-7-dev" | ||||
| check_package_DEB $OPENJPEG_DEV | check_package_DEB $OPENJPEG_DEV | ||||
| if [ $? -eq 0 ]; then | if [ $? -eq 0 ]; then | ||||
| _packages="$_packages $OPENJPEG_DEV" | _packages="$_packages $OPENJPEG_DEV" | ||||
| OPENJPEG_USE=true | OPENJPEG_USE=true | ||||
| fi | fi | ||||
| PRINT "" | PRINT "" | ||||
| # Some not-so-old distro (ubuntu 12.4) do not have it, do not fail in this case, just warn. | # Some not-so-old distro (ubuntu 12.4) do not have it, do not fail in this case, just warn. | ||||
| ▲ Show 20 Lines • Show All 519 Lines • ▼ Show 20 Lines | elif [ "$RPM" = "SUSE" ]; then | ||||
| else | else | ||||
| INFO " Skipping packman installation." | INFO " Skipping packman installation." | ||||
| fi | fi | ||||
| $SUDO zypper --non-interactive --gpg-auto-import-keys update --auto-agree-with-licenses | $SUDO zypper --non-interactive --gpg-auto-import-keys update --auto-agree-with-licenses | ||||
| fi | fi | ||||
| fi | fi | ||||
| # These libs should always be available in fedora/suse official repository... | # These libs should always be available in fedora/suse official repository... | ||||
| OPENJPEG_DEV="openjpeg-devel" | OPENJPEG_DEV="openjpeg2-devel" | ||||
| VORBIS_DEV="libvorbis-devel" | VORBIS_DEV="libvorbis-devel" | ||||
| OGG_DEV="libogg-devel" | OGG_DEV="libogg-devel" | ||||
| THEORA_DEV="libtheora-devel" | THEORA_DEV="libtheora-devel" | ||||
| _packages="gcc gcc-c++ git make cmake tar bzip2 xz findutils flex bison \ | _packages="gcc gcc-c++ git make cmake tar bzip2 xz findutils flex bison \ | ||||
| libtiff-devel libjpeg-devel libpng-devel sqlite-devel fftw-devel SDL-devel \ | libtiff-devel libjpeg-devel libpng-devel sqlite-devel fftw-devel SDL-devel \ | ||||
| libX11-devel libXi-devel libXcursor-devel libXrandr-devel libXinerama-devel \ | libX11-devel libXi-devel libXcursor-devel libXrandr-devel libXinerama-devel \ | ||||
| wget ncurses-devel readline-devel $OPENJPEG_DEV openal-soft-devel \ | wget ncurses-devel readline-devel $OPENJPEG_DEV openal-soft-devel \ | ||||
| ▲ Show 20 Lines • Show All 453 Lines • ▼ Show 20 Lines | install_ARCH() { | ||||
| if [ ! $SUDO ]; then | if [ ! $SUDO ]; then | ||||
| WARNING "--no-sudo enabled, impossible to run pacman -Sy, you'll have to do it yourself..." | WARNING "--no-sudo enabled, impossible to run pacman -Sy, you'll have to do it yourself..." | ||||
| else | else | ||||
| $SUDO pacman -Sy | $SUDO pacman -Sy | ||||
| fi | fi | ||||
| # These libs should always be available in arch official repository... | # These libs should always be available in arch official repository... | ||||
| OPENJPEG_DEV="openjpeg" | OPENJPEG_DEV="openjpeg2" | ||||
| VORBIS_DEV="libvorbis" | VORBIS_DEV="libvorbis" | ||||
| OGG_DEV="libogg" | OGG_DEV="libogg" | ||||
| THEORA_DEV="libtheora" | THEORA_DEV="libtheora" | ||||
| BASE_DEVEL="base-devel" | BASE_DEVEL="base-devel" | ||||
| # Avoid conflicts when gcc-multilib is installed | # Avoid conflicts when gcc-multilib is installed | ||||
| pacman -Qi gcc-multilib &>/dev/null | pacman -Qi gcc-multilib &>/dev/null | ||||
| ▲ Show 20 Lines • Show All 745 Lines • Show Last 20 Lines | |||||