mirror of
https://github.com/RGBCube/serenity
synced 2025-07-15 03:27:35 +00:00
26 lines
758 B
Bash
Executable file
26 lines
758 B
Bash
Executable file
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port='glib'
|
|
version='2.73.0'
|
|
files="https://gitlab.gnome.org/GNOME/glib/-/archive/${version}/glib-${version}.tar.gz glib-${version}.tar.gz 3f573319adbdf572d79255e8bae85c7e2902d1aa6177d2646605a00c0a607eca"
|
|
auth_type='sha256'
|
|
useconfigure='true'
|
|
configopts=("--cross-file" "../cross_file-${SERENITY_ARCH}.txt")
|
|
depends=("libiconv" "libffi" "zlib" "gettext" "pcre")
|
|
|
|
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
|
|
}
|