Debian Codegraph @

contrib/depends/packages/libXau.mk

raw
1 package=libXau
2 $(package)_version=1.0.12
3 $(package)_download_path=https://xorg.freedesktop.org/releases/individual/lib/
4 $(package)_file_name=libXau-$($(package)_version).tar.gz
5 $(package)_sha256_hash=2402dd938da4d0a332349ab3d3586606175e19cb32cb9fe013c19f1dc922dcee
6 $(package)_dependencies=xorgproto
7 $(package)_patches=toolchain.txt
8
9 define $(package)_preprocess_cmds
10 rm Makefile.in aclocal.m4 compile config.guess config.h.in config.sub configure depcomp \
11 install-sh ltmain.sh missing test-driver man/Makefile.in && \
12 rm -rf m4 && \
13 cp $($(package)_patch_dir)/toolchain.txt toolchain.txt && \
14 sed -i -e 's|@host_prefix@|$(host_prefix)|' \
15 -e 's|@cc@|$($(package)_cc)|' \
16 -e 's|@cxx@|$($(package)_cxx)|' \
17 -e 's|@ar@|$($(package)_ar)|' \
18 -e 's|@strip@|$(host_STRIP)|' \
19 -e 's|@arch@|$(host_arch)|' \
20 toolchain.txt
21 endef
22
23 define $(package)_config_cmds
24 meson setup --cross-file toolchain.txt build
25 endef
26
27 define $(package)_build_cmds
28 ninja -C build
29 endef
30
31 define $(package)_stage_cmds
32 DESTDIR=$($(package)_staging_dir) ninja -C build install
33 endef
34
35 define $(package)_postprocess_cmds
36 sed -i 's/Requires: xproto//g' lib/pkgconfig/xau.pc
37 endef