feather/contrib/depends/packages/native_libxkbcommon.mk

37 lines
1.1 KiB
Makefile
Raw Normal View History

2022-12-21 15:15:22 +00:00
package=native_libxkbcommon
2022-06-02 12:50:33 +00:00
$(package)_version=0.8.4
$(package)_download_path=https://xkbcommon.org/download/
2022-12-21 15:15:22 +00:00
$(package)_file_name=libxkbcommon-$($(package)_version).tar.xz
2022-06-02 12:50:33 +00:00
$(package)_sha256_hash=60ddcff932b7fd352752d51a5c4f04f3d0403230a584df9a2e0d5ed87c486c8b
2022-12-21 15:15:22 +00:00
$(package)_dependencies=native_libxcb
2022-06-02 12:50:33 +00:00
# This package explicitly enables -Werror=array-bounds, which causes build failures
# with GCC 12.1+. Work around that by turning errors back into warnings.
# This workaround would be dropped if the package was updated, as that would require
# a different build system (Meson)
define $(package)_set_vars
$(package)_config_opts = --enable-option-checking --disable-dependency-tracking
$(package)_config_opts += --disable-static --disable-docs
$(package)_cflags += -Wno-error=array-bounds
endef
define $(package)_preprocess_cmds
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub build-aux
endef
define $(package)_config_cmds
$($(package)_autoconf)
endef
define $(package)_build_cmds
$(MAKE)
endef
define $(package)_stage_cmds
$(MAKE) DESTDIR=$($(package)_staging_dir) install
endef
define $(package)_postprocess_cmds
rm lib/*.la
endef