1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-16 22:35:07 -05:00
minetest/util/travis/before_install.sh

33 lines
1.4 KiB
Bash
Raw Normal View History

2014-12-05 09:54:19 -05:00
#!/bin/bash -e
if [[ $CC == "clang" ]]; then
2014-12-05 09:54:19 -05:00
export PATH="/usr/bin/:$PATH"
sudo sh -c 'echo "deb http://ppa.launchpad.net/eudoxos/llvm-3.1/ubuntu precise main" >> /etc/apt/sources.list'
sudo apt-key adv --keyserver pool.sks-keyservers.net --recv-keys 92DE8183
sudo apt-get update
sudo apt-get install llvm-3.1
sudo apt-get install clang
fi
sudo apt-get install p7zip-full
if [[ $PLATFORM == "Linux" ]]; then
2014-12-05 09:54:19 -05:00
sudo apt-get install libirrlicht-dev cmake libbz2-dev libpng12-dev \
Replaced libjpeg dependency on apt-get, it should be libjpeg-dev instead of libjpeg8-dev. On Debian 8... ``` Package libjpeg8-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: libjpeg62-turbo-dev ``` Using libjpeg-dev should make the OS select the most appropriate lib to be installed. These are the packages available on Debian 8. ``` libjpeg-dev - Development files for the JPEG library [dummy package] libjpeg-turbo-progs - Programs for manipulating JPEG files libjpeg-turbo-progs-dbg - Programs for manipulating JPEG files (debugging symbols) libjpeg62-turbo - libjpeg-turbo JPEG runtime library libjpeg62-turbo-dbg - Debugging symbols for the libjpeg-turbo JPEG library libjpeg62-turbo-dev - Development files for the libjpeg-turbo JPEG library libturbojpeg1 - TurboJPEG runtime library - SIMD optimized libturbojpeg1-dbg - TurboJPEG runtime library - SIMD optimized (debugging symbols) libturbojpeg1-dev - Development files for the TurboJPEG library ``` This seems to work on all current Debian versions, Wheezy, Jessie and Sid. https://packages.debian.org/wheezy/libjpeg-dev https://packages.debian.org/jessie/libjpeg-dev https://packages.debian.org/stretch/libjpeg-dev Im not sure if Ubuntu has this dummy package. http://packages.ubuntu.com/search?keywords=libjpeg-dev Perhaps this should be further discussed. libjpeg8-dev -> libjpeg-dev
2015-05-02 17:06:54 -04:00
libjpeg-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev \
libhiredis-dev libogg-dev libgmp-dev libvorbis-dev libopenal-dev gettext
# Linking to LevelDB is broken, use a custom build
wget http://sfan5.pf-control.de/libleveldb-1.18-ubuntu12.04.7z
sudo 7z x -o/usr libleveldb-1.18-ubuntu12.04.7z
elif [[ $PLATFORM == "Win32" ]]; then
wget http://sfan5.pf-control.de/mingw_w64_i686_ubuntu12.04_4.9.1.7z -O mingw.7z
sed -e "s|%PREFIX%|i686-w64-mingw32|" \
-e "s|%ROOTPATH%|/usr/i686-w64-mingw32|" \
< util/travis/toolchain_mingw.cmake.in > util/buildbot/toolchain_mingw.cmake
sudo 7z x -y -o/usr mingw.7z
elif [[ $PLATFORM == "Win64" ]]; then
wget http://sfan5.pf-control.de/mingw_w64_x86_64_ubuntu12.04_4.9.1.7z -O mingw.7z
sed -e "s|%PREFIX%|x86_64-w64-mingw32|" \
-e "s|%ROOTPATH%|/usr/x86_64-w64-mingw32|" \
< util/travis/toolchain_mingw.cmake.in > util/buildbot/toolchain_mingw64.cmake
2014-12-05 09:54:19 -05:00
sudo 7z x -y -o/usr mingw.7z
fi