ladybird/Ports/glib/package.sh
2024-02-07 15:04:21 +01:00

37 lines
753 B
Bash
Executable File

#!/usr/bin/env -S bash ../.port_include.sh
port='glib'
version='2.79.1'
files=(
"https://download.gnome.org/sources/glib/2.79/glib-${version}.tar.xz#b3764dd6e29b664085921dd4dd6ba2430fc19760ab6857ecfa3ebd4e8c1d114c"
)
useconfigure='true'
configopts=(
'--cross-file'
"${SERENITY_BUILD_DIR}/meson-cross-file.txt"
)
depends=(
'gettext'
'libffi'
'libiconv'
'pcre2'
'zlib'
)
configure() {
# TODO: Figure out why GCC doesn't autodetect that libgcc_s is needed.
if [ "${SERENITY_TOOLCHAIN}" = 'GNU' ]; then
export LDFLAGS='-lgcc_s'
fi
run meson _build "${configopts[@]}"
}
build() {
run ninja -C _build
}
install() {
export DESTDIR="${SERENITY_INSTALL_ROOT}"
run meson install -C _build
}