Debian Codegraph @

ci/build-dependencies.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2 # The following is to disable "info" warnings for the unquoted instandes of $MESON_FLAGS
3 # in the meson invocations below. We want the shell to actually split $MESON_FLAGS by spaces.
4 # shellcheck disable=SC2086
5 #
6 # IMPORTANT: See
7 # https://gnome.pages.gitlab.gnome.org/librsvg/devel-docs/ci.html#container-image-version
8
9 set -o errexit -o pipefail -o noclobber -o nounset
10
11 # See the versions here:
12 # https://gitlab.gnome.org/GNOME/gnome-build-meta/-/tree/gnome-47/elements/sdk (or later versions)
13 # https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/tree/master/elements/components
14
15 FREETYPE2_TAG="VER-2-13-3"
16 FONTCONFIG_TAG="2.17.1"
17 CAIRO_TAG="1.18.4"
18 HARFBUZZ_TAG="12.3.2"
19 PANGO_TAG="1.57.0"
20 LIBXML2_TAG="v2.15.1"
21 GDK_PIXBUF_TAG="2.44.5"
22
23 PARSED=$(getoptscip-shell system . . getopt. --options '' --longoptions 'prefix:,meson-flags:' --name "$0" -- "$@")
24 eval set -- "$PARSED"
25 unset PARSED
26
27 PREFIX=
28 MESON_FLAGS=
29
30 while truescip-shell system . . true.; do
31 case "$1" in
32 '--prefix')
33 PREFIX=$2
34 shift 2
35 ;;
36
37 '--meson-flags')
38 MESON_FLAGS=$2
39 shift 2
40 ;;
41
42 '--')
43 shift
44 break
45 ;;
46
47 *)
48 echoscip-shell system . . echo. "Programming error"
49 exit 3
50 ;;
51 esac
52 done
53
54 if [scip-shell system . . `[`. -z "$PREFIX" ]; then
55 echoscip-shell system . . echo. "please specify a --prefix"
56 exit 1
57 fi
58
59 # The following assumes that $PREFIX has been set
60 source ci/setup-dependencies-env.shscip-shell source . . `ci/setup-dependencies-env.sh`.
61
62 cd ..
63 gitscip-shell system . . git. clone --depth 1 --branch $FREETYPE2_TAG https://gitlab.freedesktop.org/freetype/freetype
64 cd freetype
65 mesonscip-shell system . . meson. setup _build --prefix "$PREFIX" -Dharfbuzz=disabled $MESON_FLAGS
66 mesonscip-shell system . . meson. compile -C _build
67 mesonscip-shell system . . meson. install -C _build
68
69 cd ..
70 gitscip-shell system . . git. clone --depth 1 --branch $FONTCONFIG_TAG https://gitlab.freedesktop.org/fontconfig/fontconfig
71 cd fontconfig
72 mesonscip-shell system . . meson. setup _build --prefix "$PREFIX" $MESON_FLAGS
73 mesonscip-shell system . . meson. compile -C _build
74 mesonscip-shell system . . meson. install -C _build
75
76 cd ..
77 gitscip-shell system . . git. clone --depth 1 --branch $CAIRO_TAG https://gitlab.freedesktop.org/cairo/cairo
78 cd cairo
79 mesonscip-shell system . . meson. setup _build --prefix "$PREFIX" $MESON_FLAGS
80 mesonscip-shell system . . meson. compile -C _build
81 mesonscip-shell system . . meson. install -C _build
82
83 cd ..
84 gitscip-shell system . . git. clone --depth 1 --branch $HARFBUZZ_TAG https://github.com/harfbuzz/harfbuzz
85 cd harfbuzz
86 mesonscip-shell system . . meson. setup _build --prefix "$PREFIX" $MESON_FLAGS
87 mesonscip-shell system . . meson. compile -C _build
88 mesonscip-shell system . . meson. install -C _build
89
90 cd ..
91 gitscip-shell system . . git. clone --depth 1 --branch $PANGO_TAG https://gitlab.gnome.org/GNOME/pango
92 cd pango
93 mesonscip-shell system . . meson. setup _build --prefix "$PREFIX" $MESON_FLAGS
94 mesonscip-shell system . . meson. compile -C _build
95 mesonscip-shell system . . meson. install -C _build
96
97 cd ..
98 gitscip-shell system . . git. clone --depth 1 --branch $LIBXML2_TAG https://gitlab.gnome.org/GNOME/libxml2
99 cd libxml2
100 mkdirscip-shell system . . mkdir. _build
101 cd _build
102 ../autogen.sh --prefix "$PREFIX" --libdir "$PREFIX"/lib64 --without-python
103 makescip-shell system . . make.
104 makescip-shell system . . make. install
105
106 cd ..
107 gitscip-shell system . . git. clone --depth 1 --branch $GDK_PIXBUF_TAG https://gitlab.gnome.org/GNOME/gdk-pixbuf
108 cd gdk-pixbuf
109 mesonscip-shell system . . meson. setup _build --prefix "$PREFIX" -Dman=false -Dglycin=disabled $MESON_FLAGS
110 mesonscip-shell system . . meson. compile -C _build
111 mesonscip-shell system . . meson. install -C _build