fix installdeps for Ubuntu

Read names of sfml libs from apt-cache, because version suffixes differ
between Ubuntu releases.
This commit is contained in:
Rafael Kitover 2018-07-10 11:10:25 +00:00
parent 3f903cf0e4
commit cc43db35af
1 changed files with 4 additions and 1 deletions

View File

@ -278,7 +278,10 @@ debian_installdeps() {
if [ -z "$target" ]; then
sudo apt-get -qq update
check sudo apt-get -qy install build-essential g++ nasm cmake gettext zlib1g-dev libgl1-mesa-dev libavcodec-dev libavformat-dev libswscale-dev libavutil-dev libgettextpo-dev libpng-dev libsdl2-dev libsdl2-2.0 libglu1-mesa-dev libglu1-mesa libgles2-mesa-dev libsfml-dev libsfml-graphics2 libglew1.10 libsfml-window2 libsfml-network2 libopenal-dev libwxgtk3.0-dev libwxgtk3.0 libgtk2.0-dev libgtk-3-dev ccache
sfml_libs=$(apt-cache search libsfml | grep -E 'graphics|window|network' | sed 's/ - .*//')
check sudo apt-get -qy install build-essential g++ nasm cmake gettext zlib1g-dev libgl1-mesa-dev libavcodec-dev libavformat-dev libswscale-dev libavutil-dev libgettextpo-dev libpng-dev libsdl2-dev libsdl2-2.0 libglu1-mesa-dev libglu1-mesa libgles2-mesa-dev libsfml-dev $sfml_libs libglew1.10 libopenal-dev libwxgtk3.0-dev libwxgtk3.0 libgtk2.0-dev libgtk-3-dev ccache
else
case "$target" in
mingw-w64-i686)