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
2023-10-09 22:35:50 +00:00
$(package)_version=1.6.0
2022-12-23 15:43:34 +00:00
$(package)_download_path=https://xkbcommon.org/download/
$(package)_file_name=libxkbcommon-$($(package)_version).tar.xz
2023-10-09 22:35:50 +00:00
$(package)_sha256_hash=0edc14eccdd391514458bc5f5a4b99863ed2d651e4dd761a90abf4f46ef99c2b
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