mirror of
https://github.com/RGBCube/serenity
synced 2025-07-29 10:37:34 +00:00
Ports: Port wayland-client
This commit is contained in:
parent
3440292e73
commit
3481e44d01
8 changed files with 305 additions and 0 deletions
36
Ports/wayland/package.sh
Executable file
36
Ports/wayland/package.sh
Executable file
|
@ -0,0 +1,36 @@
|
|||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
port='wayland'
|
||||
version='1.21.0'
|
||||
useconfigure='true'
|
||||
configopts=(
|
||||
"--buildtype=release"
|
||||
"--cross-file=${SERENITY_BUILD_DIR}/meson-cross-file.txt"
|
||||
"-Dlibraries=true"
|
||||
"-Dscanner=true"
|
||||
"-Dtests=false"
|
||||
"-Ddocumentation=false"
|
||||
)
|
||||
depends=(
|
||||
'expat'
|
||||
'libxml2'
|
||||
)
|
||||
files="https://gitlab.freedesktop.org/wayland/wayland/-/releases/${version}/downloads/wayland-${version}.tar.xz wayland-${version}.tar.xz 6dc64d7fc16837a693a51cfdb2e568db538bfdc9f457d4656285bb9594ef11ac"
|
||||
auth_type='sha256'
|
||||
|
||||
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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue