libxkbcommon.mk raw

   1  package=libxkbcommon
   2  $(package)_version=0.8.4
   3  $(package)_download_path=https://xkbcommon.org/download/
   4  $(package)_file_name=$(package)-$($(package)_version).tar.xz
   5  $(package)_sha256_hash=60ddcff932b7fd352752d51a5c4f04f3d0403230a584df9a2e0d5ed87c486c8b
   6  $(package)_dependencies=libxcb
   7  
   8  # This package explicitly enables -Werror=array-bounds, which causes build failures
   9  # with GCC 12.1+. Work around that by turning errors back into warnings.
  10  # This workaround would be dropped if the package was updated, as that would require
  11  # a different build system (Meson)
  12  define $(package)_set_vars
  13  $(package)_config_opts = --enable-option-checking --disable-dependency-tracking
  14  $(package)_config_opts += --disable-shared --disable-docs
  15  $(package)_cflags += -Wno-error=array-bounds
  16  endef
  17  
  18  define $(package)_preprocess_cmds
  19    cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub build-aux
  20  endef
  21  
  22  define $(package)_config_cmds
  23    $($(package)_autoconf)
  24  endef
  25  
  26  define $(package)_build_cmds
  27    $(MAKE)
  28  endef
  29  
  30  define $(package)_stage_cmds
  31    $(MAKE) DESTDIR=$($(package)_staging_dir) install
  32  endef
  33  
  34  define $(package)_postprocess_cmds
  35    rm lib/*.la
  36  endef
  37  
  38