feather/contrib/depends/packages/libXau.mk

34 lines
1.1 KiB
Makefile
Raw Normal View History

2022-12-23 15:43:34 +00:00
package=libXau
2024-12-17 21:34:07 +00:00
$(package)_version=1.0.12
2022-12-23 15:43:34 +00:00
$(package)_download_path=https://xorg.freedesktop.org/releases/individual/lib/
2024-12-17 21:34:07 +00:00
$(package)_file_name=libXau-$($(package)_version).tar.gz
$(package)_sha256_hash=2402dd938da4d0a332349ab3d3586606175e19cb32cb9fe013c19f1dc922dcee
2023-07-19 20:12:11 +00:00
$(package)_dependencies=xorgproto
2024-12-17 21:34:07 +00:00
$(package)_patches=toolchain.txt
2022-12-23 15:43:34 +00:00
define $(package)_preprocess_cmds
2024-12-17 21:34:07 +00:00
rm Makefile.in aclocal.m4 compile config.guess config.h.in config.sub configure depcomp \
install-sh ltmain.sh missing test-driver man/Makefile.in && \
rm -rf m4 && \
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
2024-12-17 21:34:07 +00:00
meson setup --cross-file toolchain.txt build
2022-12-23 15:43:34 +00:00
endef
define $(package)_build_cmds
2024-12-17 21:34:07 +00:00
ninja -C build
2022-12-23 15:43:34 +00:00
endef
define $(package)_stage_cmds
2024-12-17 21:34:07 +00:00
DESTDIR=$($(package)_staging_dir) ninja -C build install
2022-12-23 15:43:34 +00:00
endef