forked from renpy/renpy-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprepare.sh
executable file
·57 lines (38 loc) · 1.42 KB
/
prepare.sh
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
set -e
ROOT=$(cd $(dirname $0); pwd)
REFS=$ROOT
BASE="$ROOT"
# Needed to build things.
sudo apt-get install -y git build-essential ccache unzip autoconf autoconf-archive gcc-9 g++-9
# Needed to build python things.
sudo apt-get install -y python2-dev python3-dev python3-venv
# Needed to install python2 pip
sudo apt-get install -y curl
# Needed by renpy-build itself.
sudo apt-get install -y python3-jinja2
# Needed by sysroot.
sudo apt-get install -y debootstrap qemu-user-static
# Needed by gcc.
sudo apt-get install -y libgmp-dev libmpfr-dev libmpc-dev
# Needed by hostpython.
sudo apt-get install -y libssl-dev libbz2-dev liblzma-dev
# Needed for mac
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y cmake clang libxml2-dev llvm
# Needed for web
sudo apt-get install -y quilt
# Install the standard set of packages needed to build Ren'Py.
sudo apt-get install -y \
libavcodec-dev libavformat-dev \
libswresample-dev libswscale-dev libfreetype6-dev libfribidi-dev libsdl2-dev \
libsdl2-image-dev libsdl2-gfx-dev libsdl2-mixer-dev libsdl2-ttf-dev libjpeg-dev
mkdir -p $ROOT/tmp
# Clang is needed to compile for many platforms.
wget -O tmp/llvm.sh https://apt.llvm.org/llvm.sh
chmod +x tmp/llvm.sh
sudo tmp/llvm.sh 15
# Install the programs and virtualenvs.
VENV="$ROOT/tmp/virtualenv.py3"
export RENPY_DEPS_INSTALL=/usr::/usr/lib/x86_64-linux-gnu/
. $BASE/nightly/git.sh
. $BASE/nightly/python.sh