2016-11-05 21:20:46 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-02-11 06:14:56 +02:00
|
|
|
# Install nsis for installer creation
|
|
|
|
sudo apt-get install -qq nsis ninja-build
|
|
|
|
|
|
|
|
# MXE repository was too slow for Travis far too often
|
|
|
|
wget https://github.com/vcmi/vcmi-deps-mxe/releases/download/2018-02-10/mxe-$MXE_TARGET-2018-02-10.tar
|
|
|
|
tar -xvf mxe-$MXE_TARGET-2018-02-10.tar
|
|
|
|
sudo dpkg -i mxe-*.deb
|
|
|
|
sudo apt-get install -f --yes
|
|
|
|
|
|
|
|
if false; then
|
2016-11-05 21:20:46 +02:00
|
|
|
# Add MXE repository and key
|
|
|
|
echo "deb http://pkg.mxe.cc/repos/apt/debian wheezy main" \
|
|
|
|
| sudo tee /etc/apt/sources.list.d/mxeapt.list
|
|
|
|
|
|
|
|
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D43A795B73B16ABE9643FE1AFD8FFF16DB45C6AB
|
|
|
|
|
|
|
|
# Install needed packages
|
|
|
|
sudo apt-get update -qq
|
|
|
|
|
2017-08-13 21:22:57 +02:00
|
|
|
sudo apt-get install -q --yes \
|
2016-11-05 21:20:46 +02:00
|
|
|
mxe-$MXE_TARGET-gcc \
|
|
|
|
mxe-$MXE_TARGET-boost \
|
|
|
|
mxe-$MXE_TARGET-zlib \
|
|
|
|
mxe-$MXE_TARGET-sdl2 \
|
|
|
|
mxe-$MXE_TARGET-sdl2-gfx \
|
|
|
|
mxe-$MXE_TARGET-sdl2-image \
|
|
|
|
mxe-$MXE_TARGET-sdl2-mixer \
|
|
|
|
mxe-$MXE_TARGET-sdl2-ttf \
|
|
|
|
mxe-$MXE_TARGET-ffmpeg \
|
|
|
|
mxe-$MXE_TARGET-qt \
|
|
|
|
mxe-$MXE_TARGET-qtbase
|
|
|
|
|
2018-02-11 06:14:56 +02:00
|
|
|
fi # Disable
|
2017-06-12 17:17:10 +02:00
|
|
|
|
2016-11-05 21:20:46 +02:00
|
|
|
# alias for CMake
|
|
|
|
sudo mv /usr/bin/cmake /usr/bin/cmake.orig
|
|
|
|
sudo ln -s /usr/lib/mxe/usr/bin/$MXE_TARGET-cmake /usr/bin/cmake
|