-
Notifications
You must be signed in to change notification settings - Fork 16
/
1_download_library.sh
executable file
·88 lines (65 loc) · 1.5 KB
/
1_download_library.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/bin/bash
# abort on errors
set -e
export WORKSPACE=$PWD
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $SCRIPT_DIR/../shared/import.sh
msg " [1] Checking devkitA64"
if [[ -z $DEVKITPRO || ! -d "$DEVKITPRO/devkitA64" ]]; then
echo "Setup devkitA64 properly. \$DEVKITPRO needs to be set."
exit 1
fi
msg " [2] Downloading generic libraries"
# zlib
rm -rf $ZLIB_DIR
download_and_extract $ZLIB_URL
# libpng
rm -rf $LIBPNG_DIR
download_and_extract $LIBPNG_URL
# freetype
rm -rf $FREETYPE_DIR
download_and_extract $FREETYPE_URL
# harfbuzz
rm -rf $HARFBUZZ_DIR
download_and_extract $HARFBUZZ_URL
# pixman
rm -rf $PIXMAN_DIR
download_and_extract $PIXMAN_URL
# expat
rm -rf $EXPAT_DIR
download_and_extract $EXPAT_URL
# libogg
rm -rf $LIBOGG_DIR
download_and_extract $LIBOGG_URL
# tremor
rm -rf $TREMOR_DIR
download $TREMOR_URL -O $TREMOR_FILE
extract $TREMOR_FILE
# mpg123
rm -rf $MPG123_DIR
download_and_extract $MPG123_URL
# libsndfile
rm -rf $LIBSNDFILE_DIR
download_and_extract $LIBSNDFILE_URL
# libxmp-lite
rm -rf $LIBXMP_LITE_DIR
download_and_extract $LIBXMP_LITE_URL
# libsamplerate
# speexdsp is not supported!
rm -rf $LIBSAMPLERATE_DIR
download_and_extract $LIBSAMPLERATE_URL
# wildmidi
rm -rf $WILDMIDI_DIR
download_and_extract $WILDMIDI_URL
# opus
rm -rf $OPUS_DIR
download_and_extract $OPUS_URL
# opusfile
rm -rf $OPUSFILE_DIR
download_and_extract $OPUSFILE_URL
# ICU
rm -rf $ICU_DIR
download_and_extract $ICU_URL
# icudata
rm -f $ICUDATA_FILES
download_and_extract $ICUDATA_URL