feather/contrib/depends/packages/libxkbcommon.mk

31 lines
1,001 B
Makefile
Raw Normal View History

2022-12-23 15:43:34 +00:00
package=libxkbcommon
2024-03-26 08:19:34 +00:00
$(package)_version=1.7.0
2022-12-23 15:43:34 +00:00
$(package)_download_path=https://xkbcommon.org/download/
$(package)_file_name=libxkbcommon-$($(package)_version).tar.xz
2024-03-26 08:19:34 +00:00
$(package)_sha256_hash=65782f0a10a4b455af9c6baab7040e2f537520caa2ec2092805cdfd36863b247
2022-12-23 15:43:34 +00:00
$(package)_dependencies=libxcb
2023-07-20 15:28:51 +00:00
$(package)_patches=no-test-x11.patch toolchain.txt
2022-12-23 15:43:34 +00:00
define $(package)_preprocess_cmds
2023-07-20 15:28:51 +00:00
patch -p1 < $($(package)_patch_dir)/no-test-x11.patch && \
cp $($(package)_patch_dir)/toolchain.txt toolchain.txt && \
sed -i -e 's|@host_prefix@|$(host_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
2022-12-23 15:43:34 +00:00
endef
define $(package)_config_cmds
2023-07-20 15:28:51 +00:00
meson setup --cross-file toolchain.txt build
2022-12-23 15:43:34 +00:00
endef
define $(package)_build_cmds
2023-07-20 15:28:51 +00:00
ninja -C build
2022-12-23 15:43:34 +00:00
endef
define $(package)_stage_cmds
2023-07-20 15:28:51 +00:00
DESTDIR=$($(package)_staging_dir) ninja -C build install
endef