2021-08-11 20:37:44 +03:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
2022-06-03 16:40:33 +03:00
|
|
|
port='glib'
|
2023-04-15 22:13:12 +03:00
|
|
|
version='2.76.1'
|
|
|
|
files="https://download.gnome.org/sources/glib/2.76/glib-${version}.tar.xz glib-${version}.tar.xz 43dc0f6a126958f5b454136c4398eab420249c16171a769784486e25f2fda19f"
|
2022-06-03 16:40:33 +03:00
|
|
|
useconfigure='true'
|
2022-07-09 17:14:03 +03:00
|
|
|
configopts=("--cross-file" "${SERENITY_BUILD_DIR}/meson-cross-file.txt")
|
2021-11-06 06:57:41 +03:00
|
|
|
depends=("libiconv" "libffi" "zlib" "gettext" "pcre")
|
2021-08-11 20:37:44 +03:00
|
|
|
|
|
|
|
configure() {
|
2022-04-30 03:41:23 +03:00
|
|
|
# TODO: Figure out why GCC doesn't autodetect that libgcc_s is needed.
|
|
|
|
if [ "${SERENITY_TOOLCHAIN}" = "GNU" ]; then
|
|
|
|
export LDFLAGS="-lgcc_s"
|
|
|
|
fi
|
|
|
|
|
2021-09-27 01:16:18 +03:00
|
|
|
run meson _build "${configopts[@]}"
|
2021-08-11 20:37:44 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
run ninja -C _build
|
|
|
|
}
|
|
|
|
|
|
|
|
install() {
|
2022-06-10 15:55:10 +03:00
|
|
|
export DESTDIR="${SERENITY_INSTALL_ROOT}"
|
2021-09-19 12:39:56 +03:00
|
|
|
run meson install -C _build
|
2021-08-11 20:37:44 +03:00
|
|
|
}
|