mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 07:11:29 +02:00
Target wayland (-Dscanner=false) resolves the host scanner via dependency(..., native: true), which uses meson's BUILD-machine pkg-config — not pointed at build_prefix. Add PKG_CONFIG_PATH_FOR_BUILD=build_prefix + a [binaries] wayland-scanner in the cross-file. Fixes 'Dependency wayland-scanner not found' on aarch64/riscv64.
32 lines
1.3 KiB
Makefile
32 lines
1.3 KiB
Makefile
package=wayland
|
|
$(package)_version=1.25.0
|
|
$(package)_download_path := https://gitlab.freedesktop.org/wayland/wayland/-/archive/$($(package)_version)/
|
|
$(package)_file_name := wayland-$($(package)_version).tar.gz
|
|
$(package)_sha256_hash := 95413723f6cd0462770eda207a1c78d142d0a1bba9b0572a4ed1da6a9b27059c
|
|
$(package)_dependencies=native_wayland libffi expat
|
|
$(package)_patches = toolchain.txt
|
|
|
|
define $(package)_preprocess_cmds
|
|
cp $($(package)_patch_dir)/toolchain.txt toolchain.txt && \
|
|
sed -i -e 's|@host_prefix@|$(host_prefix)|' \
|
|
-e 's|@build_prefix@|$(build_prefix)|' \
|
|
-e 's|@cc@|$($(package)_cc)|' \
|
|
-e 's|@cxx@|$($(package)_cxx)|' \
|
|
-e 's|@ar@|$($(package)_ar)|' \
|
|
-e 's|@strip@|$(host_STRIP)|' \
|
|
-e 's|@arch@|$(host_arch)|' \
|
|
toolchain.txt
|
|
endef
|
|
|
|
define $(package)_config_cmds
|
|
PKG_CONFIG_LIBDIR="$(host_prefix)/lib/pkgconfig:$(build_prefix)/lib/pkgconfig" PKG_CONFIG_PATH="$(build_prefix)/lib/pkgconfig" PKG_CONFIG_PATH_FOR_BUILD="$(build_prefix)/lib/pkgconfig" meson setup --cross-file toolchain.txt build -Ddtd_validation=false -Ddocumentation=false -Dprefer_static=true -Ddefault_library=static -Dtests=false -Dscanner=false
|
|
endef
|
|
|
|
define $(package)_build_cmds
|
|
ninja -C build
|
|
endef
|
|
|
|
define $(package)_stage_cmds
|
|
DESTDIR=$($(package)_staging_dir) ninja -C build install
|
|
endef
|