-
Notifications
You must be signed in to change notification settings - Fork 50
/
prepare.sh
executable file
·71 lines (47 loc) · 1.78 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/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 automake libtool-bin
# 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 llvm.
sudo apt-get install -y software-properties-common
# Needed by hostpython.
sudo apt-get install -y libssl-dev libbz2-dev liblzma-dev
# Needed by brotli.
sudo apt-get install -y bc
# 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
# Needed for meson and cmake
sudo apt-get install -y ninja-build
# 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 \
libharfbuzz-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
# Darwin clang_rt is needed to prevent undefined symbol: __isPlatformVersionAtLeast
sudo tar xzf "$BASE/prebuilt/clang_rt.tar.gz" -C /usr/lib/clang/15/lib/
# 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