File: install-linux-deps.sh

package info (click to toggle)
pysdl2 0.9.6+dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,204 kB
  • sloc: python: 16,109; makefile: 213; sh: 32
file content (40 lines) | stat: -rw-r--r-- 1,679 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
set -e

SDL_LIB=SDL2-2.0.6
SDLTTF_LIB=SDL2_ttf-2.0.14
SDLMIXER_LIB=SDL2_mixer-2.0.2
SDLIMAGE_LIB=SDL2_image-2.0.2
SDLGFX_LIB=SDL2_gfx-1.0.3


sudo apt-get -qq update
sudo apt-get install build-essential mercurial make cmake autoconf automake \
    libtool libasound2-dev libpulse-dev libaudio-dev libx11-dev libxext-dev \
    libxrandr-dev libxcursor-dev libxi-dev libxinerama-dev libxxf86vm-dev \
    libxss-dev libgl1-mesa-dev libesd0-dev libdbus-1-dev libudev-dev \
    libgles1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libibus-1.0-dev \
    fcitx-libs-dev libsamplerate0-dev libsndio-dev \
    libfreetype6-dev \
    libflac-dev libfluidsynth-dev libmikmod2-dev libogg-dev libvorbis-dev \
    libjpeg-dev libpng-dev libtiff4-dev libwebp-dev zlib1g-dev

wget https://www.libsdl.org/release/$SDL_LIB.tar.gz
tar xzf $SDL_LIB.tar.gz
cd $SDL_LIB && ./configure --prefix=/usr --disable-sndio && make && sudo make install && cd ..

wget https://www.libsdl.org/projects/SDL_mixer/release/$SDLMIXER_LIB.tar.gz
tar xzf $SDLMIXER_LIB.tar.gz
cd $SDLMIXER_LIB && ./configure --prefix=/usr && make && sudo make install && cd ..

wget https://www.libsdl.org/projects/SDL_image/release/$SDLIMAGE_LIB.tar.gz
tar xzf $SDLIMAGE_LIB.tar.gz
cd $SDLIMAGE_LIB && ./configure --prefix=/usr && make && sudo make install && cd ..

wget https://www.libsdl.org/projects/SDL_ttf/release/$SDLTTF_LIB.tar.gz
tar xzf $SDLTTF_LIB.tar.gz
cd $SDLTTF_LIB && ./configure --prefix=/usr && make && sudo make install && cd ..

wget http://www.ferzkopp.net/Software/SDL2_gfx/$SDLGFX_LIB.tar.gz
tar xzf $SDLGFX_LIB.tar.gz
cd $SDLGFX_LIB && ./configure --prefix=/usr && make && sudo make install && cd ..