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-07-20 15:28:51 +00:00
$(package)_version=1.5.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-07-20 15:28:51 +00:00
$(package)_sha256_hash=560f11c4bbbca10f495f3ef7d3a6aa4ca62b4f8fb0b52e7d459d18a26e46e017
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