#TODO: Requires a narrow Redox delta for native scanner discovery during # cross-builds and a userspace eventfd fallback because relibc lacks sys/eventfd.h. # redox.patch keeps only the active scanner/eventfd compatibility surface. [source] tar = "https://gitlab.freedesktop.org/wayland/wayland/-/releases/1.24.0/downloads/wayland-1.24.0.tar.xz" patches = ["redox.patch"] [build] template = "custom" dependencies = [ "relibc", "libffi", "expat", "libxml2", ] script = """ COOKBOOK_CONFIGURE_FLAGS=( --host="${GNU_TARGET}" --prefix="/usr" --disable-shared --enable-static ) COOKBOOK_MESON_FLAGS=( --buildtype release --wrap-mode nofallback -Ddefault_library=static -Dprefix=/usr ) cookbook_meson \ -Ddocumentation=false \ -Dtests=false \ -Ddtd_validation=false \ -Dscanner=false \ -Dc_args="['-I${COOKBOOK_SYSROOT}/include','-Wno-error']" for pc in "${COOKBOOK_STAGE}/usr/lib/pkgconfig/wayland-client.pc" "${COOKBOOK_STAGE}/usr/lib/pkgconfig/wayland-server.pc"; do if [ -f "$pc" ]; then sed -i 's/^Libs: /Libs: -lffi /' "$pc" fi done """ [package] dependencies = ["libffi"]